zink: move flush queue init down a little further

no functional changes

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14541>
This commit is contained in:
Mike Blumenkrantz 2022-03-22 14:38:58 -04:00 committed by Marge Bot
parent d760a9151b
commit 43f197acd7
1 changed files with 3 additions and 2 deletions

View File

@ -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.
*/