diff options
author | Chris Wilson <[email protected]> | 2018-11-19 14:12:52 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:10 -0800 |
commit | 54347c078e7a4eb63ebc17ce1b9062860f44710c (patch) | |
tree | bede6b70c74ca015032a42d01a9c7f9dfa9fdfbf /src/gallium/drivers/iris/iris_batch.c | |
parent | 3455f57575757845f950b9ffc8a24fb622e560b6 (diff) |
iris: Merge two walks of the exec_bos list
Diffstat (limited to 'src/gallium/drivers/iris/iris_batch.c')
-rw-r--r-- | src/gallium/drivers/iris/iris_batch.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gallium/drivers/iris/iris_batch.c b/src/gallium/drivers/iris/iris_batch.c index cfd49277cf1..6c48cec57c8 100644 --- a/src/gallium/drivers/iris/iris_batch.c +++ b/src/gallium/drivers/iris/iris_batch.c @@ -503,6 +503,8 @@ submit_batch(struct iris_batch *batch) bo->idle = false; bo->index = -1; + + iris_bo_unreference(bo); } return ret; @@ -569,11 +571,6 @@ _iris_batch_flush(struct iris_batch *batch, const char *file, int line) #endif } - /* Clean up after the batch we submitted and prepare for a new one. */ - for (int i = 0; i < batch->exec_count; i++) { - iris_bo_unreference(batch->exec_bos[i]); - batch->exec_bos[i] = NULL; - } batch->exec_count = 0; batch->aperture_space = 0; |