iris: Add support for flushing the blitter (hackily)
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 4 Sep 2020 23:16:48 +0000 (16:16 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 7 Feb 2022 17:50:01 +0000 (09:50 -0800)
commit604d97671b663501195644f2a5f12535e88c563f
tree7e2c9fc47dbfc8a9ee8159e6b249b301fb831ad5
parent9c5dc4985b2cb832eea2b943eccc096f26cf3611
iris: Add support for flushing the blitter (hackily)

To flush the blitter, we need to use MI_FLUSH_DW rather than the usual
PIPE_CONTROL we use on the 3D engine.  Most of our code is set up to
suggest flushes via PIPE_CONTROL commands, however, so we hackily just
emit MI_FLUSH_DW when they ask for any kind of PIPE_CONTROL flush.

Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14912>
src/gallium/drivers/iris/iris_state.c