diff --git a/Source/Core/Core/FifoPlayer/FifoDataFile.h b/Source/Core/Core/FifoPlayer/FifoDataFile.h index a3825ffd2c..33042f3c6c 100644 --- a/Source/Core/Core/FifoPlayer/FifoDataFile.h +++ b/Source/Core/Core/FifoPlayer/FifoDataFile.h @@ -9,6 +9,7 @@ #include #include "Common/CommonTypes.h" +#include "VideoCommon/XFMemory.h" namespace File { @@ -50,9 +51,10 @@ public: 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(); diff --git a/Source/Core/VideoCommon/XFMemory.h b/Source/Core/VideoCommon/XFMemory.h index be43d099d8..73ac347c5e 100644 --- a/Source/Core/VideoCommon/XFMemory.h +++ b/Source/Core/VideoCommon/XFMemory.h @@ -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;