summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2017-03-21 16:52:49 -0500
committerTim Rowley <[email protected]>2017-03-28 11:24:27 -0500
commitaea737e12e186091507d33b874ec101da0f69c5e (patch)
tree05fd0691db01dcc2f7bd40fdcb8fa85acc9079ea
parent4cd0b1bb2c284609d2ac3413456b29f1a3e42d10 (diff)
swr: [rasterizer core] Don't bind single-threaded contexts
Reviewed-by: George Kyriazis <[email protected]>
-rw-r--r--src/gallium/drivers/swr/rasterizer/core/threads.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/core/threads.cpp b/src/gallium/drivers/swr/rasterizer/core/threads.cpp
index ea29f66c884..e3ad2585c01 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;
}