summaryrefslogtreecommitdiff
path: root/src/savage_dri.c
diff options
context:
space:
mode:
authorLuc Verhaegen <libv@skynet.be>2006-02-08 14:39:34 +0000
committerLuc Verhaegen <libv@skynet.be>2006-02-08 14:39:34 +0000
commitbb4fede8dc7741d00014fdb353945b0832599333 (patch)
treee7cfebcd2047ef943fa9bef30774eadc10c1092b /src/savage_dri.c
parent90fb73bc67a87f3b202ba45b326e70759b49e7b1 (diff)
Some trivial savage fixes:
- Remove insane usage of pScrn->clocks. Set maxClock directly. - Fix trivial and harmless warning in DRI code (FrameBufferBase)
Diffstat (limited to 'src/savage_dri.c')
-rw-r--r--src/savage_dri.c6
1 files changed, 6 insertions, 0 deletions
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;