diff options
author | Zephyron <zephyron@citron-emu.org> | 2024-12-31 22:43:09 +1000 |
---|---|---|
committer | Zephyron <zephyron@citron-emu.org> | 2024-12-31 22:43:09 +1000 |
commit | 6f160628c084cbc30679af1142ec25e4b9e70bcf (patch) | |
tree | 6e3094ca116e606a0ac1d01d173eb7f3e83cea27 /src/shader_recompiler/frontend | |
parent | 5d529baafbc6c32e6e6637ac784e73be3ea61026 (diff) |
shader_recompiler: Fix method names in FSWZADD implementation
Fixes incorrect method names in the floating point swizzled add implementation:
- FNeg -> FPNeg
- FDiv -> FPDiv
- FImm32(1.0f) -> Imm32(ir.f32(1.0f))
These changes align with the correct IR emitter interface naming conventions,
where floating-point operations use the 'FP' prefix and immediate values are
properly constructed using f32().
Diffstat (limited to 'src/shader_recompiler/frontend')
-rw-r--r-- | src/shader_recompiler/frontend/maxwell/translate/impl/floating_point_swizzled_add.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/floating_point_swizzled_add.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/floating_point_swizzled_add.cpp index 5da3262f0..cb8971551 100644 --- a/src/shader_recompiler/frontend/maxwell/translate/impl/floating_point_swizzled_add.cpp +++ b/src/shader_recompiler/frontend/maxwell/translate/impl/floating_point_swizzled_add.cpp @@ -34,7 +34,7 @@ void TranslatorVisitor::FSWZADD(u64 insn) { IR::F32 result; if (fswzadd.ndv != 0) { - const IR::F32 neg_recip = ir.FNeg(ir.FDiv(ir.FImm32(1.0f), src_b)); + const IR::F32 neg_recip = ir.FPNeg(ir.FPDiv(ir.Imm32(ir.f32(1.0f)), src_b)); result = ir.FSwizzleAdd(src_a, neg_recip, swizzle, fp_control); } else { result = ir.FSwizzleAdd(src_a, src_b, swizzle, fp_control); |