diff options
| author | bunnei <bunneidev@gmail.com> | 2020-12-12 00:24:33 -0800 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2020-12-28 16:33:48 -0800 |
| commit | 1481056e3d7e8638a0b1cc17c5c72178634fec0f (patch) | |
| tree | f36bf8633469b5fc370495477e3c7cbc6e97a9c6 /src/video_core/gpu.cpp | |
| parent | 927976c86c9049dd136b6e8804c773d86442dc3c (diff) | |
video_core: gpu: Implement synchronous mode using threaded GPU.
Diffstat (limited to 'src/video_core/gpu.cpp')
| -rw-r--r-- | src/video_core/gpu.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp index f99a8a0dee..6ab06775fd 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 |
