mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 21:58:45 +00:00
Implement V_READFIRSTLANE_B32 (#681)
* Implement V_READFIRSTLANE_B32 * refactor
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user