iris: Add infrastructure to partition batch into sync boundaries.
authorFrancisco Jerez <currojerez@riseup.net>
Wed, 27 May 2020 20:34:04 +0000 (13:34 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 3 Jun 2020 23:12:22 +0000 (23:12 +0000)
commit8cbe9535482f3efd27fbcbb90a329e6567e8c961
tree8443056e0dac2c754fe2b9f50eed20e6a0df4863
parent7878cbec59a394904feb512ab6a756a27242912d
iris: Add infrastructure to partition batch into sync boundaries.

This introduces some minimalistic infrastructure which will be used in
order to partition the batch into a series of sections, each one with
a unique, monotonically-increasing sequence number.  Section
boundaries will typically lie at points in the batch where the
execution and memory coherency status of some previous commands are
known, e.g. at batch buffer boundaries or PIPE_CONTROL commands.

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