nvk: Fix max anisotropy

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>
This commit is contained in:
Faith Ekstrand
2023-01-30 20:11:55 -06:00
committed by Marge Bot
parent 2a2076b0d2
commit bd4988b9c0
+1 -1
View 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