summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/VertexLoaderManager.cpp
diff options
context:
space:
mode:
authordonkopunchstania <donkopunchstania@gmail.com>2011-03-27 02:55:08 +0000
committerdonkopunchstania <donkopunchstania@gmail.com>2011-03-27 02:55:08 +0000
commit07c4da6084e6d87cf25f87868da10c068721c19f (patch)
tree5fbbd3476f80cfdb891e8c1f2cbeac86ec85c8b5 /Source/Core/VideoCommon/Src/VertexLoaderManager.cpp
parentf8037e3ccf7723c2c02f7cfae74128561e304727 (diff)
Add graphics FIFO recorder and player for debugging the graphics system.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7414 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/VertexLoaderManager.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/VertexLoaderManager.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Src/VertexLoaderManager.cpp b/Source/Core/VideoCommon/Src/VertexLoaderManager.cpp
index 564892cb98..316941a639 100644
--- a/Source/Core/VideoCommon/Src/VertexLoaderManager.cpp
+++ b/Source/Core/VideoCommon/Src/VertexLoaderManager.cpp
@@ -214,6 +214,27 @@ void LoadCPReg(u32 sub_cmd, u32 value)
}
}
+void FillCPMemoryArray(u32 *memory)
+{
+ memory[0x30] = MatrixIndexA.Hex;
+ memory[0x40] = MatrixIndexB.Hex;
+ memory[0x50] = (u32)g_VtxDesc.Hex;
+ memory[0x60] = (u32)(g_VtxDesc.Hex >> 17);
+
+ for (int i = 0; i < 8; ++i)
+ {
+ memory[0x70 + i] = g_VtxAttr[i].g0.Hex;
+ memory[0x80 + i] = g_VtxAttr[i].g1.Hex;
+ memory[0x90 + i] = g_VtxAttr[i].g2.Hex;
+ }
+
+ for (int i = 0; i < 16; ++i)
+ {
+ memory[0xA0 + i] = arraybases[i];
+ memory[0xB0 + i] = arraystrides[i];
+ }
+}
+
void RecomputeCachedArraybases()
{
for (int i = 0; i < 16; i++)