summaryrefslogtreecommitdiffstats
path: root/src/video_core/textures
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2021-10-30 01:52:11 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2021-11-16 22:11:33 +0100
commit5230378709470da56927e85c50d0524f9ce3f81b (patch)
tree6f17ba41ea5a1f60ecea9fff4bf2b25b441c0392 /src/video_core/textures
parentTexture Cache: revert Image changes. (diff)
downloadyuzu-5230378709470da56927e85c50d0524f9ce3f81b.tar
yuzu-5230378709470da56927e85c50d0524f9ce3f81b.tar.gz
yuzu-5230378709470da56927e85c50d0524f9ce3f81b.tar.bz2
yuzu-5230378709470da56927e85c50d0524f9ce3f81b.tar.lz
yuzu-5230378709470da56927e85c50d0524f9ce3f81b.tar.xz
yuzu-5230378709470da56927e85c50d0524f9ce3f81b.tar.zst
yuzu-5230378709470da56927e85c50d0524f9ce3f81b.zip
Diffstat (limited to 'src/video_core/textures')
-rw-r--r--src/video_core/textures/texture.cpp19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/video_core/textures/texture.cpp b/src/video_core/textures/texture.cpp
index a552543ed..b2d5bb03e 100644
--- a/src/video_core/textures/texture.cpp
+++ b/src/video_core/textures/texture.cpp
@@ -6,7 +6,6 @@
#include <array>
#include "common/cityhash.h"
-#include "common/settings.h"
#include "video_core/textures/texture.h"
using Tegra::Texture::TICEntry;
@@ -51,22 +50,6 @@ constexpr std::array<float, 256> SRGB_CONVERSION_LUT = {
0.917104f, 0.929242f, 0.941493f, 0.953859f, 0.966338f, 1.000000f, 1.000000f, 1.000000f,
};
-unsigned SettingsMinimumAnisotropy() noexcept {
- switch (static_cast<Anisotropy>(Settings::values.max_anisotropy.GetValue())) {
- default:
- case Anisotropy::Default:
- return 1U;
- case Anisotropy::Filter2x:
- return 2U;
- case Anisotropy::Filter4x:
- return 4U;
- case Anisotropy::Filter8x:
- return 8U;
- case Anisotropy::Filter16x:
- return 16U;
- }
-}
-
} // Anonymous namespace
std::array<float, 4> TSCEntry::BorderColor() const noexcept {
@@ -78,7 +61,7 @@ std::array<float, 4> TSCEntry::BorderColor() const noexcept {
}
float TSCEntry::MaxAnisotropy() const noexcept {
- return static_cast<float>(std::max(1U << max_anisotropy, SettingsMinimumAnisotropy()));
+ return static_cast<float>(1U << max_anisotropy);
}
} // namespace Tegra::Texture