mirror of
https://git.citron-emu.org/Citron/Citron.git
synced 2025-01-22 16:46:59 +01:00
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().
This commit is contained in:
parent
5d529baafb
commit
6f160628c0
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue