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

Author: Jordan Justen <[email protected]>
Date:   Wed Aug  3 12:24:11 2022 -0700

anv, iris: Update INTERFACE_DESCRIPTOR_DATA programming for xe2

Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Caio Oliveira <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26390>

---

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

diff --git a/src/gallium/drivers/iris/iris_state.c 
b/src/gallium/drivers/iris/iris_state.c
index d865ad75ed8..d87ada96f75 100644
--- a/src/gallium/drivers/iris/iris_state.c
+++ b/src/gallium/drivers/iris/iris_state.c
@@ -5177,7 +5177,6 @@ iris_store_cs_state(const struct intel_device_info 
*devinfo,
       desc.BindingTableEntryCount = devinfo->verx10 == 125 ?
          0 : MIN2(shader->bt.size_bytes / 4, 31);
       desc.SamplerCount = encode_sampler_count(shader);
-#if GFX_VER >= 12
       /* TODO: Check if we are missing workarounds and enable mid-thread
        * preemption.
        *
@@ -5187,6 +5186,9 @@ iris_store_cs_state(const struct intel_device_info 
*devinfo,
        * it later, but for now let's disable it to fix a GPU in compute in Car
        * Chase (and possibly more).
        */
+#if GFX_VER >= 20
+      desc.ThreadPreemption = false;
+#elif GFX_VER >= 12
       desc.ThreadPreemptionDisable = true;
 #endif
    }

Reply via email to