iris: implement Wa_14015946265 for DG2
authorTapani Pälli <tapani.palli@intel.com>
Mon, 5 Sep 2022 05:19:30 +0000 (08:19 +0300)
committerMarge Bot <emma+marge@anholt.net>
Wed, 7 Sep 2022 04:38:05 +0000 (04:38 +0000)
SOL unit issues, wa is to send PC with CS stall after SO_DECL.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18409>

src/gallium/drivers/iris/iris_state.c

index 28b97c6..f426623 100644 (file)
@@ -6274,6 +6274,13 @@ iris_upload_dirty_render_state(struct iris_context *ice,
          uint32_t *decl_list =
             ice->state.streamout + GENX(3DSTATE_STREAMOUT_length);
          iris_batch_emit(batch, decl_list, 4 * ((decl_list[0] & 0xff) + 2));
+
+#if GFX_VERx10 == 125
+         /* Wa_14015946265: Send PC with CS stall after SO_DECL. */
+         iris_emit_pipe_control_flush(batch,
+                                      "workaround: cs stall after so_decl",
+                                      PIPE_CONTROL_CS_STALL);
+#endif
       }
 
       if (dirty & IRIS_DIRTY_STREAMOUT) {