summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderState.cpp
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2025-03-23 15:17:24 -0400
committerGitHub <noreply@github.com>2025-03-23 15:17:24 -0400
commit9b0471532ce8f715c2c681cb7fb7173e75708104 (patch)
tree426ee98d5c5616aad80a7da1870d2ca288be423c /Source/Core/VideoCommon/RenderState.cpp
parent2da255d8cdb2da67123296f5f091f808c696d021 (diff)
parent561aee7707d4ace0d987deed6c8084178c653c3d (diff)
Merge pull request #13368 from jordan-woyak/anisotropic-filtering
Use Game Requested Anisotropic Filtering
Diffstat (limited to 'Source/Core/VideoCommon/RenderState.cpp')
-rw-r--r--Source/Core/VideoCommon/RenderState.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/RenderState.cpp b/Source/Core/VideoCommon/RenderState.cpp
index 89f36f2b18..d9551b4da9 100644
--- a/Source/Core/VideoCommon/RenderState.cpp
+++ b/Source/Core/VideoCommon/RenderState.cpp
@@ -309,10 +309,15 @@ void SamplerState::Generate(const BPMemory& bp, u32 index)
};
tm0.wrap_u = filter_invalid_wrap(bp_tm0.wrap_s);
tm0.wrap_v = filter_invalid_wrap(bp_tm0.wrap_t);
+ if (bp_tm0.max_aniso == MaxAniso::Two)
+ tm0.anisotropic_filtering = 1;
+ else if (bp_tm0.max_aniso == MaxAniso::Four)
+ tm0.anisotropic_filtering = 2;
+ else
+ tm0.anisotropic_filtering = 0;
tm0.diag_lod = bp_tm0.diag_lod;
- tm0.anisotropic_filtering = false; // TODO: Respect BP anisotropic filtering mode
- tm0.lod_clamp = bp_tm0.lod_clamp; // TODO: What does this do?
+ tm0.lod_clamp = bp_tm0.lod_clamp; // TODO: What does this do?
}
namespace RenderState