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>
(cherry picked from commit 02d7f5e4ff1a93d149778d8b40f327cccbb412ee)
This commit is contained in:
Tapani Pälli 2024-01-18 07:21:31 +02:00 committed by Eric Engestrom
parent 69cac7ae19
commit cfa818f191
2 changed files with 2 additions and 2 deletions

View file

@ -1224,7 +1224,7 @@
"description": "anv: expand pre-hiz data cache flush to gfx >= 125",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

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 |