mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
swr: Fix KNOB_MAX_WORKER_THREADS thread creation override.
Environment variable KNOB_MAX_WORKER_THREADS allows the user to override default thread creation and thread binding. Previous commit to adjust linux cpu topology caused setting this KNOB to bind all threads to a single core. This patch restores correct functionality of override. Cc: <mesa-stable@lists.freedesktop.org> Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
This commit is contained in:
parent
1774c10361
commit
709f5bdc4a
1 changed files with 1 additions and 2 deletions
|
|
@ -213,8 +213,7 @@ void CalculateProcessorTopology(CPUNumaNodes& out_nodes, uint32_t& out_numThread
|
|||
{
|
||||
for (auto &core : node.cores)
|
||||
{
|
||||
out_numThreadsPerProcGroup = std::max((size_t)out_numThreadsPerProcGroup,
|
||||
core.threadIds.size());
|
||||
out_numThreadsPerProcGroup += core.threadIds.size();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue