diff options
author | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2023-05-11 20:25:24 +0200 |
---|---|---|
committer | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2023-05-11 20:25:24 +0200 |
commit | e42b4a16b6024c18e860c17c5c33d28f4dc37c58 (patch) | |
tree | 02ab04ec9ea82663138366e319bdadead48ac8e2 /src/shader_recompiler/frontend/maxwell/translate/impl | |
parent | Merge pull request #10132 from Kelebek1/fermi_blit2 (diff) | |
download | yuzu-e42b4a16b6024c18e860c17c5c33d28f4dc37c58.tar yuzu-e42b4a16b6024c18e860c17c5c33d28f4dc37c58.tar.gz yuzu-e42b4a16b6024c18e860c17c5c33d28f4dc37c58.tar.bz2 yuzu-e42b4a16b6024c18e860c17c5c33d28f4dc37c58.tar.lz yuzu-e42b4a16b6024c18e860c17c5c33d28f4dc37c58.tar.xz yuzu-e42b4a16b6024c18e860c17c5c33d28f4dc37c58.tar.zst yuzu-e42b4a16b6024c18e860c17c5c33d28f4dc37c58.zip |
Diffstat (limited to '')
-rw-r--r-- | src/shader_recompiler/frontend/maxwell/translate/impl/texture_mipmap_level.cpp | 7 |
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); |