summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/frontend/ir/patch.h
diff options
context:
space:
mode:
authorZephyron <zephyron@citron-emu.org>2024-12-31 22:54:55 +1000
committerZephyron <zephyron@citron-emu.org>2024-12-31 22:54:55 +1000
commit2b5082b30d72dcf79409fa7850a5b0873dfa8815 (patch)
treecff25e6b309474ce13c98ddbcc529c78861e0ce4 /src/shader_recompiler/frontend/ir/patch.h
parent6f160628c084cbc30679af1142ec25e4b9e70bcf (diff)
shader_recompiler: Use FPRecip in FSWZADD implementation
Simplifies the negative reciprocal calculation in FSWZADD by using the dedicated FPRecip operation instead of manually constructing a division. This change: - Replaces FPDiv(Imm32(f32(1.0f)), src_b) with FPRecip(src_b) - Results in more efficient code for calculating 1.0/x - Fixes build errors from undefined IR emitter methods
Diffstat (limited to 'src/shader_recompiler/frontend/ir/patch.h')
0 files changed, 0 insertions, 0 deletions