summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-03-10 13:07:24 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-03-17 08:25:12 +0100
commitec514a4d1b17e248927ea3b0f7beea53fbed3d99 (patch)
tree695c5f338d3a109833d18ff1e16258155dba86ea
parentMerge pull request #6070 from Morph1984/sysver-11.0.1 (diff)
downloadyuzu-ec514a4d1b17e248927ea3b0f7beea53fbed3d99.tar
yuzu-ec514a4d1b17e248927ea3b0f7beea53fbed3d99.tar.gz
yuzu-ec514a4d1b17e248927ea3b0f7beea53fbed3d99.tar.bz2
yuzu-ec514a4d1b17e248927ea3b0f7beea53fbed3d99.tar.lz
yuzu-ec514a4d1b17e248927ea3b0f7beea53fbed3d99.tar.xz
yuzu-ec514a4d1b17e248927ea3b0f7beea53fbed3d99.tar.zst
yuzu-ec514a4d1b17e248927ea3b0f7beea53fbed3d99.zip
-rw-r--r--src/core/hle/service/vi/vi.cpp28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp
index 8661895ae..7423287ea 100644
--- a/src/core/hle/service/vi/vi.cpp
+++ b/src/core/hle/service/vi/vi.cpp
@@ -1217,6 +1217,32 @@ private:
}
}
+ void GetIndirectLayerImageMap(Kernel::HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto width = rp.Pop<s64>();
+ const auto height = rp.Pop<s64>();
+ const auto indirect_layer_consumer_handle = rp.Pop<u64>();
+ const auto applet_resource_user_id = rp.Pop<u64>();
+
+ LOG_WARNING(Service_VI,
+ "(STUBBED) called, width={}, height={}, indirect_layer_consumer_handle={}, "
+ "applet_resource_user_id={}",
+ width, height, indirect_layer_consumer_handle, applet_resource_user_id);
+
+ std::vector<u8> out_buffer(0x46);
+ ctx.WriteBuffer(out_buffer);
+
+ // TODO: Figure out what these are
+
+ constexpr s64 unknown_result_1 = 0;
+ constexpr s64 unknown_result_2 = 0;
+
+ IPC::ResponseBuilder rb{ctx, 6};
+ rb.Push(unknown_result_1);
+ rb.Push(unknown_result_2);
+ rb.Push(RESULT_SUCCESS);
+ }
+
void GetIndirectLayerImageRequiredMemoryInfo(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto width = rp.Pop<u64>();
@@ -1276,7 +1302,7 @@ IApplicationDisplayService::IApplicationDisplayService(Core::System& system_,
{2031, &IApplicationDisplayService::DestroyStrayLayer, "DestroyStrayLayer"},
{2101, &IApplicationDisplayService::SetLayerScalingMode, "SetLayerScalingMode"},
{2102, &IApplicationDisplayService::ConvertScalingMode, "ConvertScalingMode"},
- {2450, nullptr, "GetIndirectLayerImageMap"},
+ {2450, &IApplicationDisplayService::GetIndirectLayerImageMap, "GetIndirectLayerImageMap"},
{2451, nullptr, "GetIndirectLayerImageCropMap"},
{2460, &IApplicationDisplayService::GetIndirectLayerImageRequiredMemoryInfo,
"GetIndirectLayerImageRequiredMemoryInfo"},