mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-18 09:24:58 +00:00
Implement V_READFIRSTLANE_B32 (#681)
* Implement V_READFIRSTLANE_B32 * refactor
This commit is contained in:
parent
e4d8857eb5
commit
1bd9317509
3 changed files with 10 additions and 4 deletions
|
@ -167,8 +167,14 @@ void Translator::S_BARRIER() {
|
|||
}
|
||||
|
||||
void Translator::V_READFIRSTLANE_B32(const GcnInst& inst) {
|
||||
ASSERT(info.stage != Stage::Compute);
|
||||
SetDst(inst.dst[0], GetSrc(inst.src[0]));
|
||||
const IR::ScalarReg dst{inst.dst[0].code};
|
||||
const IR::U32 value{GetSrc(inst.src[0])};
|
||||
|
||||
if (info.stage != Stage::Compute) {
|
||||
ir.SetScalarReg(dst, value);
|
||||
} else {
|
||||
ir.SetScalarReg(dst, ir.ReadFirstLane(value));
|
||||
}
|
||||
}
|
||||
|
||||
void Translator::V_READLANE_B32(const GcnInst& inst) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue