From 43f197acd77917eafca3839ea60c39b1f61100b2 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 22 Mar 2022 14:38:58 -0400 Subject: [PATCH] zink: move flush queue init down a little further no functional changes Reviewed-by: Erik Faye-Lund Part-of: --- src/gallium/drivers/zink/zink_screen.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c index ba33a5f6fd6..d567f1a77cd 100644 --- a/src/gallium/drivers/zink/zink_screen.c +++ b/src/gallium/drivers/zink/zink_screen.c @@ -2100,8 +2100,6 @@ zink_internal_create_screen(const struct pipe_screen_config *config) util_cpu_detect(); screen->threaded = util_get_cpu_caps()->nr_cpus > 1 && debug_get_bool_option("GALLIUM_THREAD", util_get_cpu_caps()->nr_cpus > 1); - if (screen->threaded) - util_queue_init(&screen->flush_queue, "zfq", 8, 1, UTIL_QUEUE_INIT_RESIZE_IF_FULL, NULL); zink_debug = debug_get_option_zink_debug(); screen->descriptor_mode = debug_get_option_zink_descriptor_mode(); @@ -2141,6 +2139,9 @@ zink_internal_create_screen(const struct pipe_screen_config *config) goto fail; } + if (screen->threaded) + util_queue_init(&screen->flush_queue, "zfq", 8, 1, UTIL_QUEUE_INIT_RESIZE_IF_FULL, NULL); + /* Some Vulkan implementations have special requirements for WSI * allocations. */