Permalink
Browse files

Merge pull request #7470 from Tilka/fifoplayer

FifoPlayer: reduce XF_REGS_SIZE to what we know
  • Loading branch information...
Tilka committed Oct 9, 2018
2 parents bb6aff1 + 9c71364 commit 5b8e1e61e8be43dd7649d726c28caf96a1f326b5
Showing with 4 additions and 1 deletion.
  1. +3 −1 Source/Core/Core/FifoPlayer/FifoDataFile.h
  2. +1 −0 Source/Core/VideoCommon/XFMemory.h
@@ -9,6 +9,7 @@
#include <vector>
#include "Common/CommonTypes.h"
#include "VideoCommon/XFMemory.h"
namespace File
{
@@ -50,9 +51,10 @@ class FifoDataFile
BP_MEM_SIZE = 256,
CP_MEM_SIZE = 256,
XF_MEM_SIZE = 4096,
XF_REGS_SIZE = 96,
XF_REGS_SIZE = 88,
TEX_MEM_SIZE = 1024 * 1024,
};
static_assert((XF_MEM_SIZE + XF_REGS_SIZE) * sizeof(u32) == sizeof(XFMemory));
FifoDataFile();
~FifoDataFile();
@@ -288,6 +288,7 @@ struct XFMemory
u32 unk9[8]; // 0x1048 - 0x104f
PostMtxInfo postMtxInfo[8]; // 0x1050 - 0x1057
};
static_assert(sizeof(XFMemory) == sizeof(u32) * 0x1058);
extern XFMemory xfmem;

0 comments on commit 5b8e1e6

Please sign in to comment.