From 4b6b3f18f23ac1e6dade67db8eef561be31ed4f1 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 30 Sep 2022 00:51:54 -0400 Subject: [PATCH] vk/graphics_state: don't set default sample locations if rast samples is dynamic MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit dynamic rasterization samples got added late, and I forgot to update this Fixes: 1deb83fb86d ("vulkan: Add more dynamic multisample states") Reviewed-by: Tapani Pälli Reviewed-by: Lionel Landwerlin Part-of: --- src/vulkan/runtime/vk_graphics_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/runtime/vk_graphics_state.c b/src/vulkan/runtime/vk_graphics_state.c index 19257ab..06f625b 100644 --- a/src/vulkan/runtime/vk_graphics_state.c +++ b/src/vulkan/runtime/vk_graphics_state.c @@ -697,7 +697,7 @@ vk_multisample_sample_locations_state_init( if (ms->sample_locations_enable) { vk_sample_locations_state_init(sl, &sl_info->sampleLocationsInfo); ms->sample_locations = sl; - } else if (!IS_DYNAMIC(MS_SAMPLE_MASK)) { + } else if (!IS_DYNAMIC(MS_RASTERIZATION_SAMPLES)) { /* Otherwise, pre-populate with the standard sample locations. If * the driver doesn't support standard sample locations, it probably * doesn't support custom locations either and can completely ignore -- 2.7.4