llvmpipe: add compute threadpool + mutex
authorDave Airlie <airlied@redhat.com>
Tue, 27 Aug 2019 02:45:39 +0000 (12:45 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 4 Sep 2019 05:22:20 +0000 (15:22 +1000)
commit1b24e3ba756ba4951086d0b1b351364acbd3af1d
treecfc91c2dbdc99f9dce4040ad9980a1ab5105420b
parente5bf6b70135fc39483247fbb385d514f3516c4af
llvmpipe: add compute threadpool + mutex

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
In order to efficiently run a number of compute blocks, use
a threadpool that just allows for jobs with unique sequential
ids to be dispatched.
src/gallium/drivers/llvmpipe/Makefile.sources
src/gallium/drivers/llvmpipe/lp_cs_tpool.c [new file with mode: 0644]
src/gallium/drivers/llvmpipe/lp_cs_tpool.h [new file with mode: 0644]
src/gallium/drivers/llvmpipe/lp_screen.c
src/gallium/drivers/llvmpipe/lp_screen.h
src/gallium/drivers/llvmpipe/meson.build