From bb4fede8dc7741d00014fdb353945b0832599333 Mon Sep 17 00:00:00 2001 From: Luc Verhaegen Date: Wed, 8 Feb 2006 14:39:34 +0000 Subject: Some trivial savage fixes: - Remove insane usage of pScrn->clocks. Set maxClock directly. - Fix trivial and harmless warning in DRI code (FrameBufferBase) --- src/savage_dri.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/savage_dri.c') diff --git a/src/savage_dri.c b/src/savage_dri.c index fd2567f..e0099fa 100644 --- a/src/savage_dri.c +++ b/src/savage_dri.c @@ -882,7 +882,13 @@ Bool SAVAGEDRIScreenInit( ScreenPtr pScreen ) pDRIInfo->ddxDriverMajorVersion = SAVAGE_VERSION_MAJOR; pDRIInfo->ddxDriverMinorVersion = SAVAGE_VERSION_MINOR; pDRIInfo->ddxDriverPatchVersion = SAVAGE_PATCHLEVEL; + +#if DRIINFO_MAJOR_VERSION < 5 pDRIInfo->frameBufferPhysicalAddress = psav->FrameBufferBase; +#else + pDRIInfo->frameBufferPhysicalAddress = (pointer) psav->FrameBufferBase; +#endif + pDRIInfo->frameBufferSize = psav->videoRambytes; pDRIInfo->frameBufferStride = pScrn->displayWidth*(pScrn->bitsPerPixel/8); pDRIInfo->ddxDrawableTableEntry = SAVAGE_MAX_DRAWABLES; -- cgit v1.2.3