diff options
author | bunnei <bunneidev@gmail.com> | 2020-01-04 06:45:06 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2020-01-04 06:45:06 +0100 |
commit | 64c56315793d2b6dbf7a55f99d4bcc51929f03cb (patch) | |
tree | 4cd4a922499783c6369a60068442dee51cdfffe3 /src/core/hle/service/vi/vi.cpp | |
parent | Merge pull request #3247 from FernandoS27/remap-fix (diff) | |
download | yuzu-64c56315793d2b6dbf7a55f99d4bcc51929f03cb.tar yuzu-64c56315793d2b6dbf7a55f99d4bcc51929f03cb.tar.gz yuzu-64c56315793d2b6dbf7a55f99d4bcc51929f03cb.tar.bz2 yuzu-64c56315793d2b6dbf7a55f99d4bcc51929f03cb.tar.lz yuzu-64c56315793d2b6dbf7a55f99d4bcc51929f03cb.tar.xz yuzu-64c56315793d2b6dbf7a55f99d4bcc51929f03cb.tar.zst yuzu-64c56315793d2b6dbf7a55f99d4bcc51929f03cb.zip |
Diffstat (limited to 'src/core/hle/service/vi/vi.cpp')
-rw-r--r-- | src/core/hle/service/vi/vi.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp index 651c89dc0..519da74e0 100644 --- a/src/core/hle/service/vi/vi.cpp +++ b/src/core/hle/service/vi/vi.cpp @@ -1066,6 +1066,18 @@ private: rb.Push<u64>(ctx.WriteBuffer(native_window.Serialize())); } + void CloseLayer(Kernel::HLERequestContext& ctx) { + IPC::RequestParser rp{ctx}; + const auto layer_id{rp.Pop<u64>()}; + + LOG_DEBUG(Service_VI, "called. layer_id=0x{:016X}", layer_id); + + nv_flinger->CloseLayer(layer_id); + + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(RESULT_SUCCESS); + } + void CreateStrayLayer(Kernel::HLERequestContext& ctx) { IPC::RequestParser rp{ctx}; const u32 flags = rp.Pop<u32>(); @@ -1178,7 +1190,7 @@ IApplicationDisplayService::IApplicationDisplayService( {1101, &IApplicationDisplayService::SetDisplayEnabled, "SetDisplayEnabled"}, {1102, &IApplicationDisplayService::GetDisplayResolution, "GetDisplayResolution"}, {2020, &IApplicationDisplayService::OpenLayer, "OpenLayer"}, - {2021, nullptr, "CloseLayer"}, + {2021, &IApplicationDisplayService::CloseLayer, "CloseLayer"}, {2030, &IApplicationDisplayService::CreateStrayLayer, "CreateStrayLayer"}, {2031, &IApplicationDisplayService::DestroyStrayLayer, "DestroyStrayLayer"}, {2101, &IApplicationDisplayService::SetLayerScalingMode, "SetLayerScalingMode"}, |