mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-11 18:50:17 +01:00
gallium/u_queue: set num_threads correctly if not all threads start
If i-th thread could not be created it means we have i threads, not i+1, because we start from 0. Fixes:404d0d5"gallium/u_queue: add an option to have multiple worker threads" Signed-off-by: Grazvydas Ignotas <notasas@gmail.com> Signed-off-by: Marek Olšák <marek.olsak@amd.com> (cherry picked from commit7f268cf12b)
This commit is contained in:
parent
ce5770728a
commit
d348151c99
1 changed files with 1 additions and 1 deletions
|
|
@ -215,7 +215,7 @@ util_queue_init(struct util_queue *queue,
|
|||
goto fail;
|
||||
} else {
|
||||
/* at least one thread created, so use it */
|
||||
queue->num_threads = i+1;
|
||||
queue->num_threads = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue