mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
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:
parent
ed62eec58b
commit
60e0322092
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue