mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-16 02:59:49 +01:00
x86 jit: Implement matrix init ops in SIMD. Turn off SIMD again by default (oops)
This commit is contained in:
1 parent
8f016d3e48
commit
8bd20ed8d1
2 files changed
+26
-2
No files matched your search
@@ -2317,6 +2317,31 @@ void Jit::Comp_VMatrixInit(MIPSOpcode op) {
|
||||
MatrixSize sz = GetMtxSize(op);
|
||||
int n = GetMatrixSide(sz);
|
||||
|
||||
// Not really about trying here, it will work if enabled.
|
||||
if (jo.enableVFPUSIMD) {
|
||||
VectorSize vsz = GetVectorSize(sz);
|
||||
u8 vecs[4];
|
||||
GetMatrixColumns(_VD, sz, vecs);
|
||||
for (int i = 0; i < n; i++) {
|
||||
u8 vec[4];
|
||||
GetVectorRegs(vec, vsz, vecs[i]);
|
||||
fpr.MapRegsVS(vec, vsz, MAP_NOINIT | MAP_DIRTY);
|
||||
switch ((op >> 16) & 0xF) {
|
||||
case 3:
|
||||
MOVAPS(fpr.VSX(vec), M(&identityMatrix[i]));
|
||||
break;
|
||||
case 6:
|
||||
XORPS(fpr.VSX(vec), fpr.VS(vec));
|
||||
break;
|
||||
case 7:
|
||||
MOVAPS(fpr.VSX(vec), M(&oneOneOneOne));
|
||||
break;
|
||||
}
|
||||
}
|
||||
fpr.ReleaseSpillLocks();
|
||||
return;
|
||||
}
|
||||
|
||||
u8 dregs[16];
|
||||
GetMatrixRegs(dregs, sz, _VD);
|
||||
|
||||
@@ -2835,7 +2860,6 @@ void Jit::Comp_Vhoriz(MIPSOpcode op) {
|
||||
}
|
||||
ApplyPrefixD(dregs, V_Single);
|
||||
fpr.ReleaseSpillLocks();
|
||||
NOTICE_LOG(JIT, "Horiz %08x", js.blockStart);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@ JitOptions::JitOptions()
|
||||
continueBranches = false;
|
||||
continueJumps = false;
|
||||
continueMaxInstructions = 300;
|
||||
enableVFPUSIMD = true;
|
||||
enableVFPUSIMD = false;
|
||||
}
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
||||
Reference in new issue
Block a user