diff options
| author | CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com> | 2022-08-18 13:38:37 -0700 |
|---|---|---|
| committer | CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com> | 2022-08-18 13:38:37 -0700 |
| commit | ab8a8e6f84652d9072bb8296e461d0d54f403edb (patch) | |
| tree | 0e9685ed27900682278e3516b05e2f7ab016f417 /Source/Core/VideoCommon | |
| parent | b6a18b0da51ec0733dc6fcc78725fa4f800fc035 (diff) | |
Fix crashes in dual core mode on a PI_FIFO_RESET
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/AsyncRequests.cpp | 4 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/AsyncRequests.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/AsyncRequests.cpp b/Source/Core/VideoCommon/AsyncRequests.cpp index f8306ddc3e..0371683376 100644 --- a/Source/Core/VideoCommon/AsyncRequests.cpp +++ b/Source/Core/VideoCommon/AsyncRequests.cpp @@ -158,6 +158,10 @@ void AsyncRequests::HandleEvent(const AsyncRequests::Event& e) *e.bbox.data = g_renderer->BBoxRead(e.bbox.index); break; + case Event::FIFO_RESET: + Fifo::ResetVideoBuffer(); + break; + case Event::PERF_QUERY: g_perf_query->FlushResults(); break; diff --git a/Source/Core/VideoCommon/AsyncRequests.h b/Source/Core/VideoCommon/AsyncRequests.h index c76b3b7834..5271426f1f 100644 --- a/Source/Core/VideoCommon/AsyncRequests.h +++ b/Source/Core/VideoCommon/AsyncRequests.h @@ -27,6 +27,7 @@ public: EFB_PEEK_Z, SWAP_EVENT, BBOX_READ, + FIFO_RESET, PERF_QUERY, DO_SAVE_STATE, } type; @@ -64,6 +65,10 @@ public: struct { + } fifo_reset; + + struct + { } perf_query; struct |
