Mesa (master): gallium/radeon: Don' t assign virtual address space for BO that already has one.
Michel Dänzer
daenzer at kemper.freedesktop.org
Thu Aug 16 10:00:48 UTC 2012
Module: Mesa
Branch: master
Commit: 18abc270c56d5debc02a196634583a25074b3fef
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=18abc270c56d5debc02a196634583a25074b3fef
Author: Michel Dänzer <michel.daenzer at amd.com>
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 <michel.daenzer at amd.com>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
---
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);
More information about the mesa-commit
mailing list