swr: [rasterizer] Avoid segv in thread creation on machines with non-consecutive NUMA topology.

Acked-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Tim Rowley 2016-03-30 12:32:41 -06:00
parent 2c71fd4bf8
commit 9a8146d0ff

View file

@ -783,6 +783,10 @@ void CreateThreadPool(SWR_CONTEXT *pContext, THREAD_POOL *pPool)
for (uint32_t n = 0; n < numNodes; ++n)
{
auto& node = nodes[n];
if (node.cores.size() == 0)
{
continue;
}
uint32_t numCores = numCoresPerNode;
for (uint32_t c = 0; c < numCores; ++c)