swr: Prune empty nodes in CalculateProcessorTopology.
authorBruce Cherniak <bruce.cherniak@intel.com>
Thu, 19 Jan 2017 21:44:52 +0000 (15:44 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Mon, 23 Jan 2017 19:52:26 +0000 (13:52 -0600)
commitb829206b0739925501bcc68233437d6d03b79795
treeb75f96c6ef0434ee4ddd170f06c219a7bc0b9cb0
parentd349449a16825abc8336495afabadb2540b5a688
swr: Prune empty nodes in CalculateProcessorTopology.

CalculateProcessorTopology tries to figure out system topology by
parsing /proc/cpuinfo to determine the number of threads, cores, and
NUMA nodes.  There are some architectures where the "physical id" begins
with 1 rather than 0, which was creating and empty "0" node and causing a
crash in CreateThreadPool.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97102
Reviewed-By: George Kyriazis <george.kyriazis@intel.com>
CC: <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/swr/rasterizer/core/threads.cpp