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

Author: Tapani Pälli <[email protected]>
Date:   Tue Apr 18 20:23:44 2023 +0300

iris: make Wa_16013994831 to use intel_needs_workaround

Signed-off-by: Tapani Pälli <[email protected]>
Reviewed-by: José Roberto de Souza <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22560>

---

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

diff --git a/src/gallium/drivers/iris/iris_state.c 
b/src/gallium/drivers/iris/iris_state.c
index bf2803a456a..cf1abf8927e 100644
--- a/src/gallium/drivers/iris/iris_state.c
+++ b/src/gallium/drivers/iris/iris_state.c
@@ -6721,10 +6721,8 @@ iris_upload_dirty_render_state(struct iris_context *ice,
 
 #if GFX_VERx10 >= 120
          /* Wa_16013994831 - Disable preemption. */
-         if (batch->screen->devinfo->verx10 == 120 ||
-             intel_device_info_is_dg2(batch->screen->devinfo)) {
+         if (intel_needs_workaround(batch->screen->devinfo, 16013994831))
             iris_preemption_streamout_wa(ice, batch, false);
-         }
 #endif
 
          uint32_t dynamic_sol[GENX(3DSTATE_STREAMOUT_length)];

Reply via email to