Merge branch 'master' into d3d12
This commit is contained in:
commit
58d9c6f33f
|
@ -1843,9 +1843,11 @@ struct PACK : Sequence<PACK, I<OPCODE_PACK, V128Op, V128Op, V128Op>> {
|
|||
src = i.src1;
|
||||
}
|
||||
// Saturate to [3,3....] so that only values between 3...[00] and 3...[FF]
|
||||
// are valid.
|
||||
e.vminps(i.dest, src, e.GetXmmConstPtr(XMMPackD3DCOLORSat));
|
||||
e.vmaxps(i.dest, i.dest, e.GetXmmConstPtr(XMM3333));
|
||||
// are valid - max before min to pack NaN as zero (Red Dead Redemption is
|
||||
// heavily affected by the order - packs 0xFFFFFFFF in matrix code to get 0
|
||||
// constant).
|
||||
e.vmaxps(i.dest, src, e.GetXmmConstPtr(XMM3333));
|
||||
e.vminps(i.dest, i.dest, e.GetXmmConstPtr(XMMPackD3DCOLORSat));
|
||||
// Extract bytes.
|
||||
// RGBA (XYZW) -> ARGB (WXYZ)
|
||||
// w = ((src1.uw & 0xFF) << 24) | ((src1.ux & 0xFF) << 16) |
|
||||
|
|
Loading…
Reference in New Issue