radv: update the check to determine if rasterization is enabled

Use radv_graphics_pipeline_info instead of pCreateInfo.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16958>
This commit is contained in:
Samuel Pitoiset
2022-06-02 10:57:16 +02:00
committed by Marge Bot
parent e8a0f514d4
commit 653ded5704

View File

@@ -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. */