zink: add check for samplerMirrorClampToEdge Vulkan 1.2 feature

This adds a check to advertise PIPE_CAP_TEXTURE_MIRROR_CLAMP_TO_EDGE when either the extension is present or the Vulkan 1.2 feature is enabled.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20920>
This commit is contained in:
Sidney Just 2023-02-03 16:41:29 -08:00 committed by Marge Bot
parent ed62eec58b
commit 60e0322092

View file

@ -588,7 +588,7 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
return screen->info.have_EXT_provoking_vertex;
case PIPE_CAP_TEXTURE_MIRROR_CLAMP_TO_EDGE:
return screen->info.have_KHR_sampler_mirror_clamp_to_edge;
return screen->info.have_KHR_sampler_mirror_clamp_to_edge || (screen->info.have_vulkan12 && screen->info.feats12.samplerMirrorClampToEdge);
case PIPE_CAP_POLYGON_OFFSET_UNITS_UNSCALED:
return 1;