zink: also disable bg compile for compute with nobgc

forgot this one in the original MR

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22933>
This commit is contained in:
Mike Blumenkrantz
2023-05-09 20:16:52 -04:00
committed by Marge Bot
parent b222b34e78
commit 476022cbe1

View File

@@ -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;
}