From 18abc270c56d5debc02a196634583a25074b3fef Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michel=20D=C3=A4nzer?= Date: Wed, 15 Aug 2012 15:59:07 +0200 Subject: [PATCH] gallium/radeon: Don't assign virtual address space for BO that already has one. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2