[Mesa-dev] [PATCH 07/11] swr: [rasterizer] Avoid segv in thread creation on machines with non-consecutive NUMA topology.
Tim Rowley
timothy.o.rowley at intel.com
Sat Apr 2 00:22:54 UTC 2016
---
src/gallium/drivers/swr/rasterizer/core/threads.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/gallium/drivers/swr/rasterizer/core/threads.cpp b/src/gallium/drivers/swr/rasterizer/core/threads.cpp
index 1a11175..056003e 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)
--
1.9.1
More information about the mesa-dev
mailing list