d3ff76d27b
When RADV_DEBUG=shaders is set, printing e.g. different NIR shaders from different threads at the same time makes the output unreadable. Use a mutex to synchronize shader dumping so that all shaders get printed in once piece. Since we're writing everything to a file or terminal anyway, the performance impact of forcing singlethreaded compilation is negligible. Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25215>