iris: Add read-only domain for VF cache.
authorFrancisco Jerez <currojerez@riseup.net>
Sat, 30 May 2020 00:21:28 +0000 (17:21 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 2 Sep 2021 03:14:37 +0000 (03:14 +0000)
commitff601897fb0479ec1c1d8365f529d1f3d57693d0
tree507c2744f38a1aad979b9415a38261d4b348ec9c
parentc679dbe09cf104ac916fb604fe73528fc87d8e75
iris: Add read-only domain for VF cache.

This will allow us to order writes and reads of vertex and index
buffers by using the same cache tracking infrastructure introduced
previously for render and depth buffers.  The ultimate goal is to
remove the somewhat heavy-handed history flush mechanism currently
used for buffer objects, and use a single cache tracking mechanism
across the whole driver.

v2: Use C99 designated initializers (Ken).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12691>
src/gallium/drivers/iris/iris_bufmgr.h
src/gallium/drivers/iris/iris_pipe_control.c
src/gallium/drivers/iris/iris_state.c