Fixes: db6c374 ('iris: disable preemption for 3DPRIMITIVE during streamout')
Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25080>
struct iris_batch *batch,
bool enable)
{
-#if GFX_VERx10 >= 120
+#if INTEL_NEEDS_WA_16013994831
+ if (!intel_needs_workaround(batch->screen->devinfo, 16013994831))
+ return;
+
iris_emit_reg(batch, GENX(CS_CHICKEN1), reg) {
reg.DisablePreemptionandHighPriorityPausingdueto3DPRIMITIVECommand = !enable;
reg.DisablePreemptionandHighPriorityPausingdueto3DPRIMITIVECommandMask = true;