This commit is contained in:
greggameplayer 2024-08-31 01:29:54 +02:00
parent c94ce5d700
commit 3f57726feb
No known key found for this signature in database
GPG Key ID: DFCB45491D2A00EB
1 changed files with 2 additions and 4 deletions

View File

@ -170,12 +170,10 @@ void Translator::V_READFIRSTLANE_B32(const GcnInst& inst) {
const IR::ScalarReg dst{inst.dst[0].code};
const IR::U32 value{GetSrc(inst.src[0])};
if (ir.GetExec() == ir.Imm1(false)) {
if (info.stage != Stage::Compute) {
ir.SetScalarReg(dst, value);
} else {
const IR::U32 first_active_value = ir.ReadFirstLane(value);
ir.SetScalarReg(dst, first_active_value);
ir.SetScalarReg(dst, ir.ReadFirstLane(value));
}
}