mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-02 07:22:24 +00:00
refactor
This commit is contained in:
parent
1c698422c1
commit
a914a8df59
@ -170,12 +170,10 @@ void Translator::V_READFIRSTLANE_B32(const GcnInst& inst) {
|
|||||||
const IR::ScalarReg dst{inst.dst[0].code};
|
const IR::ScalarReg dst{inst.dst[0].code};
|
||||||
const IR::U32 value{GetSrc(inst.src[0])};
|
const IR::U32 value{GetSrc(inst.src[0])};
|
||||||
|
|
||||||
if (ir.GetExec() == ir.Imm1(false)) {
|
if (info.stage != Stage::Compute) {
|
||||||
ir.SetScalarReg(dst, value);
|
ir.SetScalarReg(dst, value);
|
||||||
} else {
|
} else {
|
||||||
const IR::U32 first_active_value = ir.ReadFirstLane(value);
|
ir.SetScalarReg(dst, ir.ReadFirstLane(value));
|
||||||
|
|
||||||
ir.SetScalarReg(dst, first_active_value);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user