mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 10:18:05 +02:00
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:
parent
b9b812edb8
commit
0daa61553d
1 changed files with 4 additions and 0 deletions
|
|
@ -627,6 +627,10 @@ zink_is_format_supported(struct pipe_screen *pscreen,
|
||||||
!(screen->info.props.limits.sampledImageColorSampleCounts & sample_mask))
|
!(screen->info.props.limits.sampledImageColorSampleCounts & sample_mask))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (bind & PIPE_BIND_SHADER_IMAGE) {
|
||||||
|
if (!screen->info.feats.features.shaderStorageImageMultisample)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
VkFormatProperties props;
|
VkFormatProperties props;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue