diff options
author | Wollnashorn <Wollnashorn@users.noreply.github.com> | 2023-06-15 23:16:26 +0200 |
---|---|---|
committer | Wollnashorn <Wollnashorn@users.noreply.github.com> | 2023-06-15 23:16:26 +0200 |
commit | a3b7b5b22af8ef83fc765afac9d6f6b8dac7f62b (patch) | |
tree | 0b3bea548cb1282d45a53365faea13e4321a69f8 /src/video_core/renderer_vulkan/vk_texture_cache.cpp | |
parent | video_core: Disable AF for non-color image formats (diff) | |
download | yuzu-a3b7b5b22af8ef83fc765afac9d6f6b8dac7f62b.tar yuzu-a3b7b5b22af8ef83fc765afac9d6f6b8dac7f62b.tar.gz yuzu-a3b7b5b22af8ef83fc765afac9d6f6b8dac7f62b.tar.bz2 yuzu-a3b7b5b22af8ef83fc765afac9d6f6b8dac7f62b.tar.lz yuzu-a3b7b5b22af8ef83fc765afac9d6f6b8dac7f62b.tar.xz yuzu-a3b7b5b22af8ef83fc765afac9d6f6b8dac7f62b.tar.zst yuzu-a3b7b5b22af8ef83fc765afac9d6f6b8dac7f62b.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_texture_cache.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_texture_cache.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.cpp b/src/video_core/renderer_vulkan/vk_texture_cache.cpp index 8ec181335..f025f618b 100644 --- a/src/video_core/renderer_vulkan/vk_texture_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_texture_cache.cpp @@ -1827,8 +1827,10 @@ Sampler::Sampler(TextureCacheRuntime& runtime, const Tegra::Texture::TSCEntry& t }; sampler = create_sampler(max_anisotropy); - if (Settings::values.max_anisotropy.GetValue() > 0 && max_anisotropy > 1.0f) { - sampler_without_anisotropy = create_sampler(1.0f); + + const f32 max_anisotropy_default = static_cast<f32>(1U << tsc.max_anisotropy); + if (max_anisotropy > max_anisotropy_default) { + sampler_default_anisotropy = create_sampler(max_anisotropy_default); } } |