[Mesa-dev] [PATCH 7/7] gallium/radeon: Don't assign virtual address space for BO that already has one.
Michel Dänzer
michel at daenzer.net
Wed Aug 15 08:40:18 PDT 2012
From: Michel Dänzer <michel.daenzer at amd.com>
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 <michel.daenzer at amd.com>
---
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 25b346b..8f6d709 100644
--- a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
+++ b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
@@ -903,7 +903,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);
--
1.7.10.4
More information about the mesa-dev
mailing list