llvmpipe: handle compute shader launch with 0 threads
authorDave Airlie <airlied@redhat.com>
Wed, 16 Oct 2019 03:33:36 +0000 (13:33 +1000)
committerDave Airlie <airlied@linux.ie>
Mon, 21 Oct 2019 22:51:23 +0000 (22:51 +0000)
commitbde08ce4d7bf2e59054ea1c522e82037c9dd147b
tree33186ec3dc1c257c082bcdd4997fb3d445fabaee
parent0141a4cdc0cc8f3e8e2707f21622006ae2fa4d2d
llvmpipe: handle compute shader launch with 0 threads

If you set LP_NUM_THREADS=0 compute shaders would hang,
just execute the workloads in sequence if we have no threads
in the pool.

Fixes: 1b24e3ba75 ("llvmpipe: add compute threadpool + mutex")
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/llvmpipe/lp_cs_tpool.c