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:
parent
15586cdaf8
commit
e8a0f514d4
|
@ -1393,9 +1393,7 @@ radv_pipeline_needed_dynamic_state(const struct radv_graphics_pipeline *pipeline
|
||||||
if (!info->dr.count)
|
if (!info->dr.count)
|
||||||
states &= ~RADV_DYNAMIC_DISCARD_RECTANGLE;
|
states &= ~RADV_DYNAMIC_DISCARD_RECTANGLE;
|
||||||
|
|
||||||
if (!pCreateInfo->pMultisampleState ||
|
if (!info->ms.sample_locs_enable)
|
||||||
!vk_find_struct_const(pCreateInfo->pMultisampleState->pNext,
|
|
||||||
PIPELINE_SAMPLE_LOCATIONS_STATE_CREATE_INFO_EXT))
|
|
||||||
states &= ~RADV_DYNAMIC_SAMPLE_LOCATIONS;
|
states &= ~RADV_DYNAMIC_SAMPLE_LOCATIONS;
|
||||||
|
|
||||||
if (!info->rs.stippled_line_enable)
|
if (!info->rs.stippled_line_enable)
|
||||||
|
|
Loading…
Reference in New Issue