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@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Michel Dänzer 2012-08-15 15:59:07 +02:00 committed by Michel Dänzer
parent a60be05284
commit 18abc270c5

View file

@ -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);