mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
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:
parent
a60be05284
commit
18abc270c5
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue