Module: Mesa
Branch: master
Commit: 18abc270c56d5debc02a196634583a25074b3fef
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=18abc270c56d5debc02a196634583a25074b3fef

Author: Michel Dänzer <[email protected]>
Date:   Wed Aug 15 15:59:07 2012 +0200

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 <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>

---

 src/gallium/winsys/radeon/drm/radeon_drm_bo.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c 
b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
index 9bddcd3..090a6fa 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);

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to