summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris/iris_bufmgr.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-10-02 19:55:29 -0700
committerKenneth Graunke <[email protected]>2019-02-21 10:26:09 -0800
commit294ce58a30d16b4780055ed3c66acc5ecfa1e814 (patch)
treeba11309dfacad5fdac8a9ea0c258d5d235326779 /src/gallium/drivers/iris/iris_bufmgr.c
parent2f24000662f994d1cf1d6f80efa392be987f7e4e (diff)
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.
Diffstat (limited to 'src/gallium/drivers/iris/iris_bufmgr.c')
-rw-r--r--src/gallium/drivers/iris/iris_bufmgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_bufmgr.c b/src/gallium/drivers/iris/iris_bufmgr.c
index 30f9746a308..6ac5e88fa55 100644
--- a/src/gallium/drivers/iris/iris_bufmgr.c
+++ b/src/gallium/drivers/iris/iris_bufmgr.c
@@ -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 {