mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-21 05:51:39 +00:00
shader_recompiler: change ir.SetScalarReg() -> SetDst() (#777)
Fixes an out-of-bounds crash on Amplitude and Rock Band 4 startup.
This commit is contained in:
parent
2709b45877
commit
0a5c36482e
|
@ -171,9 +171,9 @@ void Translator::V_READFIRSTLANE_B32(const GcnInst& inst) {
|
||||||
const IR::U32 value{GetSrc(inst.src[0])};
|
const IR::U32 value{GetSrc(inst.src[0])};
|
||||||
|
|
||||||
if (info.stage != Stage::Compute) {
|
if (info.stage != Stage::Compute) {
|
||||||
ir.SetScalarReg(dst, value);
|
SetDst(inst.dst[0], value);
|
||||||
} else {
|
} else {
|
||||||
ir.SetScalarReg(dst, ir.ReadFirstLane(value));
|
SetDst(inst.dst[0], ir.ReadFirstLane(value));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue