Skip to content

Commit cde84e4

Browse files
shader_recompiler: Fix mistake
1 parent 119e03c commit cde84e4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/shader_recompiler/frontend/translate/scalar_alu.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ void Translator::EmitScalarAlu(const GcnInst& inst) {
9696
return S_BREV_B32(inst);
9797
case Opcode::S_BCNT1_I32_B64:
9898
return S_BCNT1_I32_B64(inst);
99-
case Opcode::S_FF1_I32_B64:
100-
return S_FF1_I32_B64(inst);
99+
case Opcode::S_FF1_I32_B32:
100+
return S_FF1_I32_B32(inst);
101101
case Opcode::S_AND_SAVEEXEC_B64:
102102
return S_SAVEEXEC_B64(NegateMode::None, false, inst);
103103
case Opcode::S_ORN2_SAVEEXEC_B64:
@@ -575,7 +575,7 @@ void Translator::S_BCNT1_I32_B64(const GcnInst& inst) {
575575
ir.SetScc(ir.INotEqual(result, ir.Imm32(0)));
576576
}
577577

578-
void Translator::S_FF1_I32_B64(const GcnInst& inst) {
578+
void Translator::S_FF1_I32_B32(const GcnInst& inst) {
579579
const IR::U32 src0{GetSrc(inst.src[0])};
580580
const IR::U32 result{ir.Select(ir.IEqual(src0, ir.Imm32(0U)), ir.Imm32(-1), ir.FindILsb(src0))};
581581
SetDst(inst.dst[0], result);

src/shader_recompiler/frontend/translate/translate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class Translator {
110110
void S_NOT_B64(const GcnInst& inst);
111111
void S_BREV_B32(const GcnInst& inst);
112112
void S_BCNT1_I32_B64(const GcnInst& inst);
113-
void S_FF1_I32_B64(const GcnInst& inst);
113+
void S_FF1_I32_B32(const GcnInst& inst);
114114
void S_GETPC_B64(u32 pc, const GcnInst& inst);
115115
void S_SAVEEXEC_B64(NegateMode negate, bool is_or, const GcnInst& inst);
116116

0 commit comments

Comments
 (0)