mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-21 20:14:45 +00:00
refactor
This commit is contained in:
parent
1c698422c1
commit
a914a8df59
1 changed files with 2 additions and 4 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue