From 3a06c40f2fc2b06b019492b9c747178f2326e5da Mon Sep 17 00:00:00 2001 From: Andrew Middendorp <72170013+amiddendorp22@users.noreply.github.com> Date: Sat, 7 Sep 2024 11:16:11 -0700 Subject: [PATCH] Update src/shader_recompiler/frontend/translate/scalar_alu.cpp Co-authored-by: baggins183 --- src/shader_recompiler/frontend/translate/scalar_alu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shader_recompiler/frontend/translate/scalar_alu.cpp b/src/shader_recompiler/frontend/translate/scalar_alu.cpp index 56de5afda..ac64306f6 100644 --- a/src/shader_recompiler/frontend/translate/scalar_alu.cpp +++ b/src/shader_recompiler/frontend/translate/scalar_alu.cpp @@ -389,7 +389,7 @@ void Translator::S_AND_B32(NegateMode negate, const GcnInst& inst) { const IR::U32 src0{GetSrc(inst.src[0])}; IR::U32 src1{GetSrc(inst.src[1])}; if (negate == NegateMode::Src1) { - IR::U32 src1{ir.BitwiseNot(GetSrc(inst.src[1]))}; + src1 = ir.BitwiseNot(GetSrc(inst.src[1])); } IR::U32 result{ir.BitwiseAnd(src0, src1)}; if (negate == NegateMode::Result) {