From c452c82b989fcc2122da222ba67f75a5d233c8e5 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 6 Jan 2021 13:05:41 -0500 Subject: zink: manually invoke cpu detection during screen init ensure this gets populated before using it Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_screen.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c index e834d76f8d5..db0a4ac05e4 100644 --- a/src/gallium/drivers/zink/zink_screen.c +++ b/src/gallium/drivers/zink/zink_screen.c @@ -44,6 +44,8 @@ #include "util/u_transfer_helper.h" #include "util/xmlconfig.h" +#include "util/u_cpu_detect.h" + #include "frontend/sw_winsys.h" static const struct debug_named_value @@ -1373,6 +1375,8 @@ zink_internal_create_screen(const struct pipe_screen_config *config) if (!screen) return NULL; + util_cpu_detect(); + zink_debug = debug_get_option_zink_debug(); screen->instance_info.loader_version = zink_get_loader_version(); -- cgit v1.2.3