summaryrefslogtreecommitdiffstats
path: root/src/video_core/gpu.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-12-12 09:24:33 +0100
committerbunnei <bunneidev@gmail.com>2020-12-29 01:33:48 +0100
commit40571c073faa02a6a4301e7f0ce365ef50a400aa (patch)
treef36bf8633469b5fc370495477e3c7cbc6e97a9c6 /src/video_core/gpu.cpp
parentvideo_core: gpu: Refactor out synchronous/asynchronous GPU implementations. (diff)
downloadyuzu-40571c073faa02a6a4301e7f0ce365ef50a400aa.tar
yuzu-40571c073faa02a6a4301e7f0ce365ef50a400aa.tar.gz
yuzu-40571c073faa02a6a4301e7f0ce365ef50a400aa.tar.bz2
yuzu-40571c073faa02a6a4301e7f0ce365ef50a400aa.tar.lz
yuzu-40571c073faa02a6a4301e7f0ce365ef50a400aa.tar.xz
yuzu-40571c073faa02a6a4301e7f0ce365ef50a400aa.tar.zst
yuzu-40571c073faa02a6a4301e7f0ce365ef50a400aa.zip
Diffstat (limited to 'src/video_core/gpu.cpp')
-rw-r--r--src/video_core/gpu.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp
index f99a8a0de..6ab06775f 100644
--- a/src/video_core/gpu.cpp
+++ b/src/video_core/gpu.cpp
@@ -38,7 +38,7 @@ GPU::GPU(Core::System& system_, bool is_async_, bool use_nvdec_)
maxwell_dma{std::make_unique<Engines::MaxwellDMA>(system, *memory_manager)},
kepler_memory{std::make_unique<Engines::KeplerMemory>(system, *memory_manager)},
shader_notify{std::make_unique<VideoCore::ShaderNotify>()}, is_async{is_async_},
- gpu_thread{system_} {}
+ gpu_thread{system_, is_async_} {}
GPU::~GPU() = default;
@@ -524,7 +524,10 @@ void GPU::WaitIdle() const {
}
void GPU::OnCommandListEnd() {
- gpu_thread.OnCommandListEnd();
+ if (is_async) {
+ // This command only applies to asynchronous GPU mode
+ gpu_thread.OnCommandListEnd();
+ }
}
} // namespace Tegra