Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions core/libs/prx/libSceVideoOut/Unimplemented.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,4 @@ int APS5_VABI sceVideoOutColorSettingsSetGamma_(VideoOutColorSettings* settings,
return sceVideoOutColorSettingsSetGamma(settings, gamma);
}

APS5_EXPORT("-q-vbO859Tw", sceVideoOutUnknown_q_vbO859Tw);
int APS5_VABI sceVideoOutUnknown_q_vbO859Tw(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

}
1 change: 1 addition & 0 deletions core/libs/prx/libSceVideoOut/include/Event.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ int APS5_VABI sceVideoOutDeleteFlipEvent(KernelEqueue eq, int handle);
int APS5_VABI sceVideoOutDeleteOutputModeEvent(KernelEqueue eq, int handle);
int APS5_VABI sceVideoOutDeletePreVblankStartEvent(KernelEqueue eq, int handle);
int APS5_VABI sceVideoOutDeleteVblankEvent(KernelEqueue eq, int handle);
int APS5_VABI sceVideoOutDeleteVrrActiveStatusEvent(KernelEqueue eq, int handle);

int APS5_VABI sceVideoOutGetEventCount(const KernelEvent* ev);
int APS5_VABI sceVideoOutGetEventData(const KernelEvent* ev, int64_t* data);
Expand Down
6 changes: 6 additions & 0 deletions core/libs/prx/libSceVideoOut/src/Event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ int APS5_VABI sceVideoOutDeletePreVblankStartEvent(KernelEqueue eq, int handle)
LibcAwaitExit_nid_postfix();
}

int APS5_VABI sceVideoOutDeleteVrrActiveStatusEvent(KernelEqueue eq, int handle) try {
return deleteVideoOutEvent(handle, eq, VIDEO_OUT_EVENT_VRR_STATUS);
} catch (const ProcessShutdown&) {
LibcAwaitExit_nid_postfix();
}

int APS5_VABI sceVideoOutGetEventId(const KernelEvent* ev) {
if (ev == nullptr) {
throw std::runtime_error(std::string(__func__) + ": VIDEO_OUT_ERROR_INVALID_ADDRESS");
Expand Down
8 changes: 8 additions & 0 deletions core/libs/prx/libSceVideoOut/tests/Flip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,14 @@ void testControls() {
check(sceVideoOutGetEventId(&vrrStatus) == VIDEO_OUT_EVENT_VRR_STATUS, "VRR status event id rejected");
check(sceVideoOutVrrPegToFixedRate(handle, 0, 0) == 0, "VRR peg on an open handle failed");
check(sceVideoOutVrrUnpegFromFixedRate(handle) == 0, "VRR unpeg on an open handle failed");
check(sceVideoOutDeleteVrrActiveStatusEvent(queue, handle) == 0, "VRR status unsubscription failed");
{
std::lock_guard lock(cfg->mutex);
check(cfg->vrrStatusEvents.empty(), "VRR status unsubscription did not clear registration");
}
check(sceVideoOutDeleteVrrActiveStatusEvent(queue, handle) == 0, "duplicate VRR status unsubscription failed");
expectFailure([&] { sceVideoOutDeleteVrrActiveStatusEvent(0, handle); });
expectFailure([&] { sceVideoOutDeleteVrrActiveStatusEvent(queue, -1); });
expectFailure([&] { sceVideoOutVrrPegToFixedRate(handle, 1, 0); });
expectFailure([&] { sceVideoOutVrrPegToFixedRate(handle, 0, 1); });
expectFailure([&] { sceVideoOutVrrPegToFixedRate(handle, 0x100000000ull, 0); });
Expand Down
2 changes: 1 addition & 1 deletion docs/dev/debt/libSceAcm.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

### Unknown function info

- PPSA02530 imports declared without parameters, signatures unknown, added without an implementation because the title fails to load without them: [sceAcmBatchJobPriority](../../../core/libs/prx/libSceAcm/Export.cpp) (libSceAcm), [scePadVrControllerGetTriggerEffectStates](../../../core/libs/prx/libScePad/Export.cpp) (libScePad) and [sceVideoOutUnknown_q_vbO859Tw](../../../core/libs/prx/libSceVideoOut/Unimplemented.cpp) (libSceVideoOut), whose real name is unknown.
- PPSA02530 imports declared without parameters, signatures unknown, added without an implementation because the title fails to load without them: [sceAcmBatchJobPriority](../../../core/libs/prx/libSceAcm/Export.cpp) (libSceAcm) and [scePadVrControllerGetTriggerEffectStates](../../../core/libs/prx/libScePad/Export.cpp) (libScePad).

1 change: 1 addition & 0 deletions docs/dev/debt/libSceVideoOut.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

### Unknown function info

- [sceVideoOutDeleteVrrActiveStatusEvent](../../../core/libs/prx/libSceVideoOut/src/Event.cpp) (libSceVideoOut, NID `-q-vbO859Tw`) - the name hashes to the NID PPSA02530 imports and is listed in [sce_symbols](https://github.com/zecoxao/sce_symbols) `aerolib.csv` at `fe2cc2948e`. The signature `(eq, handle)` and the behaviour, removing the handle's VRR status registration from the queue as the other `Delete*Event` calls do, follow sceVideoOutAddVrrActiveStatusEvent; no title has been observed calling it
- [sceVideoOutGetOutputStatusWithVrr](../../../core/libs/prx/libSceVideoOut/Unimplemented.cpp) (libSceVideoOut, NID `gWT7X8H0bYs`) - the name hashes to the imported NID. PPSA26344 version 02.002.000 passes a VideoOut handle and an output pointer at three call sites. It compares a 32-bit value at byte 4 with 2, tests bit 0x10 at byte 16, and, when set, compares low 16-bit values at bytes 48, 50 and 52 with 48, 60 and 120. The full output layout, size, field meanings and console errors are unknown. Every call throws without reading or writing caller memory.
- [sceVideoOutRegisterBuffers2](../../../core/libs/prx/libSceVideoOut/src/Buffer.cpp) (libSceVideoOut) - buffer option 8 (STRICT_COLORIMETRY) is presented as option 0, with the stored values unchanged; what the console changes for it is unknown. Only options 0 and 8 are accepted
- [sceVideoOutAddBufferAttributeOption](../../../core/libs/prx/libSceVideoOut/src/Buffer.cpp) (libSceVideoOut, NID `MBlv8YWoyOk`) - the signature `(VideoOutBufferAttribute2*, uint64_t option)` comes from [SharpProspero](https://github.com/SvenGDK/SharpProspero/blob/60977b29103452b9681ae10c7a9011d44965bf16/src/SharpProspero/Interop/VideoOut/VideoOut.cs#L174-L176) and the call site in PPSA25380, which passes 0x20 and ignores the result. The option is ORed into `attribute->option`; whether the console validates the bits, keeps them elsewhere or fails on an unknown option is unknown. A null attribute throws. Option 0x20 makes `sceVideoOutRegisterBuffers2` throw, as every option other than 0 and 8; what it selects for an overlay buffer is unknown
Expand Down
Loading