swr: [rasterizer core] Don't bind single-threaded contexts
authorTim Rowley <timothy.o.rowley@intel.com>
Tue, 21 Mar 2017 21:52:49 +0000 (16:52 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Tue, 28 Mar 2017 16:24:27 +0000 (11:24 -0500)
Reviewed-by: George Kyriazis <george.kyriazis@intel.com>
src/gallium/drivers/swr/rasterizer/core/threads.cpp

index ea29f66c884d6456700fc4df041c79a65462a470..e3ad2585c018227dc97c639bafbf67fdf41ef3ed 100644 (file)
@@ -274,7 +274,7 @@ void CalculateProcessorTopology(CPUNumaNodes& out_nodes, uint32_t& out_numThread
 void bindThread(SWR_CONTEXT* pContext, uint32_t threadId, uint32_t procGroupId = 0, bool bindProcGroup=false)
 {
     // Only bind threads when MAX_WORKER_THREADS isn't set.
-    if (pContext->threadInfo.MAX_WORKER_THREADS && bindProcGroup == false)
+    if (pContext->threadInfo.SINGLE_THREADED || (pContext->threadInfo.MAX_WORKER_THREADS && bindProcGroup == false))
     {
         return;
     }