diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-02-17 23:10:23 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-04-22 17:36:10 +0200 |
commit | 487379c593bcaf3787ede187c5d44f7923b54dc9 (patch) | |
tree | b66c5c541a55be6d4b76b78c07be11731a7cb400 /src/video_core/gpu_thread.cpp | |
parent | TextureCache: Flush linear textures after finishing rendering. (diff) | |
download | yuzu-487379c593bcaf3787ede187c5d44f7923b54dc9.tar yuzu-487379c593bcaf3787ede187c5d44f7923b54dc9.tar.gz yuzu-487379c593bcaf3787ede187c5d44f7923b54dc9.tar.bz2 yuzu-487379c593bcaf3787ede187c5d44f7923b54dc9.tar.lz yuzu-487379c593bcaf3787ede187c5d44f7923b54dc9.tar.xz yuzu-487379c593bcaf3787ede187c5d44f7923b54dc9.tar.zst yuzu-487379c593bcaf3787ede187c5d44f7923b54dc9.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/gpu_thread.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cpp index 1994d3bb4..251a9d911 100644 --- a/src/video_core/gpu_thread.cpp +++ b/src/video_core/gpu_thread.cpp @@ -37,6 +37,8 @@ static void RunThread(VideoCore::RendererBase& renderer, Core::Frontend::Graphic dma_pusher.DispatchCalls(); } else if (const auto data = std::get_if<SwapBuffersCommand>(&next.data)) { renderer.SwapBuffers(data->framebuffer ? &*data->framebuffer : nullptr); + } else if (const auto data = std::get_if<OnCommandListEndCommand>(&next.data)) { + renderer.Rasterizer().ReleaseFences(); } else if (const auto data = std::get_if<FlushRegionCommand>(&next.data)) { renderer.Rasterizer().FlushRegion(data->addr, data->size); } else if (const auto data = std::get_if<InvalidateRegionCommand>(&next.data)) { @@ -95,6 +97,10 @@ void ThreadManager::WaitIdle() const { } } +void ThreadManager::OnCommandListEnd() { + PushCommand(OnCommandListEndCommand()); +} + u64 ThreadManager::PushCommand(CommandData&& command_data) { const u64 fence{++state.last_fence}; state.queue.Push(CommandDataContainer(std::move(command_data), fence)); |