Unpack d3dcolor const.

This commit is contained in:
Ben Vanik 2014-09-01 10:47:37 -07:00
parent 8dcfe94d81
commit c00e162b88
1 changed files with 6 additions and 1 deletions

View File

@ -5089,7 +5089,12 @@ EMITTER(UNPACK, MATCH(I<OPCODE_UNPACK, V128<>, V128<>>)) {
// ARGB (WXYZ) -> RGBA (XYZW)
// XMLoadColor
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
// Unpack to 000000ZZ,000000YY,000000XX,000000WW