anv: set StackIDControlOverride_RTGlobals for 2 workarounds

GFX_VER block matches both workarounds and while these workarounds are
almost about the same cause, other one applies only for LNL and other
one for BMG, need to check for both.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31571>
This commit is contained in:
Tapani Pälli 2024-10-09 08:27:14 +03:00 committed by Marge Bot
parent b8fc0288af
commit e4fcbe8d6f

View file

@ -75,12 +75,15 @@ genX(cmd_buffer_ensure_cfe_state)(struct anv_cmd_buffer *cmd_buffer,
default: unreachable("invalid stack_ids value");
}
#if INTEL_WA_14021821874_GFX_VER
/* Wa_14021821874: "StackIDControlOverride_RTGlobals = 0 (i.e. 2k)". We
#if INTEL_WA_14021821874_GFX_VER || INTEL_WA_14018813551_GFX_VER
/* Wa_14021821874, Wa_14018813551:
*
* "StackIDControlOverride_RTGlobals = 0 (i.e. 2k)". We
* already set stack size per ray to 64 in brw_nir_lower_rt_intrinsics
* as the workaround also requires.
*/
if (intel_needs_workaround(cmd_buffer->device->info, 14021821874))
if (intel_needs_workaround(cmd_buffer->device->info, 14021821874) ||
intel_needs_workaround(cmd_buffer->device->info, 14018813551))
cfe.StackIDControl = StackIDs2048;
#endif