iris: don't bump the seqno for the workaround_bo

The last_seqnos list is used by iris_emit_buffer_barrier_for() and as
far as I can understand we don't emit barriers for the workaround bo,
so don't even bother doing the atomic operations required to bump the
workaround_bo seqno list.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12194>
This commit is contained in:
Paulo Zanoni
2021-08-02 13:13:13 -07:00
parent 89c22ef230
commit f7102bed69
+2 -3
View File
@@ -281,10 +281,9 @@ iris_use_pinned_bo(struct iris_batch *batch,
* would introduce data dependencies between multiple batches which share
* the buffer.
*/
if (bo == batch->screen->workaround_bo)
if (bo == batch->screen->workaround_bo) {
writable = false;
if (access < NUM_IRIS_DOMAINS) {
} else if (access < NUM_IRIS_DOMAINS) {
assert(batch->sync_region_depth);
iris_bo_bump_seqno(bo, batch->next_seqno, access);
}