From 2a6fc690c18ad0e22eb0550bae6a26f222f3f182 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Date: Tue, 18 Jul 2023 10:29:39 -0700 Subject: [PATCH] anv: Use workaround framework to Wa_14016118574 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Wa_14016118574 is not the lineage number for this workaround so it was updated to Wa_22014412737. Wa_22014412737 is not applicable for MTL B0 steppings and newer so using the workaround framework eliminates this pipe_control instruction for not affected revisions. Signed-off-by: José Roberto de Souza Reviewed-by: Sagar Ghuge Part-of: --- src/intel/vulkan/genX_cmd_buffer.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index d1e7ffe3553..d9df3fa3ace 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -8182,10 +8182,9 @@ genX(batch_emit_dummy_post_sync_op)(struct anv_batch *batch, uint32_t primitive_topology, uint32_t vertex_count) { -#if GFX_VERx10 != 125 - return; -#endif - /* Wa_14016118574 */ + if (!intel_needs_workaround(device->info, 22014412737)) + return; + if ((primitive_topology == _3DPRIM_POINTLIST || primitive_topology == _3DPRIM_LINELIST || primitive_topology == _3DPRIM_LINESTRIP ||