diff options
author | bunnei <bunneidev@gmail.com> | 2022-10-30 01:11:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-30 01:11:26 +0200 |
commit | c4d91488d9e7d1aadfadb6ef8e27fa4f1896a5cb (patch) | |
tree | 0653781de68f88b7910b78e5c3d893b06e9dc37d /src/core/hle/service/vi | |
parent | Merge pull request #9140 from vonchenplus/darw_index_bufferx_first_error (diff) | |
parent | nvnflinger: release queued handles immediately on disconnection (diff) | |
download | yuzu-c4d91488d9e7d1aadfadb6ef8e27fa4f1896a5cb.tar yuzu-c4d91488d9e7d1aadfadb6ef8e27fa4f1896a5cb.tar.gz yuzu-c4d91488d9e7d1aadfadb6ef8e27fa4f1896a5cb.tar.bz2 yuzu-c4d91488d9e7d1aadfadb6ef8e27fa4f1896a5cb.tar.lz yuzu-c4d91488d9e7d1aadfadb6ef8e27fa4f1896a5cb.tar.xz yuzu-c4d91488d9e7d1aadfadb6ef8e27fa4f1896a5cb.tar.zst yuzu-c4d91488d9e7d1aadfadb6ef8e27fa4f1896a5cb.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/vi/display/vi_display.h | 6 | ||||
-rw-r--r-- | src/core/hle/service/vi/vi.cpp | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/src/core/hle/service/vi/display/vi_display.h b/src/core/hle/service/vi/display/vi_display.h index 33d5f398c..0b65a65da 100644 --- a/src/core/hle/service/vi/display/vi_display.h +++ b/src/core/hle/service/vi/display/vi_display.h @@ -106,6 +106,12 @@ public: /// void CloseLayer(u64 layer_id); + /// Resets the display for a new connection. + void Reset() { + layers.clear(); + got_vsync_event = false; + } + /// Attempts to find a layer with the given ID. /// /// @param layer_id The layer ID. diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp index 9c917cacf..bb283e74e 100644 --- a/src/core/hle/service/vi/vi.cpp +++ b/src/core/hle/service/vi/vi.cpp @@ -324,10 +324,10 @@ private: IPC::RequestParser rp{ctx}; const u64 display = rp.Pop<u64>(); - LOG_WARNING(Service_VI, "(STUBBED) called. display=0x{:016X}", display); + const Result rc = nv_flinger.CloseDisplay(display) ? ResultSuccess : ResultUnknown; IPC::ResponseBuilder rb{ctx, 2}; - rb.Push(ResultSuccess); + rb.Push(rc); } void CreateManagedLayer(Kernel::HLERequestContext& ctx) { @@ -508,10 +508,10 @@ private: IPC::RequestParser rp{ctx}; const u64 display_id = rp.Pop<u64>(); - LOG_WARNING(Service_VI, "(STUBBED) called. display_id=0x{:016X}", display_id); + const Result rc = nv_flinger.CloseDisplay(display_id) ? ResultSuccess : ResultUnknown; IPC::ResponseBuilder rb{ctx, 2}; - rb.Push(ResultSuccess); + rb.Push(rc); } // This literally does nothing internally in the actual service itself, |