diff options
| author | 2020-02-18 13:24:38 -0400 | |
|---|---|---|
| committer | 2020-04-22 11:36:14 -0400 | |
| commit | 4adfc9bb0870296b372dc96296436538d6aa6c32 (patch) | |
| tree | df7dac8d36ec4a4a9c89ed6512eeb4372af4289c /src/video_core/gpu_thread.cpp | |
| parent | GPU: Fix rebase errors. (diff) | |
| download | yuzu-4adfc9bb0870296b372dc96296436538d6aa6c32.tar.gz yuzu-4adfc9bb0870296b372dc96296436538d6aa6c32.tar.xz yuzu-4adfc9bb0870296b372dc96296436538d6aa6c32.zip | |
Rasterizer: Document SignalFence & ReleaseFences and setup skeletons on Vulkan.
Diffstat (limited to 'src/video_core/gpu_thread.cpp')
| -rw-r--r-- | src/video_core/gpu_thread.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cpp index 672f8d2fa..1c3ab2145 100644 --- a/src/video_core/gpu_thread.cpp +++ b/src/video_core/gpu_thread.cpp | |||
| @@ -81,9 +81,12 @@ void ThreadManager::SwapBuffers(const Tegra::FramebufferConfig* framebuffer) { | |||
| 81 | } | 81 | } |
| 82 | 82 | ||
| 83 | void ThreadManager::FlushRegion(VAddr addr, u64 size) { | 83 | void ThreadManager::FlushRegion(VAddr addr, u64 size) { |
| 84 | if (!Settings::IsGPULevelExtreme()) { | ||
| 85 | return; | ||
| 86 | } | ||
| 84 | if (system.Renderer().Rasterizer().MustFlushRegion(addr, size)) { | 87 | if (system.Renderer().Rasterizer().MustFlushRegion(addr, size)) { |
| 85 | u64 fence = PushCommand(FlushRegionCommand(addr, size)); | 88 | u64 fence = PushCommand(FlushRegionCommand(addr, size)); |
| 86 | while (fence < state.signaled_fence.load(std::memory_order_relaxed)) { | 89 | while (fence > state.signaled_fence.load(std::memory_order_relaxed)) { |
| 87 | } | 90 | } |
| 88 | } | 91 | } |
| 89 | } | 92 | } |