add sceGnmCreateWorkloadStream

This commit is contained in:
martin 2024-09-04 02:06:36 -05:00
parent feec8f3bcd
commit 4b629db087
4 changed files with 13 additions and 5 deletions

View File

@ -21268,7 +21268,6 @@ STUB("5uYwhIt0ZgA", _ZN7WebCore8XMLNames8langAttrE)
STUB(
"5uZu9zxo0y4",
_ZN3sce2Np9CppWebApi6Common23UpDownStreamTransactionINS2_15DefaultResponseENS2_12IntrusivePtrINS2_18ResponseHeaderBaseEEEEC1Ev)
STUB("5udAm+6boVg", sceGnmCreateWorkloadStream)
STUB("5udeImdKV88", _ZThn176_NK7WebCore8Document42shouldBypassMainWorldContentSecurityPolicyEv)
STUB("5uejYlz1HSo", mono_aot_Sce_Vsh_DbPreparationWrapperplt_end)
STUB("5uqBKY6wdV4", mono_aot_Sce_Vsh_GriefReportunwind_info)

View File

@ -21268,7 +21268,6 @@ STUB("5uYwhIt0ZgA", _ZN7WebCore8XMLNames8langAttrE)
STUB(
"5uZu9zxo0y4",
_ZN3sce2Np9CppWebApi6Common23UpDownStreamTransactionINS2_15DefaultResponseENS2_12IntrusivePtrINS2_18ResponseHeaderBaseEEEEC1Ev)
STUB("5udAm+6boVg", sceGnmCreateWorkloadStream)
STUB("5udeImdKV88", _ZThn176_NK7WebCore8Document42shouldBypassMainWorldContentSecurityPolicyEv)
STUB("5uejYlz1HSo", mono_aot_Sce_Vsh_DbPreparationWrapperplt_end)
STUB("5uqBKY6wdV4", mono_aot_Sce_Vsh_GriefReportunwind_info)

View File

@ -437,8 +437,18 @@ int PS4_SYSV_ABI sceGnmComputeWaitSemaphore() {
return ORBIS_OK;
}
int PS4_SYSV_ABI sceGnmCreateWorkloadStream() {
LOG_ERROR(Lib_GnmDriver, "(STUBBED) called");
int PS4_SYSV_ABI sceGnmCreateWorkloadStream(u32* stream, const char* name) {
if (name) {
LOG_ERROR(Lib_GnmDriver, "(STUBBED) sceGnmCreateWorkloadStream called with name: %s", name);
} else {
LOG_ERROR(Lib_GnmDriver, "(STUBBED) sceGnmCreateWorkloadStream called with NULL name");
}
// TODO: Implement proper functionality. For now, we stub it.
if (stream) {
*stream = 1; // Set stream to 1 as in Rust code
}
return ORBIS_OK;
}

View File

@ -20,7 +20,7 @@ int PS4_SYSV_ABI sceGnmBeginWorkload();
s32 PS4_SYSV_ABI sceGnmComputeWaitOnAddress(u32* cmdbuf, u32 size, uintptr_t addr, u32 mask,
u32 cmp_func, u32 ref);
int PS4_SYSV_ABI sceGnmComputeWaitSemaphore();
int PS4_SYSV_ABI sceGnmCreateWorkloadStream();
int PS4_SYSV_ABI sceGnmCreateWorkloadStream(u32* stream, const char* name);
int PS4_SYSV_ABI sceGnmDebuggerGetAddressWatch();
int PS4_SYSV_ABI sceGnmDebuggerHaltWavefront();
int PS4_SYSV_ABI sceGnmDebuggerReadGds();