summaryrefslogtreecommitdiff
path: root/src/video_core/gpu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/gpu.cpp')
-rw-r--r--src/video_core/gpu.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp
index 08abf8ac9..b0f3310e5 100644
--- a/src/video_core/gpu.cpp
+++ b/src/video_core/gpu.cpp
@@ -65,6 +65,16 @@ const DmaPusher& GPU::DmaPusher() const {
65 return *dma_pusher; 65 return *dma_pusher;
66} 66}
67 67
68void GPU::PushGPUEntries(Tegra::CommandList&& entries) {
69 dma_pusher->Push(std::move(entries));
70 dma_pusher->DispatchCalls();
71}
72
73void GPU::SwapBuffers(
74 std::optional<std::reference_wrapper<const Tegra::FramebufferConfig>> framebuffer) {
75 renderer.SwapBuffers(std::move(framebuffer));
76}
77
68u32 RenderTargetBytesPerPixel(RenderTargetFormat format) { 78u32 RenderTargetBytesPerPixel(RenderTargetFormat format) {
69 ASSERT(format != RenderTargetFormat::NONE); 79 ASSERT(format != RenderTargetFormat::NONE);
70 80