anv: expand pre-hiz data cache flush to gfx >= 125

Cc: mesa-stable
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27132>
This commit is contained in:
Tapani Pälli
2024-01-18 07:21:31 +02:00
committed by Marge Bot
parent 93706d5c2f
commit 02d7f5e4ff

View File

@@ -1884,7 +1884,7 @@ anv_fast_clear_depth_stencil(struct anv_cmd_buffer *cmd_buffer,
* experiment shows that flusing the data cache helps to resolve the
* corruption.
*/
unsigned wa_flush = intel_device_info_is_dg2(cmd_buffer->device->info) ?
unsigned wa_flush = cmd_buffer->device->info->verx10 >= 125 ?
ANV_PIPE_DATA_CACHE_FLUSH_BIT : 0;
anv_add_pending_pipe_bits(cmd_buffer,
ANV_PIPE_DEPTH_CACHE_FLUSH_BIT |