gallium/aux: Avoid creating queue when traces not enabled
authorRob Clark <robdclark@chromium.org>
Sat, 5 Dec 2020 18:39:45 +0000 (10:39 -0800)
committerMarge Bot <eric+marge@anholt.net>
Tue, 8 Dec 2020 16:02:10 +0000 (16:02 +0000)
commit4c670b13dd5a5e9425941bc425d1ba4afcfe3c15
treeddac3c07eeb43510ded896794070a0532db31ca9
parentd1283083eac00c6466a0f066df732699b7074c6f
gallium/aux: Avoid creating queue when traces not enabled

Avoids unnecessarily creating an extra thread when tracing is not
enabled.  Which also side-steps a chrome/ium sandbox issue with
the setscheduler call in u_queue.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7974>
src/gallium/auxiliary/util/u_trace.c