diff options
| author | comex <comexk@gmail.com> | 2014-09-28 21:59:27 -0400 |
|---|---|---|
| committer | comex <comexk@gmail.com> | 2014-09-28 21:59:27 -0400 |
| commit | fbabc03b3f684d57cc25bd8b86c0b1d30a237bb8 (patch) | |
| tree | 64695c3c67d9f975b7e1c7835e0e405620a562e9 /Source/Core/VideoCommon/VideoState.cpp | |
| parent | 431fb4d82a9fa9597df3c35c27e55714ff3e27c0 (diff) | |
| parent | 6c0a68d50765c24a205f7133205b54c26ae1bbfb (diff) | |
Merge pull request #885 from comex/gpu-determinism
GPU determinism (apparently it is ready for merge)
Diffstat (limited to 'Source/Core/VideoCommon/VideoState.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VideoState.cpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/Source/Core/VideoCommon/VideoState.cpp b/Source/Core/VideoCommon/VideoState.cpp index a8d5ddcf04..dd0eb2fb88 100644 --- a/Source/Core/VideoCommon/VideoState.cpp +++ b/Source/Core/VideoCommon/VideoState.cpp @@ -22,13 +22,7 @@ static void DoState(PointerWrap &p) p.DoMarker("BP Memory"); // CP Memory - p.DoArray(arraybases, 16); - p.DoArray(arraystrides, 16); - p.Do(MatrixIndexA); - p.Do(MatrixIndexB); - p.Do(g_VtxDesc.Hex); - p.DoArray(g_VtxAttr, 8); - p.DoMarker("CP Memory"); + DoCPState(p); // XF Memory p.Do(xfmem); @@ -73,11 +67,7 @@ void VideoCommon_RunLoop(bool enable) void VideoCommon_Init() { - memset(arraybases, 0, sizeof(arraybases)); - memset(arraystrides, 0, sizeof(arraystrides)); - memset(&MatrixIndexA, 0, sizeof(MatrixIndexA)); - memset(&MatrixIndexB, 0, sizeof(MatrixIndexB)); - memset(&g_VtxDesc, 0, sizeof(g_VtxDesc)); - memset(g_VtxAttr, 0, sizeof(g_VtxAttr)); + memset(&g_main_cp_state, 0, sizeof(g_main_cp_state)); + memset(&g_preprocess_cp_state, 0, sizeof(g_preprocess_cp_state)); memset(texMem, 0, TMEM_SIZE); } |
