From 4dd05c9a914e10880ea6ed8f90acd87cd865869f Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 21 Aug 2025 14:10:44 +0200 Subject: [PATCH] radv: remove dead code when setting dynamic primitive topology This is already handled slightly above in the same function. Also state->dirty isn't for RADV_DYNAMIC_xxx and there is no corresponding RADV_CMD_DIRTY_xxx either. Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_cmd_buffer.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index a8fee70cb1d..22e01f5bb02 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -8108,10 +8108,6 @@ radv_CmdSetPrimitiveTopology(VkCommandBuffer commandBuffer, VkPrimitiveTopology radv_prim_is_points_or_lines(primitive_topology)) state->dirty |= RADV_CMD_DIRTY_GUARDBAND; - /* for line stipple/mode */ - if (radv_prim_is_lines(state->dynamic.vk.ia.primitive_topology) != radv_prim_is_lines(primitive_topology)) - state->dirty |= RADV_DYNAMIC_RASTERIZATION_SAMPLES; - state->dynamic.vk.ia.primitive_topology = primitive_topology; state->dirty_dynamic |= RADV_DYNAMIC_PRIMITIVE_TOPOLOGY;