From 74e6637714b61adf8d807b69dfffd7ef208d7be0 Mon Sep 17 00:00:00 2001 From: Luke Warner <65521430+LukeWarnut@users.noreply.github.com> Date: Fri, 13 Sep 2024 11:35:04 -0400 Subject: [PATCH] SCC fix --- src/shader_recompiler/frontend/translate/scalar_alu.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shader_recompiler/frontend/translate/scalar_alu.cpp b/src/shader_recompiler/frontend/translate/scalar_alu.cpp index 620182c89..4feec2c12 100644 --- a/src/shader_recompiler/frontend/translate/scalar_alu.cpp +++ b/src/shader_recompiler/frontend/translate/scalar_alu.cpp @@ -570,6 +570,7 @@ void Translator::S_ABSDIFF_I32(const GcnInst& inst) { const IR::U32 src1{GetSrc(inst.src[1])}; const IR::U32 result{ir.IAbs(ir.ISub(src0, src1))}; SetDst(inst.dst[0], result); + ir.SetScc(ir.INotEqual(result, ir.Imm32(0))); } } // namespace Shader::Gcn