mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
Fix bug in sys_spu_thread_group_create (#3734)
This commit is contained in:
parent
0064976c43
commit
946ba3be29
@ -296,7 +296,7 @@ error_code sys_spu_thread_group_create(vm::ptr<u32> id, u32 num, s32 prio, vm::p
|
||||
|
||||
// TODO: max num value should be affected by sys_spu_initialize() settings
|
||||
|
||||
if (!num || num > 6 || prio < 16 || prio > 255)
|
||||
if (!num || num > 6 || ((prio < 16 || prio > 255) && attr->type != SYS_SPU_THREAD_GROUP_TYPE_EXCLUSIVE_NON_CONTEXT))
|
||||
{
|
||||
return CELL_EINVAL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user