mirror of
https://github.com/xenia-project/xenia.git
synced 2026-04-20 22:13:40 +00:00
Unpack d3dcolor const.
This commit is contained in:
parent
8dcfe94d81
commit
c00e162b88
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue