From ca2e2f4bd0cf21258847514dddaa7f3ca5cff3b0 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 9 Aug 2023 07:50:58 -0400 Subject: [PATCH] zink: apply ZINK_DEBUG=noopt to linked separate shaders Part-of: --- src/gallium/drivers/zink/zink_program.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_program.c b/src/gallium/drivers/zink/zink_program.c index fca5a4d..47c71fd 100644 --- a/src/gallium/drivers/zink/zink_program.c +++ b/src/gallium/drivers/zink/zink_program.c @@ -1269,7 +1269,8 @@ create_gfx_program_separable(struct zink_context *ctx, struct zink_shader **stag _mesa_set_add(&prog->libs->libs, gkey); } - util_queue_add_job(&screen->cache_get_thread, prog, &prog->base.cache_fence, create_linked_separable_job, NULL, 0); + if (!(zink_debug & ZINK_DEBUG_NOOPT)) + util_queue_add_job(&screen->cache_get_thread, prog, &prog->base.cache_fence, create_linked_separable_job, NULL, 0); return prog; fail: -- 2.7.4