vk/graphics_state: don't set default sample locations if rast samples is dynamic

dynamic rasterization samples got added late, and I forgot to update this

Fixes: 1deb83fb86 ("vulkan: Add more dynamic multisample states")

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18896>
This commit is contained in:
Mike Blumenkrantz
2022-09-30 00:51:54 -04:00
committed by Marge Bot
parent ca0c429d32
commit 4b6b3f18f2
+1 -1
View File
@@ -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