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

Author: Rohan Garg <[email protected]>
Date:   Wed Sep  6 13:14:42 2023 +0200

iris: migrate preemption streamwout wa to WA infra

Fixes: db6c374 ('iris: disable preemption for 3DPRIMITIVE during streamout')
Signed-off-by: Rohan Garg <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25080>

---

 src/gallium/drivers/iris/iris_state.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/iris/iris_state.c 
b/src/gallium/drivers/iris/iris_state.c
index 389f724da92..c7e3423620e 100644
--- a/src/gallium/drivers/iris/iris_state.c
+++ b/src/gallium/drivers/iris/iris_state.c
@@ -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;

Reply via email to