anv: limit 22018402687 to impacted platforms

ARL is impacted, but LNL is not.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Backport-to: 24.2
Reviewed-by: Rohan Garg <rohan.garg@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31481>
This commit is contained in:
Lionel Landwerlin 2024-10-02 10:55:18 +03:00 committed by Marge Bot
parent 65d5231381
commit 18e2c25dad

View file

@ -661,7 +661,10 @@ genX(emit_hs)(struct anv_cmd_buffer *cmd_buffer)
ALWAYS_INLINE static void
genX(emit_ds)(struct anv_cmd_buffer *cmd_buffer)
{
#if INTEL_NEEDS_WA_22018402687
#if INTEL_WA_22018402687_GFX_VER
if (!intel_needs_workaround(cmd_buffer->device->info, 22018402687))
return;
/* Wa_22018402687:
* In any 3D enabled context, just before any Tessellation enabled draw
* call (3D Primitive), re-send the last programmed 3DSTATE_DS again.