Unpack d3dcolor const.
This commit is contained in:
parent
8dcfe94d81
commit
c00e162b88
|
@ -5089,7 +5089,12 @@ EMITTER(UNPACK, MATCH(I<OPCODE_UNPACK, V128<>, V128<>>)) {
|
||||||
// ARGB (WXYZ) -> RGBA (XYZW)
|
// ARGB (WXYZ) -> RGBA (XYZW)
|
||||||
// XMLoadColor
|
// XMLoadColor
|
||||||
if (i.src1.is_constant) {
|
if (i.src1.is_constant) {
|
||||||
assert_always();
|
if (i.src1.value->IsConstantZero()) {
|
||||||
|
e.vmovaps(i.dest, e.GetXmmConstPtr(XMMOne));
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
assert_always();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// src = ZZYYXXWW
|
// src = ZZYYXXWW
|
||||||
// Unpack to 000000ZZ,000000YY,000000XX,000000WW
|
// Unpack to 000000ZZ,000000YY,000000XX,000000WW
|
||||||
|
|
Loading…
Reference in New Issue