panvk: Fix sampler filter modes on Bifrost
The logic was incorrectly inverted, although it is correct for Midgard and in OpenGL. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Suggested-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11851>
This commit is contained in:
parent
058d4d3b3e
commit
b17f90ab4a
|
@ -1999,8 +1999,8 @@ panvk_init_bifrost_sampler(struct panvk_sampler *sampler,
|
||||||
vk_find_struct_const(pCreateInfo->pNext, SAMPLER_CUSTOM_BORDER_COLOR_CREATE_INFO_EXT);
|
vk_find_struct_const(pCreateInfo->pNext, SAMPLER_CUSTOM_BORDER_COLOR_CREATE_INFO_EXT);
|
||||||
|
|
||||||
pan_pack(&sampler->desc, BIFROST_SAMPLER, cfg) {
|
pan_pack(&sampler->desc, BIFROST_SAMPLER, cfg) {
|
||||||
cfg.magnify_nearest = pCreateInfo->magFilter == VK_FILTER_LINEAR;
|
cfg.magnify_nearest = pCreateInfo->magFilter == VK_FILTER_NEAREST;
|
||||||
cfg.minify_nearest = pCreateInfo->minFilter == VK_FILTER_LINEAR;
|
cfg.minify_nearest = pCreateInfo->minFilter == VK_FILTER_NEAREST;
|
||||||
cfg.mipmap_mode = panvk_translate_sampler_mipmap_mode(pCreateInfo->mipmapMode);
|
cfg.mipmap_mode = panvk_translate_sampler_mipmap_mode(pCreateInfo->mipmapMode);
|
||||||
cfg.normalized_coordinates = !pCreateInfo->unnormalizedCoordinates;
|
cfg.normalized_coordinates = !pCreateInfo->unnormalizedCoordinates;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue