Skip to content

llvmpipe/cs: change submission pattern for threadpool

Dave Airlie requested to merge airlied/mesa:llvmpipe-cs-fix-ncnn into main

Recent ncnn benchmarks showed a slowdown, and this change seemed more likely.

The batching into threads for the main workloads is fine, however the remainder stuff doesn't get spread out and can bottleneck in one thread.

Switch to a model where the initial work is batched, but the remainder is iterated over one by one.

Brings ncnn benchmarks back in line with previously.

Fixes: 69109e0b ("llvmpipe/cs: rework thread pool for avoid mtx locking")

Merge request reports