diff options
author | bunnei <bunneidev@gmail.com> | 2023-01-28 23:00:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-28 23:00:11 +0100 |
commit | 159aab9a97529c85b114794b73911311a6b94abc (patch) | |
tree | 6b771b611f5fe06ab4ff7a7bd5c984b469d0c3cb /src/shader_recompiler/ir_opt/texture_pass.cpp | |
parent | Merge pull request #9661 from SoRadGaming/LDNhostnameSupport (diff) | |
parent | shader_recompiler: Remove S32 IR type (diff) | |
download | yuzu-159aab9a97529c85b114794b73911311a6b94abc.tar yuzu-159aab9a97529c85b114794b73911311a6b94abc.tar.gz yuzu-159aab9a97529c85b114794b73911311a6b94abc.tar.bz2 yuzu-159aab9a97529c85b114794b73911311a6b94abc.tar.lz yuzu-159aab9a97529c85b114794b73911311a6b94abc.tar.xz yuzu-159aab9a97529c85b114794b73911311a6b94abc.tar.zst yuzu-159aab9a97529c85b114794b73911311a6b94abc.zip |
Diffstat (limited to 'src/shader_recompiler/ir_opt/texture_pass.cpp')
-rw-r--r-- | src/shader_recompiler/ir_opt/texture_pass.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shader_recompiler/ir_opt/texture_pass.cpp b/src/shader_recompiler/ir_opt/texture_pass.cpp index 9718c6921..70b620dcb 100644 --- a/src/shader_recompiler/ir_opt/texture_pass.cpp +++ b/src/shader_recompiler/ir_opt/texture_pass.cpp @@ -486,10 +486,10 @@ void PatchTexelFetch(IR::Block& block, IR::Inst& inst, TexturePixelFormat pixel_ const IR::F32 w(ir.CompositeExtract(new_inst, 3)); const IR::F16F32F64 max_value(ir.Imm32(get_max_value())); const IR::Value converted = - ir.CompositeConstruct(ir.FPMul(ir.ConvertSToF(32, 32, ir.BitCast<IR::S32>(x)), max_value), - ir.FPMul(ir.ConvertSToF(32, 32, ir.BitCast<IR::S32>(y)), max_value), - ir.FPMul(ir.ConvertSToF(32, 32, ir.BitCast<IR::S32>(z)), max_value), - ir.FPMul(ir.ConvertSToF(32, 32, ir.BitCast<IR::S32>(w)), max_value)); + ir.CompositeConstruct(ir.FPMul(ir.ConvertSToF(32, 32, ir.BitCast<IR::U32>(x)), max_value), + ir.FPMul(ir.ConvertSToF(32, 32, ir.BitCast<IR::U32>(y)), max_value), + ir.FPMul(ir.ConvertSToF(32, 32, ir.BitCast<IR::U32>(z)), max_value), + ir.FPMul(ir.ConvertSToF(32, 32, ir.BitCast<IR::U32>(w)), max_value)); inst.ReplaceUsesWith(converted); } } // Anonymous namespace |