diff options
| -rw-r--r-- | src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp b/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp index faed626ba..1a885f40a 100644 --- a/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp +++ b/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp | |||
| @@ -6,6 +6,8 @@ | |||
| 6 | #include "common/logging/log.h" | 6 | #include "common/logging/log.h" |
| 7 | #include "core/hle/service/nvdrv/devices/nvdisp_disp0.h" | 7 | #include "core/hle/service/nvdrv/devices/nvdisp_disp0.h" |
| 8 | #include "core/hle/service/nvdrv/devices/nvmap.h" | 8 | #include "core/hle/service/nvdrv/devices/nvmap.h" |
| 9 | #include "video_core/renderer_base.h" | ||
| 10 | #include "video_core/video_core.h" | ||
| 9 | 11 | ||
| 10 | namespace Service { | 12 | namespace Service { |
| 11 | namespace NVDRV { | 13 | namespace NVDRV { |
| @@ -22,6 +24,11 @@ void nvdisp_disp0::flip(u32 buffer_handle, u32 offset, u32 format, u32 width, u3 | |||
| 22 | LOG_WARNING(Service, | 24 | LOG_WARNING(Service, |
| 23 | "Drawing from address %llx offset %08X Width %u Height %u Stride %u Format %u", | 25 | "Drawing from address %llx offset %08X Width %u Height %u Stride %u Format %u", |
| 24 | addr, offset, width, height, stride, format); | 26 | addr, offset, width, height, stride, format); |
| 27 | |||
| 28 | using PixelFormat = RendererBase::FramebufferInfo::PixelFormat; | ||
| 29 | const RendererBase::FramebufferInfo framebuffer_info{ | ||
| 30 | addr, offset, width, height, stride, static_cast<PixelFormat>(format)}; | ||
| 31 | VideoCore::g_renderer->SwapBuffers(framebuffer_info); | ||
| 25 | } | 32 | } |
| 26 | 33 | ||
| 27 | } // namespace Devices | 34 | } // namespace Devices |