diff options
author | bunnei <bunneidev@gmail.com> | 2018-01-11 04:45:01 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-01-11 05:29:03 +0100 |
commit | 305035b503cae4a8c302a3a9f3dbde1e35c44c0c (patch) | |
tree | 5c5ad3c219402f72641649619a7f9d00ba283c5a /src/core/hle/service/nvdrv/devices | |
parent | renderer_opengl: Support rendering Switch framebuffer. (diff) | |
download | yuzu-305035b503cae4a8c302a3a9f3dbde1e35c44c0c.tar yuzu-305035b503cae4a8c302a3a9f3dbde1e35c44c0c.tar.gz yuzu-305035b503cae4a8c302a3a9f3dbde1e35c44c0c.tar.bz2 yuzu-305035b503cae4a8c302a3a9f3dbde1e35c44c0c.tar.lz yuzu-305035b503cae4a8c302a3a9f3dbde1e35c44c0c.tar.xz yuzu-305035b503cae4a8c302a3a9f3dbde1e35c44c0c.tar.zst yuzu-305035b503cae4a8c302a3a9f3dbde1e35c44c0c.zip |
Diffstat (limited to 'src/core/hle/service/nvdrv/devices')
-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 @@ #include "common/logging/log.h" #include "core/hle/service/nvdrv/devices/nvdisp_disp0.h" #include "core/hle/service/nvdrv/devices/nvmap.h" +#include "video_core/renderer_base.h" +#include "video_core/video_core.h" namespace Service { namespace NVDRV { @@ -22,6 +24,11 @@ void nvdisp_disp0::flip(u32 buffer_handle, u32 offset, u32 format, u32 width, u3 LOG_WARNING(Service, "Drawing from address %llx offset %08X Width %u Height %u Stride %u Format %u", addr, offset, width, height, stride, format); + + using PixelFormat = RendererBase::FramebufferInfo::PixelFormat; + const RendererBase::FramebufferInfo framebuffer_info{ + addr, offset, width, height, stride, static_cast<PixelFormat>(format)}; + VideoCore::g_renderer->SwapBuffers(framebuffer_info); } } // namespace Devices |