initial_variants_synchronous(..) allows initial shader variant
compilation asynchronously if debug.debug_message == NULL. If the
debug callback gets changed it seems like a good idea to wait until
all async shader compiles are done.
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17124>
const struct util_debug_callback *cb)
{
struct fd_context *ctx = fd_context(pctx);
+ struct fd_screen *screen = ctx->screen;
+
+ util_queue_finish(&screen->compile_queue);
if (cb)
ctx->debug = *cb;