summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Fifo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/Fifo.cpp')
-rw-r--r--Source/Core/VideoCommon/Fifo.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/Source/Core/VideoCommon/Fifo.cpp b/Source/Core/VideoCommon/Fifo.cpp
index 4a85679210..8c7dbce49b 100644
--- a/Source/Core/VideoCommon/Fifo.cpp
+++ b/Source/Core/VideoCommon/Fifo.cpp
@@ -104,7 +104,8 @@ void Fifo_Init()
void Fifo_Shutdown()
{
- if (GpuRunningState) PanicAlert("Fifo shutting down while active");
+ if (GpuRunningState)
+ PanicAlert("Fifo shutting down while active");
FreeMemoryPages(s_video_buffer, FIFO_SIZE + 4);
s_video_buffer = nullptr;
s_video_buffer_write_ptr = nullptr;
@@ -115,16 +116,6 @@ void Fifo_Shutdown()
s_fifo_aux_read_ptr = nullptr;
}
-u8* GetVideoBufferStartPtr()
-{
- return s_video_buffer;
-}
-
-u8* GetVideoBufferEndPtr()
-{
- return s_video_buffer_write_ptr;
-}
-
void Fifo_SetRendering(bool enabled)
{
g_bSkipCurrentFrame = !enabled;
@@ -137,7 +128,8 @@ void ExitGpuLoop()
// This should break the wait loop in CPU thread
CommandProcessor::fifo.bFF_GPReadEnable = false;
SCPFifoStruct &fifo = CommandProcessor::fifo;
- while (fifo.isGpuReadingData) Common::YieldCPU();
+ while (fifo.isGpuReadingData)
+ Common::YieldCPU();
// Terminate GPU thread loop
GpuRunningState = false;
EmuRunningState = true;