From: Tim Rowley Date: Wed, 30 Mar 2016 18:32:41 +0000 (-0600) Subject: swr: [rasterizer] Avoid segv in thread creation on machines with non-consecutive... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a8146d0ff623ee26f17b9292176ab0a79ead374;p=mesa.git swr: [rasterizer] Avoid segv in thread creation on machines with non-consecutive NUMA topology. Acked-by: Brian Paul --- diff --git a/src/gallium/drivers/swr/rasterizer/core/threads.cpp b/src/gallium/drivers/swr/rasterizer/core/threads.cpp index 1a11175cfd4..056003e467c 100644 --- a/src/gallium/drivers/swr/rasterizer/core/threads.cpp +++ b/src/gallium/drivers/swr/rasterizer/core/threads.cpp @@ -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)