Module: Mesa
Branch: main
Commit: 2a96521bb40770d62c5e7d2e0b629811db9ed831
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2a96521bb40770d62c5e7d2e0b629811db9ed831

Author: Samuel Pitoiset <[email protected]>
Date:   Thu Jul 21 12:50:28 2022 +0200

radv: remove one useless check about line width and dynamic state

It's now checked when the rasterization state is initialized.

Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-By: Mike Blumenkrantz <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17677>

---

 src/amd/vulkan/radv_pipeline.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index 77ab979e72d..9d1861a1b4b 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -7085,10 +7085,7 @@ radv_graphics_pipeline_init(struct 
radv_graphics_pipeline *pipeline, struct radv
       
pipeline->base.shaders[pipeline->last_vgt_api_stage]->info.force_vrs_per_vertex;
    pipeline->uses_user_sample_locations = info.ms.sample_locs_enable;
    pipeline->rast_prim = vgt_gs_out_prim_type;
-
-   if (!(pipeline->dynamic_states & RADV_DYNAMIC_LINE_WIDTH)) {
-      pipeline->line_width = info.rs.line_width;
-   }
+   pipeline->line_width = info.rs.line_width;
 
    pipeline->base.push_constant_size = pipeline_layout->push_constant_size;
    pipeline->base.dynamic_offset_count = pipeline_layout->dynamic_offset_count;

Reply via email to