diff options
author | Dave Airlie <airlied@linux.ie> | 2006-06-15 20:39:22 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2006-06-15 20:39:22 +1000 |
commit | d511ef486a15b582e5d1708a17a00701f5cf1ccd (patch) | |
tree | 49d9a75b4342c834321ccb90752517d7830ec5de /src/r128_dri.c | |
parent | f46c3bebe821ee0031770d98d04bd406d1abb9ed (diff) |
ati/r128: add includes to get C function decls
Also fix a void pointer cast
Diffstat (limited to 'src/r128_dri.c')
-rw-r--r-- | src/r128_dri.c | 3 |
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); |