From 60e0322092559fa4e97779f027b4b85d98e1ae88 Mon Sep 17 00:00:00 2001 From: Sidney Just Date: Fri, 3 Feb 2023 16:41:29 -0800 Subject: [PATCH] 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: --- src/gallium/drivers/zink/zink_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c index aaed8c0f7b5..caf7375ace0 100644 --- a/src/gallium/drivers/zink/zink_screen.c +++ b/src/gallium/drivers/zink/zink_screen.c @@ -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;