From: Michel Dänzer Date: Wed, 15 Aug 2012 13:59:07 +0000 (+0200) Subject: gallium/radeon: Don't assign virtual address space for BO that already has one. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=18abc270c56d5debc02a196634583a25074b3fef;p=mesa.git gallium/radeon: Don't assign virtual address space for BO that already has one. We'd end up re-using the old one and throwing away the new one anyway, but only after a roundtrip to the kernel. 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 9bddcd347c3..090a6faf50d 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c @@ -905,7 +905,7 @@ done: if (stride) *stride = whandle->stride; - if (mgr->va) { + if (mgr->va && !bo->va) { struct drm_radeon_gem_va va; bo->va_size = ((bo->base.size + 4095) & ~4095);