summaryrefslogtreecommitdiffstats
path: root/src/video_core/gpu_thread.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-06-18 22:58:29 +0200
committerFernandoS27 <fsahmkow27@gmail.com>2019-07-05 21:49:31 +0200
commitb391e5f6386eecf6170b544245e3e4e31427913c (patch)
tree8a6cb553577e6f0e5f059d212fecee9e32fdc08d /src/video_core/gpu_thread.cpp
parentNVServices: Make NVEvents Automatic according to documentation. (diff)
downloadyuzu-b391e5f6386eecf6170b544245e3e4e31427913c.tar
yuzu-b391e5f6386eecf6170b544245e3e4e31427913c.tar.gz
yuzu-b391e5f6386eecf6170b544245e3e4e31427913c.tar.bz2
yuzu-b391e5f6386eecf6170b544245e3e4e31427913c.tar.lz
yuzu-b391e5f6386eecf6170b544245e3e4e31427913c.tar.xz
yuzu-b391e5f6386eecf6170b544245e3e4e31427913c.tar.zst
yuzu-b391e5f6386eecf6170b544245e3e4e31427913c.zip
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
MicroProfileOnThreadCreate("GpuThread");
// Wait for first GPU command before acquiring the window context
- while (state.queue.Empty());
+ while (state.queue.Empty())
+ ;
// If emulation was stopped during disk shader loading, abort before trying to acquire context
if (!state.is_running) {
@@ -103,7 +104,8 @@ u64 ThreadManager::PushCommand(CommandData&& command_data) {
MICROPROFILE_DEFINE(GPU_wait, "GPU", "Wait for the GPU", MP_RGB(128, 128, 192));
void SynchState::WaitForSynchronization(u64 fence) {
- while (signaled_fence.load() < fence);
+ while (signaled_fence.load() < fence)
+ ;
}
} // namespace VideoCommon::GPUThread