Module: Mesa Branch: main Commit: e37f534d7f15120c5c6513c2183e968b627319ce URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e37f534d7f15120c5c6513c2183e968b627319ce
Author: Tapani Pälli <[email protected]> Date: Mon Sep 5 08:19:30 2022 +0300 iris: implement Wa_14015946265 for DG2 SOL unit issues, wa is to send PC with CS stall after SO_DECL. Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18409> --- src/gallium/drivers/iris/iris_state.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 28b97c6737f..f426623a586 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -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) {
