swr: Fix KNOB_MAX_WORKER_THREADS thread creation override.
authorBruce Cherniak <bruce.cherniak@intel.com>
Tue, 12 Dec 2017 23:18:23 +0000 (17:18 -0600)
committerGeorge Kyriazis <george.kyriazis@intel.com>
Wed, 13 Dec 2017 20:44:01 +0000 (14:44 -0600)
commit709f5bdc4a2bf31f422f5cf60797224c0463c10a
treed48dc08b187fce4490e55ff6744da87204872581
parent1774c1036168b8cc043d1b3c865ca594c0c06c4f
swr: Fix KNOB_MAX_WORKER_THREADS thread creation override.

Environment variable KNOB_MAX_WORKER_THREADS allows the user to override
default thread creation and thread binding.  Previous commit to adjust
linux cpu topology caused setting this KNOB to bind all threads to a single
core.

This patch restores correct functionality of override.

Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/rasterizer/core/threads.cpp