summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2016-03-30 12:32:41 -0600
committerTim Rowley <[email protected]>2016-04-12 11:52:05 -0500
commit9a8146d0ff623ee26f17b9292176ab0a79ead374 (patch)
tree90efdf48a665d6a66826b5c7f9f9234f4eb1aec8
parent2c71fd4bf81b82c7c3f57fc2c97aa83e814b6883 (diff)
swr: [rasterizer] Avoid segv in thread creation on machines with non-consecutive NUMA topology.
Acked-by: Brian Paul <[email protected]>
-rw-r--r--src/gallium/drivers/swr/rasterizer/core/threads.cpp4
1 files changed, 4 insertions, 0 deletions
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)