mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-18 09:24:58 +00:00
shader_recompiler: added V_MAX VOP2 (431, 433)
This commit is contained in:
parent
be67fdc9c9
commit
d054c3e0ad
3 changed files with 13 additions and 0 deletions
|
@ -197,6 +197,12 @@ void Translator::V_MAX_F32(const GcnInst& inst) {
|
|||
SetDst(inst.dst[0], ir.FPMax(src0, src1));
|
||||
}
|
||||
|
||||
void Translator::V_MAX_U32(bool is_signed, const GcnInst& inst) {
|
||||
const IR::U32 src0{GetSrc(inst.src[0])};
|
||||
const IR::U32 src1{GetSrc(inst.src[1])};
|
||||
SetDst(inst.dst[0], ir.IMax(src0, src1, is_signed));
|
||||
}
|
||||
|
||||
void Translator::V_RSQ_F32(const GcnInst& inst) {
|
||||
const IR::F32 src0{GetSrc(inst.src[0], true)};
|
||||
SetDst(inst.dst[0], ir.FPRecipSqrt(src0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue