diff options
| author | 2019-10-16 10:34:48 -0400 | |
|---|---|---|
| committer | 2019-10-16 10:34:48 -0400 | |
| commit | ef9b31783d2c6af6ec21e5a8a4a9de4e340295c7 (patch) | |
| tree | ccf16ff57bd3213bd364c6d96e1e702fe9e961a0 /src/core/hle/service/nvflinger | |
| parent | Merge pull request #2984 from lioncash/fallthrough2 (diff) | |
| parent | AsyncGpu: Address Feedback (diff) | |
| download | yuzu-ef9b31783d2c6af6ec21e5a8a4a9de4e340295c7.tar.gz yuzu-ef9b31783d2c6af6ec21e5a8a4a9de4e340295c7.tar.xz yuzu-ef9b31783d2c6af6ec21e5a8a4a9de4e340295c7.zip | |
Merge pull request #2912 from FernandoS27/async-fixes
General fixes to Async GPU
Diffstat (limited to 'src/core/hle/service/nvflinger')
| -rw-r--r-- | src/core/hle/service/nvflinger/nvflinger.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp index 368f83f6c..cc9522aad 100644 --- a/src/core/hle/service/nvflinger/nvflinger.cpp +++ b/src/core/hle/service/nvflinger/nvflinger.cpp | |||
| @@ -187,14 +187,18 @@ void NVFlinger::Compose() { | |||
| 187 | MicroProfileFlip(); | 187 | MicroProfileFlip(); |
| 188 | 188 | ||
| 189 | if (!buffer) { | 189 | if (!buffer) { |
| 190 | // There was no queued buffer to draw, render previous frame | ||
| 191 | system.GetPerfStats().EndGameFrame(); | ||
| 192 | system.GPU().SwapBuffers({}); | ||
| 193 | continue; | 190 | continue; |
| 194 | } | 191 | } |
| 195 | 192 | ||
| 196 | const auto& igbp_buffer = buffer->get().igbp_buffer; | 193 | const auto& igbp_buffer = buffer->get().igbp_buffer; |
| 197 | 194 | ||
| 195 | const auto& gpu = system.GPU(); | ||
| 196 | const auto& multi_fence = buffer->get().multi_fence; | ||
| 197 | for (u32 fence_id = 0; fence_id < multi_fence.num_fences; fence_id++) { | ||
| 198 | const auto& fence = multi_fence.fences[fence_id]; | ||
| 199 | gpu.WaitFence(fence.id, fence.value); | ||
| 200 | } | ||
| 201 | |||
| 198 | // Now send the buffer to the GPU for drawing. | 202 | // Now send the buffer to the GPU for drawing. |
| 199 | // TODO(Subv): Support more than just disp0. The display device selection is probably based | 203 | // TODO(Subv): Support more than just disp0. The display device selection is probably based |
| 200 | // on which display we're drawing (Default, Internal, External, etc) | 204 | // on which display we're drawing (Default, Internal, External, etc) |