Module: Mesa
Branch: main
Commit: 2a6fc690c18ad0e22eb0550bae6a26f222f3f182
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2a6fc690c18ad0e22eb0550bae6a26f222f3f182

Author: José Roberto de Souza <[email protected]>
Date:   Tue Jul 18 10:29:39 2023 -0700

anv: Use workaround framework to Wa_14016118574

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 <[email protected]>
Reviewed-by: Sagar Ghuge <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24221>

---

 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 ||

Reply via email to