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 <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:43:45 +02:00 committed by Marge Bot
parent 15586cdaf8
commit e8a0f514d4
1 changed files with 1 additions and 3 deletions

View File

@ -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)