swr: [rasterizer] Avoid segv in thread creation on machines with non-consecutive...
authorTim Rowley <timothy.o.rowley@intel.com>
Wed, 30 Mar 2016 18:32:41 +0000 (12:32 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Tue, 12 Apr 2016 16:52:05 +0000 (11:52 -0500)
Acked-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/swr/rasterizer/core/threads.cpp

index 1a11175cfd4e785364420d478ac8314d88b079e1..056003e467c5073397b4181c32933e41e91c1b06 100644 (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)