diff options
author | Michel Dänzer <[email protected]> | 2012-08-15 15:59:07 +0200 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2012-08-16 11:58:24 +0200 |
commit | 18abc270c56d5debc02a196634583a25074b3fef (patch) | |
tree | aa9cf362ac749a43f4f9107b12cf919952748f39 | |
parent | a60be05284399202c7a5a7aaf4d1f8f0626aee80 (diff) |
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]>
-rw-r--r-- | 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 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); |