iris: migrate preemption streamwout wa to WA infra
authorRohan Garg <rohan.garg@intel.com>
Wed, 6 Sep 2023 11:14:42 +0000 (13:14 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 6 Sep 2023 11:51:21 +0000 (11:51 +0000)
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>

src/gallium/drivers/iris/iris_state.c

index 389f724..c7e3423 100644 (file)
@@ -6333,7 +6333,10 @@ iris_preemption_streamout_wa(struct iris_context *ice,
                              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;