From b7db3590813cd3e1e9801d7d22d3a008c465d8f1 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Wed, 29 Apr 2020 05:26:02 +0200 Subject: [PATCH] XFMemory: SETPOSMTXINFO should be SETPOSTMTXINFO It actually maps to postMtxInfo, not posMtxInfo (which isn't a thing). This is especially confusing because there *are* position matrices (as opposed to post-transform matrices). --- Source/Core/VideoCommon/XFMemory.h | 2 +- Source/Core/VideoCommon/XFStructs.cpp | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Source/Core/VideoCommon/XFMemory.h b/Source/Core/VideoCommon/XFMemory.h index dcd4b0a352..1c860c704d 100644 --- a/Source/Core/VideoCommon/XFMemory.h +++ b/Source/Core/VideoCommon/XFMemory.h @@ -132,7 +132,7 @@ enum // XFMEM_SETPROJECTIONORTHO2 = 0x1027, XFMEM_SETNUMTEXGENS = 0x103f, XFMEM_SETTEXMTXINFO = 0x1040, - XFMEM_SETPOSMTXINFO = 0x1050, + XFMEM_SETPOSTMTXINFO = 0x1050, }; union LitChannel diff --git a/Source/Core/VideoCommon/XFStructs.cpp b/Source/Core/VideoCommon/XFStructs.cpp index 6403ccf6a4..81ea7a8bba 100644 --- a/Source/Core/VideoCommon/XFStructs.cpp +++ b/Source/Core/VideoCommon/XFStructs.cpp @@ -152,18 +152,18 @@ static void XFRegWritten(int transferSize, u32 baseAddress, DataReader src) nextAddress = XFMEM_SETTEXMTXINFO + 8; break; - case XFMEM_SETPOSMTXINFO: - case XFMEM_SETPOSMTXINFO + 1: - case XFMEM_SETPOSMTXINFO + 2: - case XFMEM_SETPOSMTXINFO + 3: - case XFMEM_SETPOSMTXINFO + 4: - case XFMEM_SETPOSMTXINFO + 5: - case XFMEM_SETPOSMTXINFO + 6: - case XFMEM_SETPOSMTXINFO + 7: + case XFMEM_SETPOSTMTXINFO: + case XFMEM_SETPOSTMTXINFO + 1: + case XFMEM_SETPOSTMTXINFO + 2: + case XFMEM_SETPOSTMTXINFO + 3: + case XFMEM_SETPOSTMTXINFO + 4: + case XFMEM_SETPOSTMTXINFO + 5: + case XFMEM_SETPOSTMTXINFO + 6: + case XFMEM_SETPOSTMTXINFO + 7: g_vertex_manager->Flush(); - VertexShaderManager::SetTexMatrixInfoChanged(address - XFMEM_SETPOSMTXINFO); + VertexShaderManager::SetTexMatrixInfoChanged(address - XFMEM_SETPOSTMTXINFO); - nextAddress = XFMEM_SETPOSMTXINFO + 8; + nextAddress = XFMEM_SETPOSTMTXINFO + 8; break; // --------------