diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-05-20 17:51:34 -0700 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-05-20 17:51:34 -0700 |
commit | 1b7596e779b00f2309a05bf12afc4695dd64e27b (patch) | |
tree | f796aa2c461375435080c7a4068d68d7ebd60bad /src/core/hle/service/y2r_u.cpp | |
parent | 1c3cda5d7e94afd0a74525beb1e0798aa8b79dec (diff) | |
parent | 25f14e76f1114ff05449b2959a0af4ef713fea18 (diff) |
Merge pull request #792 from bunnei/fix-zalbw
Thread reschedule and MOFLEX fixes
Diffstat (limited to 'src/core/hle/service/y2r_u.cpp')
-rw-r--r-- | src/core/hle/service/y2r_u.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/core/hle/service/y2r_u.cpp b/src/core/hle/service/y2r_u.cpp index 085192a0..edc44361 100644 --- a/src/core/hle/service/y2r_u.cpp +++ b/src/core/hle/service/y2r_u.cpp @@ -43,6 +43,22 @@ static void GetTransferEndEvent(Service::Interface* self) { cmd_buff[3] = Kernel::g_handle_table.Create(completion_event).MoveFrom(); } +/** + * Starts a YUV -> RGB conversion + */ +static void StartConversion(Service::Interface* self) { + u32* cmd_buff = Kernel::GetCommandBuffer(); + + // TODO(bunnei): This is hack to indicate to the game that the conversion has immediately + // completed, even though it's not actually implemented yet. This fixes games that would + // otherwise hang on trying to play moflex videos, which uses the Y2R service. + completion_event->Signal(); + + LOG_WARNING(Service, "(STUBBED) called, expect blank video (MOFLEX) output!"); + + cmd_buff[1] = RESULT_SUCCESS.raw; +} + const Interface::FunctionInfo FunctionTable[] = { {0x00010040, nullptr, "SetInputFormat"}, {0x00030040, nullptr, "SetOutputFormat"}, @@ -58,7 +74,7 @@ const Interface::FunctionInfo FunctionTable[] = { {0x001C0040, nullptr, "SetInputLines"}, {0x00200040, nullptr, "SetStandardCoefficient"}, {0x00220040, nullptr, "SetAlpha"}, - {0x00260000, nullptr, "StartConversion"}, + {0x00260000, StartConversion, "StartConversion"}, {0x00270000, nullptr, "StopConversion"}, {0x00280000, IsBusyConversion, "IsBusyConversion"}, {0x002A0000, nullptr, "PingProcess"}, |