From e8a0f514d413499cfab7b29c5d82662199c807d3 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 2 Jun 2022 10:43:45 +0200 Subject: [PATCH] radv: update the check to determine if dynamic sample location is needed Use radv_graphics_pipeline_info instead of pCreateInfo. Signed-off-by: Samuel Pitoiset Reviewed-by: Mike Blumenkrantz Part-of: --- src/amd/vulkan/radv_pipeline.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 380ed452eec..a06fda726d8 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -1393,9 +1393,7 @@ radv_pipeline_needed_dynamic_state(const struct radv_graphics_pipeline *pipeline if (!info->dr.count) states &= ~RADV_DYNAMIC_DISCARD_RECTANGLE; - if (!pCreateInfo->pMultisampleState || - !vk_find_struct_const(pCreateInfo->pMultisampleState->pNext, - PIPELINE_SAMPLE_LOCATIONS_STATE_CREATE_INFO_EXT)) + if (!info->ms.sample_locs_enable) states &= ~RADV_DYNAMIC_SAMPLE_LOCATIONS; if (!info->rs.stippled_line_enable)