[Mesa-dev] [PATCH 06/10] swr: [rasterizer core] Don't bind single-threaded contexts
Tim Rowley
timothy.o.rowley at intel.com
Sat Mar 25 12:00:58 UTC 2017
---
src/gallium/drivers/swr/rasterizer/core/threads.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/swr/rasterizer/core/threads.cpp b/src/gallium/drivers/swr/rasterizer/core/threads.cpp
index ea29f66..e3ad258 100644
--- a/src/gallium/drivers/swr/rasterizer/core/threads.cpp
+++ b/src/gallium/drivers/swr/rasterizer/core/threads.cpp
@@ -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;
}
--
2.7.4
More information about the mesa-dev
mailing list