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:

committed by
Marge Bot

parent
b9b812edb8
commit
0daa61553d
@@ -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;
|
||||
|
Reference in New Issue
Block a user