interp: Handle vtfm/vhtfm prefixes properly.

This commit is contained in:
Unknown W. Brackets committed 2019-04-02 18:46:39 -07:00
1 parent 442d6450bb
commit ec7cffa847
2 files changed
+45 -44

No files matched your search

+6 -2
View File
@@ -1327,10 +1327,14 @@ namespace MIPSComp {
void IRFrontend::Comp_Vtfm(MIPSOpcode op) {
CONDITIONAL_DISABLE(VFPU_MTX);
if (!js.HasNoPrefix()) {
DISABLE;
}
// Vertex transform, vector by matrix (no prefixes)
// Vertex transform, vector by matrix (weird prefixes)
// d[N] = s[N*m .. N*m + n-1] dot t[0 .. n-1]
// Homogenous means t[n-1] is treated as 1.
// Note: this might be implemented as a series of vdots with special prefixes.
VectorSize sz = GetVecSize(op);
MatrixSize msz = GetMtxSize(op);
@@ -1346,7 +1350,7 @@ namespace MIPSComp {
}
// Otherwise, n should already be ins + 1.
else if (n != ins + 1) {
INVALIDOP;
DISABLE;
}
u8 sregs[16], dregs[4], tregs[4];