iris: Add missing untyped data port flush on PIPELINE_SELECT

This is needed when switching away from GPGPU mode.  See the previous
commit for anv.  This is not likely to make a practical difference for
iris because it never switches back and forth between modes like anv.

Fixes: 172e0b0ebf ("iris: Update PIPELINE_CONTROL flush when switching pipeline mode in TGL+")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20774>
This commit is contained in:
Kenneth Graunke
2023-01-18 10:33:49 -08:00
committed by Marge Bot
parent a8108f1d44
commit bd8e8d204d

View File

@@ -657,6 +657,8 @@ emit_pipeline_select(struct iris_batch *batch, uint32_t pipeline)
if (pipeline == GPGPU && batch->name == IRIS_BATCH_RENDER) {
flags |= PIPE_CONTROL_RENDER_TARGET_FLUSH |
PIPE_CONTROL_DEPTH_CACHE_FLUSH;
} else {
flags |= PIPE_CONTROL_UNTYPED_DATAPORT_CACHE_FLUSH;
}
iris_emit_pipe_control_flush(batch, "PIPELINE_SELECT flush", flags);
#else