nvk: Fix max anisotropy
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Tue, 31 Jan 2023 02:11:55 +0000 (20:11 -0600)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:31:58 +0000 (21:31 +0000)
Now that we're using the bitpack helpers, we don't need the extra shift

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>

src/nouveau/vulkan/nvk_sampler.c

index ea0e1b3..ad13988 100644 (file)
@@ -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