diff options
| author | 2024-02-11 20:58:28 -0600 | |
|---|---|---|
| committer | 2024-02-11 20:58:28 -0600 | |
| commit | 2ff45cd0da941dce2564f5c18c580d0283da27bf (patch) | |
| tree | 81fea8c23f9afa39c167288e03ff57eb25413ee4 /src/video_core/gpu.cpp | |
| parent | Merge pull request #12991 from german77/news2 (diff) | |
| parent | am: use applet program loading for tested versions (diff) | |
| download | yuzu-2ff45cd0da941dce2564f5c18c580d0283da27bf.tar.gz yuzu-2ff45cd0da941dce2564f5c18c580d0283da27bf.tar.xz yuzu-2ff45cd0da941dce2564f5c18c580d0283da27bf.zip | |
Merge pull request #12756 from liamwhite/applet-multiprocess-hwc
general: applet multiprocess
Diffstat (limited to 'src/video_core/gpu.cpp')
| -rw-r--r-- | src/video_core/gpu.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp index f4a5d831c..8e663f2a8 100644 --- a/src/video_core/gpu.cpp +++ b/src/video_core/gpu.cpp | |||
| @@ -347,6 +347,17 @@ struct GPU::Impl { | |||
| 347 | WaitForSyncOperation(wait_fence); | 347 | WaitForSyncOperation(wait_fence); |
| 348 | } | 348 | } |
| 349 | 349 | ||
| 350 | std::vector<u8> GetAppletCaptureBuffer() { | ||
| 351 | std::vector<u8> out; | ||
| 352 | |||
| 353 | const auto wait_fence = | ||
| 354 | RequestSyncOperation([&] { out = renderer->GetAppletCaptureBuffer(); }); | ||
| 355 | gpu_thread.TickGPU(); | ||
| 356 | WaitForSyncOperation(wait_fence); | ||
| 357 | |||
| 358 | return out; | ||
| 359 | } | ||
| 360 | |||
| 350 | GPU& gpu; | 361 | GPU& gpu; |
| 351 | Core::System& system; | 362 | Core::System& system; |
| 352 | Host1x::Host1x& host1x; | 363 | Host1x::Host1x& host1x; |
| @@ -505,6 +516,10 @@ void GPU::RequestComposite(std::vector<Tegra::FramebufferConfig>&& layers, | |||
| 505 | impl->RequestComposite(std::move(layers), std::move(fences)); | 516 | impl->RequestComposite(std::move(layers), std::move(fences)); |
| 506 | } | 517 | } |
| 507 | 518 | ||
| 519 | std::vector<u8> GPU::GetAppletCaptureBuffer() { | ||
| 520 | return impl->GetAppletCaptureBuffer(); | ||
| 521 | } | ||
| 522 | |||
| 508 | u64 GPU::GetTicks() const { | 523 | u64 GPU::GetTicks() const { |
| 509 | return impl->GetTicks(); | 524 | return impl->GetTicks(); |
| 510 | } | 525 | } |