From 476022cbe1d1a06e43aacd81448a7a22c6331b1f Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 9 May 2023 20:16:52 -0400 Subject: [PATCH] zink: also disable bg compile for compute with nobgc forgot this one in the original MR Part-of: --- src/gallium/drivers/zink/zink_program.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/zink/zink_program.c b/src/gallium/drivers/zink/zink_program.c index 2c37dc62c90..c7f6b97c30d 100644 --- a/src/gallium/drivers/zink/zink_program.c +++ b/src/gallium/drivers/zink/zink_program.c @@ -1374,8 +1374,11 @@ create_compute_program(struct zink_context *ctx, nir_shader *nir) _mesa_hash_table_init(&comp->pipelines, comp, NULL, comp->use_local_size ? equals_compute_pipeline_state_local_size : equals_compute_pipeline_state); - util_queue_add_job(&screen->cache_get_thread, comp, &comp->base.cache_fence, - precompile_compute_job, NULL, 0); + if (zink_debug & ZINK_DEBUG_NOBGC) + precompile_compute_job(comp, screen, 0); + else + util_queue_add_job(&screen->cache_get_thread, comp, &comp->base.cache_fence, + precompile_compute_job, NULL, 0); return comp; }