zink: check if multisample support exists for shader image formats

avoid issues later by checking this now while we're here

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8504>
This commit is contained in:
Mike Blumenkrantz
2020-11-17 18:52:11 -05:00
committed by Marge Bot
parent b9b812edb8
commit 0daa61553d

View File

@@ -627,6 +627,10 @@ zink_is_format_supported(struct pipe_screen *pscreen,
!(screen->info.props.limits.sampledImageColorSampleCounts & sample_mask))
return false;
}
if (bind & PIPE_BIND_SHADER_IMAGE) {
if (!screen->info.feats.features.shaderStorageImageMultisample)
return false;
}
}
VkFormatProperties props;