iris: Store a seqno for each batch in the fence
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 19 Feb 2020 23:45:59 +0000 (23:45 +0000)
committerMarge Bot <eric+marge@anholt.net>
Fri, 1 May 2020 19:00:02 +0000 (19:00 +0000)
commit3dbde891118af0c64a16c729be5b551447aaae18
tree7e89c7fa59f5046347021e346dcc148c1d734384
parentfd1907efb385a6f668971e9bb93af2f64d7b8cda
iris: Store a seqno for each batch in the fence

In the next patch, we will introduce deferred fences where we will need
to flush a fence later. To do this, we need to know which batch requires
flushing, so keep a 1:1 mapping between seqno[] and the associated
batch.

It's also substantially less confusing to have a 1:1 mapping.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3802>
src/gallium/drivers/iris/iris_fence.c