projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a2076b
)
nvk: Fix max anisotropy
author
Faith Ekstrand
<faith.ekstrand@collabora.com>
Tue, 31 Jan 2023 02:11:55 +0000
(20:11 -0600)
committer
Marge 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
patch
|
blob
|
history
diff --git
a/src/nouveau/vulkan/nvk_sampler.c
b/src/nouveau/vulkan/nvk_sampler.c
index
ea0e1b3
..
ad13988
100644
(file)
--- 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