iris: vma_free bo->size, not bo_size

this is more obviously correct.  I think the two end up being the same
in practice, since this is in the alloc_from_cache case, and presumably
bo from the bucket has bo->size == bucket->size, and bo_size also is
bucket->size...

still.  better to do the obvious thing.

brw_bufmgr already does it this way.
This commit is contained in:
Kenneth Graunke 2018-10-02 19:55:29 -07:00
parent 2f24000662
commit 294ce58a30
1 changed files with 1 additions and 1 deletions

View File

@ -570,7 +570,7 @@ retry:
* memory and assign it a new address.
*/
if (memzone != memzone_for_address(bo->gtt_offset)) {
vma_free(bufmgr, bo->gtt_offset, bo_size);
vma_free(bufmgr, bo->gtt_offset, bo->size);
bo->gtt_offset = 0ull;
}
} else {