diff options
author | Kenneth Graunke <[email protected]> | 2019-12-16 21:15:15 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2020-01-04 14:27:22 -0800 |
commit | defb3a9465bcdfbe691e5e7a785b9999fa77b500 (patch) | |
tree | 1f539e4d6e7d7bdd30807ac13e9e86e72b8a7707 | |
parent | c0c899cf7892bd2326e6d21a920c7be42de06731 (diff) |
anv: Only enable EWA LOD algorithm when doing anisotropic filtering.
Updated documentation renames "Anisotropic Algorithm" to "LOD Algorithm"
and adds a note for Gen9+ saying "The EWA Algorithm should only be
enabled for Anisotropic Filtering modes." and indicating that the extra
accuracy shouldn't be necessary for other modes, and comes at a cost.
Reviewed-by: Jason Ekstrand <[email protected]>
-rw-r--r-- | src/intel/vulkan/genX_state.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/intel/vulkan/genX_state.c b/src/intel/vulkan/genX_state.c index 34c6c6bd142..78e018762cb 100644 --- a/src/intel/vulkan/genX_state.c +++ b/src/intel/vulkan/genX_state.c @@ -506,7 +506,8 @@ VkResult genX(CreateSampler)( .MagModeFilter = vk_to_gen_tex_filter(mag_filter, pCreateInfo->anisotropyEnable), .MinModeFilter = vk_to_gen_tex_filter(min_filter, pCreateInfo->anisotropyEnable), .TextureLODBias = anv_clamp_f(pCreateInfo->mipLodBias, -16, 15.996), - .AnisotropicAlgorithm = EWAApproximation, + .AnisotropicAlgorithm = + pCreateInfo->anisotropyEnable ? EWAApproximation : LEGACY, .MinLOD = anv_clamp_f(pCreateInfo->minLod, 0, 14), .MaxLOD = anv_clamp_f(pCreateInfo->maxLod, 0, 14), .ChromaKeyEnable = 0, |