summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar bunnei2018-01-10 22:45:01 -0500
committerGravatar bunnei2018-01-10 23:29:03 -0500
commit305035b503cae4a8c302a3a9f3dbde1e35c44c0c (patch)
tree5c5ad3c219402f72641649619a7f9d00ba283c5a /src/core
parentrenderer_opengl: Support rendering Switch framebuffer. (diff)
downloadyuzu-305035b503cae4a8c302a3a9f3dbde1e35c44c0c.tar.gz
yuzu-305035b503cae4a8c302a3a9f3dbde1e35c44c0c.tar.xz
yuzu-305035b503cae4a8c302a3a9f3dbde1e35c44c0c.zip
nvdisp_disp0: Call SwapBuffers to render framebuffer.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp7
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
10namespace Service { 12namespace Service {
11namespace NVDRV { 13namespace 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