From fe5a259723f5dd8dbe4aed31c52e6635637c500a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Sun, 4 Sep 2022 19:05:44 +0300 Subject: [PATCH] anv: dynamic line stipple enable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This affects following packets: 3DSTATE_WM Signed-off-by: Tapani Pälli Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/genX_pipeline.c | 2 -- src/intel/vulkan/gfx8_cmd_buffer.c | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index 800c013436f..f3ac2b10f75 100644 --- a/src/intel/vulkan/genX_pipeline.c +++ b/src/intel/vulkan/genX_pipeline.c @@ -1650,8 +1650,6 @@ emit_3dstate_wm(struct anv_graphics_pipeline *pipeline, wm.BarycentricInterpolationMode = wm_prog_data->barycentric_interp_modes; - - wm.LineStippleEnable = rs->line.stipple.enable; } GENX(3DSTATE_WM_pack)(NULL, pipeline->gfx8.wm, &wm); diff --git a/src/intel/vulkan/gfx8_cmd_buffer.c b/src/intel/vulkan/gfx8_cmd_buffer.c index 6615f54e5be..3f0ecca12ce 100644 --- a/src/intel/vulkan/gfx8_cmd_buffer.c +++ b/src/intel/vulkan/gfx8_cmd_buffer.c @@ -492,7 +492,8 @@ genX(cmd_buffer_flush_dynamic_state)(struct anv_cmd_buffer *cmd_buffer) genX(emit_sample_pattern)(&cmd_buffer->batch, dyn->ms.sample_locations); if ((cmd_buffer->state.gfx.dirty & ANV_CMD_DIRTY_PIPELINE) || - BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_CB_COLOR_WRITE_ENABLES)) { + BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_CB_COLOR_WRITE_ENABLES) || + BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_RS_LINE_STIPPLE_ENABLE)) { /* 3DSTATE_WM in the hope we can avoid spawning fragment shaders * threads. */ @@ -504,6 +505,7 @@ genX(cmd_buffer_flush_dynamic_state)(struct anv_cmd_buffer *cmd_buffer) (pipeline->force_fragment_thread_dispatch || anv_cmd_buffer_all_color_write_masked(cmd_buffer)) ? ForceON : 0, + .LineStippleEnable = dyn->rs.line.stipple.enable, }; GENX(3DSTATE_WM_pack)(NULL, wm_dwords, &wm);