diff options
| author | 2020-11-23 13:25:01 -0500 | |
|---|---|---|
| committer | 2021-02-13 13:07:31 -0500 | |
| commit | ac265a72ce4176ceb3cd10a5548ab71519771640 (patch) | |
| tree | 0acde029388d465a5801db9106dd8f4e026e57e8 /src/video_core/gpu_thread.cpp | |
| parent | Merge pull request #5919 from ReinUsesLisp/stream-buffer-tragic (diff) | |
| download | yuzu-ac265a72ce4176ceb3cd10a5548ab71519771640.tar.gz yuzu-ac265a72ce4176ceb3cd10a5548ab71519771640.tar.xz yuzu-ac265a72ce4176ceb3cd10a5548ab71519771640.zip | |
nvdec cleanup
Diffstat (limited to 'src/video_core/gpu_thread.cpp')
| -rw-r--r-- | src/video_core/gpu_thread.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cpp index 50319f1d5..7644588e3 100644 --- a/src/video_core/gpu_thread.cpp +++ b/src/video_core/gpu_thread.cpp | |||
| @@ -48,9 +48,8 @@ static void RunThread(Core::System& system, VideoCore::RendererBase& renderer, | |||
| 48 | dma_pusher.DispatchCalls(); | 48 | dma_pusher.DispatchCalls(); |
| 49 | } else if (auto* command_list = std::get_if<SubmitChCommandEntries>(&next.data)) { | 49 | } else if (auto* command_list = std::get_if<SubmitChCommandEntries>(&next.data)) { |
| 50 | // NVDEC | 50 | // NVDEC |
| 51 | cdma_pusher.Push(std::move(command_list->entries)); | 51 | cdma_pusher.ProcessEntries(std::move(command_list->entries)); |
| 52 | cdma_pusher.DispatchCalls(); | 52 | } else if (const auto data = std::get_if<SwapBuffersCommand>(&next.data)) { |
| 53 | } else if (const auto* data = std::get_if<SwapBuffersCommand>(&next.data)) { | ||
| 54 | renderer.SwapBuffers(data->framebuffer ? &*data->framebuffer : nullptr); | 53 | renderer.SwapBuffers(data->framebuffer ? &*data->framebuffer : nullptr); |
| 55 | } else if (std::holds_alternative<OnCommandListEndCommand>(next.data)) { | 54 | } else if (std::holds_alternative<OnCommandListEndCommand>(next.data)) { |
| 56 | rasterizer->ReleaseFences(); | 55 | rasterizer->ReleaseFences(); |