summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/frontend/maxwell/translate
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-05-15 18:03:31 +0200
committerGitHub <noreply@github.com>2023-05-15 18:03:31 +0200
commit736a31e4ffcfcd325b7ae7693bd9e9c621dd6580 (patch)
tree8f6d07f919ec93311683e43c49780b1afa9e43e5 /src/shader_recompiler/frontend/maxwell/translate
parentMerge pull request #10249 from FernandoS27/sorry-i-am-late (diff)
parentFix Tears of the Kingdom flickering clouds and depths. (diff)
downloadyuzu-736a31e4ffcfcd325b7ae7693bd9e9c621dd6580.tar
yuzu-736a31e4ffcfcd325b7ae7693bd9e9c621dd6580.tar.gz
yuzu-736a31e4ffcfcd325b7ae7693bd9e9c621dd6580.tar.bz2
yuzu-736a31e4ffcfcd325b7ae7693bd9e9c621dd6580.tar.lz
yuzu-736a31e4ffcfcd325b7ae7693bd9e9c621dd6580.tar.xz
yuzu-736a31e4ffcfcd325b7ae7693bd9e9c621dd6580.tar.zst
yuzu-736a31e4ffcfcd325b7ae7693bd9e9c621dd6580.zip
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/frontend/maxwell/translate/impl/texture_mipmap_level.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/texture_mipmap_level.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/texture_mipmap_level.cpp
index 639da1e9c..eeb49444f 100644
--- a/src/shader_recompiler/frontend/maxwell/translate/impl/texture_mipmap_level.cpp
+++ b/src/shader_recompiler/frontend/maxwell/translate/impl/texture_mipmap_level.cpp
@@ -102,12 +102,7 @@ void Impl(TranslatorVisitor& v, u64 insn, bool is_bindless) {
}
IR::F32 value{v.ir.CompositeExtract(sample, element)};
if (element < 2) {
- IR::U32 casted_value;
- if (element == 0) {
- casted_value = v.ir.ConvertFToU(32, value);
- } else {
- casted_value = v.ir.ConvertFToS(16, value);
- }
+ IR::U32 casted_value = v.ir.ConvertFToU(32, value);
v.X(dest_reg, v.ir.ShiftLeftLogical(casted_value, v.ir.Imm32(8)));
} else {
v.F(dest_reg, value);