shader_recompiler: Implement ff1 with subgroup ops (#3225)

This commit is contained in:
TheTurtle
2025-07-10 21:52:56 +03:00
committed by GitHub
parent 88abb93669
commit 8bc30270c8
8 changed files with 27 additions and 14 deletions

View File

@@ -680,8 +680,9 @@ void Translator::S_FF1_I32_B32(const GcnInst& inst) {
}
void Translator::S_FF1_I32_B64(const GcnInst& inst) {
const IR::U64 src0{GetSrc64(inst.src[0])};
const IR::U32 result{ir.FindILsb(src0)};
ASSERT(inst.src[0].field == OperandField::ScalarGPR);
const IR::U32 result{
ir.BallotFindLsb(ir.Ballot(ir.GetThreadBitScalarReg(IR::ScalarReg(inst.src[0].code))))};
SetDst(inst.dst[0], result);
}