mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 03:08:36 +12:00
Fix bug in sys_spu_thread_group_create (#3734)
This commit is contained in:
parent
0064976c43
commit
946ba3be29
1 changed files with 1 additions and 1 deletions
|
@ -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
|
// 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;
|
return CELL_EINVAL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue