summaryrefslogtreecommitdiff
path: root/src/r128_dri.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/r128_dri.c')
-rw-r--r--src/r128_dri.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/r128_dri.c b/src/r128_dri.c
index 5d7ac3ff..62e53a45 100644
--- a/src/r128_dri.c
+++ b/src/r128_dri.c
@@ -33,6 +33,7 @@
#endif
#include <string.h>
+#include <stdio.h>
/*
* Authors:
@@ -1036,7 +1037,7 @@ Bool R128DRIScreenInit(ScreenPtr pScreen)
pDRIInfo->ddxDriverMajorVersion = R128_VERSION_MAJOR;
pDRIInfo->ddxDriverMinorVersion = R128_VERSION_MINOR;
pDRIInfo->ddxDriverPatchVersion = R128_VERSION_PATCH;
- pDRIInfo->frameBufferPhysicalAddress = info->LinearAddr;
+ pDRIInfo->frameBufferPhysicalAddress = (void *)info->LinearAddr;
pDRIInfo->frameBufferSize = info->FbMapSize;
pDRIInfo->frameBufferStride = (pScrn->displayWidth *
info->CurrentLayout.pixel_bytes);