From 5fecb6023a89304fcfdf9a2b1e88ca14dea2f889 Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Fri, 30 Jun 2023 23:59:34 +0300 Subject: [PATCH] [Shader JIT] Fix MAD (again) --- src/core/PICA/dynapica/shader_rec_emitter_x64.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/PICA/dynapica/shader_rec_emitter_x64.cpp b/src/core/PICA/dynapica/shader_rec_emitter_x64.cpp index de801fca..50714fb8 100644 --- a/src/core/PICA/dynapica/shader_rec_emitter_x64.cpp +++ b/src/core/PICA/dynapica/shader_rec_emitter_x64.cpp @@ -582,7 +582,7 @@ void ShaderEmitter::recRSQ(const PICAShader& shader, u32 instruction) { } void ShaderEmitter::recMAD(const PICAShader& shader, u32 instruction) { - const bool isMADI = getBit<29>(instruction); + const bool isMADI = getBit<29>(instruction) == 0; const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x1f]; const u32 src1 = getBits<17, 5>(instruction);