posix_pthread_join | eR8G8B8A8Unorm (Alien)

This commit is contained in:
DanielSvoboda 2024-10-06 20:15:03 -03:00
parent 75c92a7cd1
commit 33eafcd2a5
2 changed files with 8 additions and 0 deletions

View file

@ -1121,6 +1121,12 @@ int PS4_SYSV_ABI scePthreadJoin(ScePthread thread, void** res) {
}
int PS4_SYSV_ABI posix_pthread_join(ScePthread thread, void** res) {
if (!thread) {
return 22;
}
if (res == 0x0000000000000000) {
return ORBIS_KERNEL_ERROR_EINVAL;
}
int result = pthread_join(thread->pth, res);
LOG_INFO(Kernel_Pthread, "posix_pthread_join result = {}", result);
thread->is_detached = false;

View file

@ -75,6 +75,8 @@ static inline vk::Format PromoteFormatToDepth(vk::Format fmt) {
return vk::Format::eD32Sfloat;
} else if (fmt == vk::Format::eR16Unorm) {
return vk::Format::eD16Unorm;
} else if (fmt == vk::Format::eR8G8B8A8Unorm) {
return vk::Format::eD24UnormS8Uint;
}
UNREACHABLE();
}