summaryrefslogtreecommitdiff
path: root/src/video_core/gpu_thread.cpp
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2019-06-18 16:58:29 -0400
committerGravatar FernandoS272019-07-05 15:49:31 -0400
commitb391e5f6386eecf6170b544245e3e4e31427913c (patch)
tree8a6cb553577e6f0e5f059d212fecee9e32fdc08d /src/video_core/gpu_thread.cpp
parentNVServices: Make NVEvents Automatic according to documentation. (diff)
downloadyuzu-b391e5f6386eecf6170b544245e3e4e31427913c.tar.gz
yuzu-b391e5f6386eecf6170b544245e3e4e31427913c.tar.xz
yuzu-b391e5f6386eecf6170b544245e3e4e31427913c.zip
NVFlinger: Correct GCC compile error
Diffstat (limited to 'src/video_core/gpu_thread.cpp')
-rw-r--r--src/video_core/gpu_thread.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cpp
index b87938fdd..b441e92b0 100644
--- a/src/video_core/gpu_thread.cpp
+++ b/src/video_core/gpu_thread.cpp
@@ -21,7 +21,8 @@ static void RunThread(VideoCore::RendererBase& renderer, Tegra::DmaPusher& dma_p
21 MicroProfileOnThreadCreate("GpuThread"); 21 MicroProfileOnThreadCreate("GpuThread");
22 22
23 // Wait for first GPU command before acquiring the window context 23 // Wait for first GPU command before acquiring the window context
24 while (state.queue.Empty()); 24 while (state.queue.Empty())
25 ;
25 26
26 // If emulation was stopped during disk shader loading, abort before trying to acquire context 27 // If emulation was stopped during disk shader loading, abort before trying to acquire context
27 if (!state.is_running) { 28 if (!state.is_running) {
@@ -103,7 +104,8 @@ u64 ThreadManager::PushCommand(CommandData&& command_data) {
103 104
104MICROPROFILE_DEFINE(GPU_wait, "GPU", "Wait for the GPU", MP_RGB(128, 128, 192)); 105MICROPROFILE_DEFINE(GPU_wait, "GPU", "Wait for the GPU", MP_RGB(128, 128, 192));
105void SynchState::WaitForSynchronization(u64 fence) { 106void SynchState::WaitForSynchronization(u64 fence) {
106 while (signaled_fence.load() < fence); 107 while (signaled_fence.load() < fence)
108 ;
107} 109}
108 110
109} // namespace VideoCommon::GPUThread 111} // namespace VideoCommon::GPUThread