diff options
-rw-r--r-- | src/radeon_dri.c | 2 |
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); |