summaryrefslogtreecommitdiff
path: root/src/radeon_dri.c
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-11-01 20:27:03 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-11-01 20:27:03 -0700
commitfe3ce559b7f07d39ded39abb38576846d6eb185b (patch)
treebed7949b6f44eac5059f3ee2a0838ac5f1e16b64 /src/radeon_dri.c
parentd3d6a5da07aaec5961e51c9a8f90c1490ee101b6 (diff)
Build fix for -Werror=int-to-pointer-cast
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'src/radeon_dri.c')
-rw-r--r--src/radeon_dri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/radeon_dri.c b/src/radeon_dri.c
index f1ae65e3..81dc08b2 100644
--- a/src/radeon_dri.c
+++ b/src/radeon_dri.c
@@ -1581,7 +1581,7 @@ Bool RADEONDRIScreenInit(ScreenPtr pScreen)
pDRIInfo->ddxDriverMajorVersion = info->allowColorTiling ? 5 : 4;
pDRIInfo->ddxDriverMinorVersion = 3;
pDRIInfo->ddxDriverPatchVersion = 0;
- pDRIInfo->frameBufferPhysicalAddress = (void *)info->LinearAddr + info->dri->frontOffset;
+ pDRIInfo->frameBufferPhysicalAddress = (void *)(uintptr_t)info->LinearAddr + info->dri->frontOffset;
pDRIInfo->frameBufferSize = info->FbMapSize - info->FbSecureSize;
pDRIInfo->frameBufferStride = (pScrn->displayWidth *
info->CurrentLayout.pixel_bytes);