From: Michel Dänzer Date: Fri, 3 Aug 2012 09:31:55 +0000 (+0200) Subject: gallium/radeon: Make va_offset 64 bits wide. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c25968f3e2a1b5144a2e88d15b95e5b477a55f5d;p=mesa.git gallium/radeon: Make va_offset 64 bits wide. Otherwise we'd wrap around after 32 bits. The kernel currently limits GPU virtual address space to 4GB anyway, but that will probably change sooner or later, and this would result in confusing error messages when running out of virtual address space even now. Signed-off-by: Michel Dänzer Reviewed-by: Alex Deucher --- diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c index 464842c0c20..4c899010226 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c @@ -120,7 +120,7 @@ struct radeon_bomgr { /* is virtual address supported */ bool va; - unsigned va_offset; + uint64_t va_offset; struct list_head va_holes; };