projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3455f57
)
iris: Merge two walks of the exec_bos list
author
Chris Wilson
<chris@chris-wilson.co.uk>
Mon, 19 Nov 2018 22:12:52 +0000
(14:12 -0800)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:10 +0000
(10:26 -0800)
src/gallium/drivers/iris/iris_batch.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/iris/iris_batch.c
b/src/gallium/drivers/iris/iris_batch.c
index cfd49277cf117e536f84d18b0947b14f0139f601..6c48cec57c8d1e801bfff56a477bc87e91ef7f5f 100644
(file)
--- 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;