From 63fa50080d451cb8108aaa167e218719fe3aa386 Mon Sep 17 00:00:00 2001 From: eladash Date: Sat, 24 Mar 2018 17:58:57 +0300 Subject: [PATCH] sys_spu: dont check prio if spu group type is 0x20 it's currently unknown whats the exact relationship between the prio and the group type SYS_SPU_THREAD_GROUP_TYPE_COOPERATE_WITH_SYSTEM (0x20). tho we do know prio'es whom less than 16 are reserved for the system. --- rpcs3/Emu/Cell/lv2/sys_spu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_spu.cpp b/rpcs3/Emu/Cell/lv2/sys_spu.cpp index 9a39271a1e..d277b3f5d2 100644 --- a/rpcs3/Emu/Cell/lv2/sys_spu.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_spu.cpp @@ -298,7 +298,7 @@ error_code sys_spu_thread_group_create(vm::ptr id, u32 num, s32 prio, vm::p // TODO: max num value should be affected by sys_spu_initialize() settings - if (attr->nsize > 0x80 || !num || num > 6 || ((prio < 16 || prio > 255) && attr->type != SYS_SPU_THREAD_GROUP_TYPE_EXCLUSIVE_NON_CONTEXT)) + if (attr->nsize > 0x80 || !num || num > 6 || ((prio < 16 || prio > 255) && (attr->type != SYS_SPU_THREAD_GROUP_TYPE_EXCLUSIVE_NON_CONTEXT && attr->type != SYS_SPU_THREAD_GROUP_TYPE_COOPERATE_WITH_SYSTEM))) { return CELL_EINVAL; }