diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-06-10 18:03:30 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-07-05 21:49:22 +0200 |
commit | 24408cce9bd899a6709c03b25e318123f4de7371 (patch) | |
tree | 5d9bf14216dfbf7930ad953797ab46d02c2911dc /src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp | |
parent | gpu_asynch: Simplify synchronization to a simpler consumer->producer scheme. (diff) | |
download | yuzu-24408cce9bd899a6709c03b25e318123f4de7371.tar yuzu-24408cce9bd899a6709c03b25e318123f4de7371.tar.gz yuzu-24408cce9bd899a6709c03b25e318123f4de7371.tar.bz2 yuzu-24408cce9bd899a6709c03b25e318123f4de7371.tar.lz yuzu-24408cce9bd899a6709c03b25e318123f4de7371.tar.xz yuzu-24408cce9bd899a6709c03b25e318123f4de7371.tar.zst yuzu-24408cce9bd899a6709c03b25e318123f4de7371.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp b/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp index 20c7c39aa..3336b2080 100644 --- a/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp +++ b/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp @@ -13,7 +13,8 @@ namespace Service::Nvidia::Devices { -nvdisp_disp0::nvdisp_disp0(std::shared_ptr<nvmap> nvmap_dev) : nvmap_dev(std::move(nvmap_dev)) {} +nvdisp_disp0::nvdisp_disp0(Core::System& system, std::shared_ptr<nvmap> nvmap_dev) + : nvdevice(system), nvmap_dev(std::move(nvmap_dev)) {} nvdisp_disp0 ::~nvdisp_disp0() = default; u32 nvdisp_disp0::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) { @@ -34,7 +35,7 @@ void nvdisp_disp0::flip(u32 buffer_handle, u32 offset, u32 format, u32 width, u3 addr, offset, width, height, stride, static_cast<PixelFormat>(format), transform, crop_rect}; - auto& instance = Core::System::GetInstance(); + auto& instance = system; instance.GetPerfStats().EndGameFrame(); instance.GPU().SwapBuffers(framebuffer); } |