Implement sceGnmInsertDingDongMarker (#4340)

This commit is contained in:
Kravickas 2026-05-01 07:03:28 +02:00 committed by GitHub
parent a3e25efad5
commit ea8bed1c94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 3 deletions

View File

@ -1045,8 +1045,13 @@ void PS4_SYSV_ABI sceGnmGpuPaDebugLeave() {
// Not available in retail firmware
}
int PS4_SYSV_ABI sceGnmInsertDingDongMarker() {
LOG_ERROR(Lib_GnmDriver, "(STUBBED) called");
s32 PS4_SYSV_ABI sceGnmInsertDingDongMarker(u32* cmdbuf, u32 size) {
LOG_TRACE(Lib_GnmDriver, "called");
if (cmdbuf == nullptr || size != 4) {
return -1;
}
WritePacket<PM4ItOpcode::Nop>(cmdbuf, PM4ShaderType::ShaderGraphics, 0u, 0u, 0u);
return ORBIS_OK;
}

View File

@ -110,7 +110,7 @@ int PS4_SYSV_ABI sceGnmGetShaderStatus();
VAddr PS4_SYSV_ABI sceGnmGetTheTessellationFactorRingBufferBaseAddress();
void PS4_SYSV_ABI sceGnmGpuPaDebugEnter();
void PS4_SYSV_ABI sceGnmGpuPaDebugLeave();
int PS4_SYSV_ABI sceGnmInsertDingDongMarker();
s32 PS4_SYSV_ABI sceGnmInsertDingDongMarker(u32* cmdbuf, u32 size);
s32 PS4_SYSV_ABI sceGnmInsertPopMarker(u32* cmdbuf, u32 size);
s32 PS4_SYSV_ABI sceGnmInsertPushColorMarker(u32* cmdbuf, u32 size, const char* marker, u32 color);
s32 PS4_SYSV_ABI sceGnmInsertPushMarker(u32* cmdbuf, u32 size, const char* marker);