Jit64: fix typo in ps_sel and re-enable it

This commit is contained in:
Tillmann Karras 2013-11-01 23:36:56 +01:00 committed by degasus
parent 2f7ca688ae
commit 201c4c65a5
1 changed files with 1 additions and 4 deletions

View File

@ -40,12 +40,9 @@ void Jit64::ps_sel(UGeckoInstruction inst)
INSTRUCTION_START INSTRUCTION_START
JITDISABLE(bJITPairedOff) JITDISABLE(bJITPairedOff)
Default(inst); return;
if (inst.Rc) { if (inst.Rc) {
Default(inst); return; Default(inst); return;
} }
// GRR can't get this to work 100%. Getting artifacts in D.O.N. intro.
int d = inst.FD; int d = inst.FD;
int a = inst.FA; int a = inst.FA;
int b = inst.FB; int b = inst.FB;
@ -59,7 +56,7 @@ void Jit64::ps_sel(UGeckoInstruction inst)
MOVAPD(XMM7, fpr.R(a)); MOVAPD(XMM7, fpr.R(a));
CMPPD(XMM7, M((void*)psZeroZero), 1); //less-than = 111111 CMPPD(XMM7, M((void*)psZeroZero), 1); //less-than = 111111
MOVAPD(XMM6, R(XMM7)); MOVAPD(XMM6, R(XMM7));
ANDPD(XMM7, fpr.R(d)); ANDPD(XMM7, fpr.R(b));
ANDNPD(XMM6, fpr.R(c)); ANDNPD(XMM6, fpr.R(c));
MOVAPD(fpr.RX(d), R(XMM7)); MOVAPD(fpr.RX(d), R(XMM7));
ORPD(fpr.RX(d), R(XMM6)); ORPD(fpr.RX(d), R(XMM6));