From: Samuel Pitoiset Date: Thu, 2 Jun 2022 08:57:16 +0000 (+0200) Subject: radv: update the check to determine if rasterization is enabled X-Git-Tag: upstream/22.3.5~7531 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=653ded570411537c3045523d9c1d8582388f37bf;p=platform%2Fupstream%2Fmesa.git radv: update the check to determine if rasterization is enabled Use radv_graphics_pipeline_info instead of pCreateInfo. Signed-off-by: Samuel Pitoiset Reviewed-by: Mike Blumenkrantz Part-of: --- diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index a06fda7..0ff0cba 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -1354,7 +1354,8 @@ radv_pipeline_needed_dynamic_state(const struct radv_graphics_pipeline *pipeline const struct radv_graphics_pipeline_info *info) { bool has_color_att = radv_pipeline_has_color_attachments(&info->ri); - bool raster_enabled = radv_is_raster_enabled(pipeline, pCreateInfo); + bool raster_enabled = !info->rs.discard_enable || + (pipeline->dynamic_states & RADV_DYNAMIC_RASTERIZER_DISCARD_ENABLE); uint64_t states = RADV_DYNAMIC_ALL; /* Disable dynamic states that are useless to mesh shading. */