iris: flush data cache when flushing HDC on GFX < 12

This matches what anv driver does.

Fixes: a969ad1d ("iris: Demote DC flush to HDC flush in cache tracker")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6314
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25399>
This commit is contained in:
Tapani Pälli
2023-09-26 12:25:42 +03:00
committed by Marge Bot
parent 558738e3c5
commit c02db0d90f

View File

@@ -8858,6 +8858,14 @@ iris_emit_raw_pipe_control(struct iris_batch *batch,
assert(flags & PIPE_CONTROL_WRITE_IMMEDIATE);
}
/* Emulate a HDC flush with a full Data Cache Flush on older hardware which
* doesn't support the new lightweight flush.
*/
#if GFX_VER < 12
if (flags & PIPE_CONTROL_FLUSH_HDC)
flags |= PIPE_CONTROL_DATA_CACHE_FLUSH;
#endif
/* "Post-Sync Operation" workarounds -------------------------------- */
/* Project: All / Argument: Global Snapshot Count Reset [19]