summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2023-03-19 08:19:25 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2023-03-22 00:17:32 +0100
commit306840a5808cae10bf5d91e4b6e8a91cd619386b (patch)
tree22d42022abbf8ab522ee046919920135d86be42c /src/video_core
parentMerge pull request #9970 from bunnei/string-util-view (diff)
downloadyuzu-306840a5808cae10bf5d91e4b6e8a91cd619386b.tar
yuzu-306840a5808cae10bf5d91e4b6e8a91cd619386b.tar.gz
yuzu-306840a5808cae10bf5d91e4b6e8a91cd619386b.tar.bz2
yuzu-306840a5808cae10bf5d91e4b6e8a91cd619386b.tar.lz
yuzu-306840a5808cae10bf5d91e4b6e8a91cd619386b.tar.xz
yuzu-306840a5808cae10bf5d91e4b6e8a91cd619386b.tar.zst
yuzu-306840a5808cae10bf5d91e4b6e8a91cd619386b.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/gpu_thread.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cpp
index f52f9e28f..469a59cf9 100644
--- a/src/video_core/gpu_thread.cpp
+++ b/src/video_core/gpu_thread.cpp
@@ -31,9 +31,10 @@ static void RunThread(std::stop_token stop_token, Core::System& system,
auto current_context = context.Acquire();
VideoCore::RasterizerInterface* const rasterizer = renderer.ReadRasterizer();
+ CommandDataContainer next;
+
while (!stop_token.stop_requested()) {
- CommandDataContainer next;
- state.queue.Pop(next, stop_token);
+ state.queue.PopWait(next, stop_token);
if (stop_token.stop_requested()) {
break;
}
@@ -117,7 +118,7 @@ u64 ThreadManager::PushCommand(CommandData&& command_data, bool block) {
std::unique_lock lk(state.write_lock);
const u64 fence{++state.last_fence};
- state.queue.Push(CommandDataContainer(std::move(command_data), fence, block));
+ state.queue.Push(std::move(command_data), fence, block);
if (block) {
Common::CondvarWait(state.cv, lk, thread.get_stop_token(), [this, fence] {