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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user