swr: [rasterizer core] refactor thread creation
authorTim Rowley <timothy.o.rowley@intel.com>
Fri, 30 Sep 2016 21:05:19 +0000 (16:05 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Mon, 3 Oct 2016 14:57:38 +0000 (09:57 -0500)
commitcdac0427331442213a2cb8ed5a71057e1bb9793e
treee98a4a6a94cedb75e1ae1ba97964d21d06852dab
parent114f7a92c6a5ea796a4fea9a7b71188fdb243950
swr: [rasterizer core] refactor thread creation

Create worker pool now computes number of worker threads based on
things like topologies, etc. and creates the pool but doesn't actually
launch the threads. Instead there is a separate start thread pool
function. This allows thread resources to be constructed first before
threads start.

Signed-off-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/rasterizer/core/api.cpp
src/gallium/drivers/swr/rasterizer/core/threads.cpp
src/gallium/drivers/swr/rasterizer/core/threads.h