From a28ff995bbac0b20056ebd3cfa845a00adaec9ff Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Wed, 27 Sep 2023 15:42:21 +0300 Subject: [PATCH] anv: add missing workaround for 3DSTATE_LINE_STIPPLE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lionel Landwerlin Cc: mesa-stable Reviewed-by: Tapani Pälli Part-of: --- src/intel/vulkan/genX_gfx_state.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/intel/vulkan/genX_gfx_state.c b/src/intel/vulkan/genX_gfx_state.c index 19924dc2d1d..3b9331b3e0a 100644 --- a/src/intel/vulkan/genX_gfx_state.c +++ b/src/intel/vulkan/genX_gfx_state.c @@ -1548,6 +1548,17 @@ genX(cmd_buffer_flush_gfx_hw_state)(struct anv_cmd_buffer *cmd_buffer) SET(ls, ls, LineStippleInverseRepeatCount); SET(ls, ls, LineStippleRepeatCount); } +#if GFX_VER >= 11 + /* ICL PRMs, Volume 2a - Command Reference: Instructions, + * 3DSTATE_LINE_STIPPLE: + * + * "Workaround: This command must be followed by a PIPE_CONTROL with + * CS Stall bit set." + */ + genx_batch_emit_pipe_control(&cmd_buffer->batch, + cmd_buffer->device->info, + ANV_PIPE_CS_STALL_BIT); +#endif } if (BITSET_TEST(hw_state->dirty, ANV_GFX_STATE_VF)) {