diff options
| author | 2021-03-19 22:59:25 -0700 | |
|---|---|---|
| committer | 2021-03-19 22:59:25 -0700 | |
| commit | 2e85ee250d0bc6c5f3c64ae2ee3bbca296cf032a (patch) | |
| tree | 1e5d8cb3e91749217caca1c9b35c677d94a3d0c6 /src | |
| parent | Merge pull request #6056 from zkitX/spl-updates (diff) | |
| parent | IApplicationDisplayService: Stub GetIndirectLayerImageMap (diff) | |
| download | yuzu-2e85ee250d0bc6c5f3c64ae2ee3bbca296cf032a.tar.gz yuzu-2e85ee250d0bc6c5f3c64ae2ee3bbca296cf032a.tar.xz yuzu-2e85ee250d0bc6c5f3c64ae2ee3bbca296cf032a.zip | |
Merge pull request #6052 from Morph1984/vi-getindirectlayerimagemap
IApplicationDisplayService: Stub GetIndirectLayerImageMap
Diffstat (limited to '')
| -rw-r--r-- | src/core/hle/service/vi/vi.cpp | 28 |
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: | |||
| 1217 | } | 1217 | } |
| 1218 | } | 1218 | } |
| 1219 | 1219 | ||
| 1220 | void GetIndirectLayerImageMap(Kernel::HLERequestContext& ctx) { | ||
| 1221 | IPC::RequestParser rp{ctx}; | ||
| 1222 | const auto width = rp.Pop<s64>(); | ||
| 1223 | const auto height = rp.Pop<s64>(); | ||
| 1224 | const auto indirect_layer_consumer_handle = rp.Pop<u64>(); | ||
| 1225 | const auto applet_resource_user_id = rp.Pop<u64>(); | ||
| 1226 | |||
| 1227 | LOG_WARNING(Service_VI, | ||
| 1228 | "(STUBBED) called, width={}, height={}, indirect_layer_consumer_handle={}, " | ||
| 1229 | "applet_resource_user_id={}", | ||
| 1230 | width, height, indirect_layer_consumer_handle, applet_resource_user_id); | ||
| 1231 | |||
| 1232 | std::vector<u8> out_buffer(0x46); | ||
| 1233 | ctx.WriteBuffer(out_buffer); | ||
| 1234 | |||
| 1235 | // TODO: Figure out what these are | ||
| 1236 | |||
| 1237 | constexpr s64 unknown_result_1 = 0; | ||
| 1238 | constexpr s64 unknown_result_2 = 0; | ||
| 1239 | |||
| 1240 | IPC::ResponseBuilder rb{ctx, 6}; | ||
| 1241 | rb.Push(unknown_result_1); | ||
| 1242 | rb.Push(unknown_result_2); | ||
| 1243 | rb.Push(RESULT_SUCCESS); | ||
| 1244 | } | ||
| 1245 | |||
| 1220 | void GetIndirectLayerImageRequiredMemoryInfo(Kernel::HLERequestContext& ctx) { | 1246 | void GetIndirectLayerImageRequiredMemoryInfo(Kernel::HLERequestContext& ctx) { |
| 1221 | IPC::RequestParser rp{ctx}; | 1247 | IPC::RequestParser rp{ctx}; |
| 1222 | const auto width = rp.Pop<u64>(); | 1248 | const auto width = rp.Pop<u64>(); |
| @@ -1276,7 +1302,7 @@ IApplicationDisplayService::IApplicationDisplayService(Core::System& system_, | |||
| 1276 | {2031, &IApplicationDisplayService::DestroyStrayLayer, "DestroyStrayLayer"}, | 1302 | {2031, &IApplicationDisplayService::DestroyStrayLayer, "DestroyStrayLayer"}, |
| 1277 | {2101, &IApplicationDisplayService::SetLayerScalingMode, "SetLayerScalingMode"}, | 1303 | {2101, &IApplicationDisplayService::SetLayerScalingMode, "SetLayerScalingMode"}, |
| 1278 | {2102, &IApplicationDisplayService::ConvertScalingMode, "ConvertScalingMode"}, | 1304 | {2102, &IApplicationDisplayService::ConvertScalingMode, "ConvertScalingMode"}, |
| 1279 | {2450, nullptr, "GetIndirectLayerImageMap"}, | 1305 | {2450, &IApplicationDisplayService::GetIndirectLayerImageMap, "GetIndirectLayerImageMap"}, |
| 1280 | {2451, nullptr, "GetIndirectLayerImageCropMap"}, | 1306 | {2451, nullptr, "GetIndirectLayerImageCropMap"}, |
| 1281 | {2460, &IApplicationDisplayService::GetIndirectLayerImageRequiredMemoryInfo, | 1307 | {2460, &IApplicationDisplayService::GetIndirectLayerImageRequiredMemoryInfo, |
| 1282 | "GetIndirectLayerImageRequiredMemoryInfo"}, | 1308 | "GetIndirectLayerImageRequiredMemoryInfo"}, |