anv/state: if enabled, use anisotropic filtering also with VK_FILTER_NEAREST
Fixes multiple Vulkan CTS tests that combine anisotropy and VK_FILTER_NEAREST in dEQP-VK.texture.filtering_anisotropy.* Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
@@ -101,7 +101,7 @@ vk_to_gen_tex_filter(VkFilter filter, bool anisotropyEnable)
|
|||||||
default:
|
default:
|
||||||
assert(!"Invalid filter");
|
assert(!"Invalid filter");
|
||||||
case VK_FILTER_NEAREST:
|
case VK_FILTER_NEAREST:
|
||||||
return MAPFILTER_NEAREST;
|
return anisotropyEnable ? MAPFILTER_ANISOTROPIC : MAPFILTER_NEAREST;
|
||||||
case VK_FILTER_LINEAR:
|
case VK_FILTER_LINEAR:
|
||||||
return anisotropyEnable ? MAPFILTER_ANISOTROPIC : MAPFILTER_LINEAR;
|
return anisotropyEnable ? MAPFILTER_ANISOTROPIC : MAPFILTER_LINEAR;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user