From bd4988b9c0e1e96921e167f08f98b47c3cd6df5e Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Mon, 30 Jan 2023 20:11:55 -0600 Subject: [PATCH] nvk: Fix max anisotropy Now that we're using the bitpack helpers, we don't need the extra shift Part-of: --- src/nouveau/vulkan/nvk_sampler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nouveau/vulkan/nvk_sampler.c b/src/nouveau/vulkan/nvk_sampler.c index ea0e1b3f454..ad139884721 100644 --- a/src/nouveau/vulkan/nvk_sampler.c +++ b/src/nouveau/vulkan/nvk_sampler.c @@ -116,7 +116,7 @@ vk_to_9097_max_anisotropy(float max_anisotropy) return NV9097_TEXSAMP0_MAX_ANISOTROPY_ANISO_12_TO_1; uint32_t aniso_u32 = MAX2(0.0f, max_anisotropy); - return (aniso_u32 >> 1) << 20; + return aniso_u32 >> 1; } static uint32_t