From f5cffbb8df7721efc1698ea2289f40b8e6372f9e Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 3 May 2022 12:14:38 +0200 Subject: [PATCH] radv: re-emit dynamic line stipple state if the primitive topology changed The dynamic primitive topology could change from LINE_LIST to LINE_STRIP for example and the stipple state depends on this. Found by inspection. Cc: mesa-stable Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_cmd_buffer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index d2cb269a250..f93b05167d2 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -3081,7 +3081,8 @@ radv_cmd_buffer_flush_dynamic_state(struct radv_cmd_buffer *cmd_buffer, bool pip if (states & RADV_CMD_DIRTY_DYNAMIC_SAMPLE_LOCATIONS) radv_emit_sample_locations(cmd_buffer); - if (states & RADV_CMD_DIRTY_DYNAMIC_LINE_STIPPLE) + if (states & (RADV_CMD_DIRTY_DYNAMIC_LINE_STIPPLE | + RADV_CMD_DIRTY_DYNAMIC_PRIMITIVE_TOPOLOGY)) radv_emit_line_stipple(cmd_buffer); if (states & (RADV_CMD_DIRTY_DYNAMIC_CULL_MODE | RADV_CMD_DIRTY_DYNAMIC_FRONT_FACE |