iris: fix iris for WA 16013000631
authorRohan Garg <rohan.garg@intel.com>
Sat, 15 Jul 2023 13:59:50 +0000 (15:59 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 17 Jul 2023 09:03:21 +0000 (09:03 +0000)
iris needs to emit a PIPE_CONTROL_INSTRUCTION_INVALIDATE for the
aforementioned WA.

Fixes: 83716b08c ('iris: migrate WA 14013910100 to use the WA framework')
Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24171>

src/gallium/drivers/iris/iris_state.c

index a2afd8c..ef08abb 100644 (file)
@@ -479,8 +479,8 @@ flush_after_state_base_change(struct iris_batch *batch)
                               PIPE_CONTROL_TEXTURE_CACHE_INVALIDATE |
                               PIPE_CONTROL_CONST_CACHE_INVALIDATE |
                               PIPE_CONTROL_STATE_CACHE_INVALIDATE |
-                              (intel_needs_workaround(devinfo, 16013000631) ? 0 :
-                               PIPE_CONTROL_INSTRUCTION_INVALIDATE));
+                              (intel_needs_workaround(devinfo, 16013000631) ?
+                               PIPE_CONTROL_INSTRUCTION_INVALIDATE : 0));
 }
 
 static void