diff options
author | Mike Blumenkrantz <michael.blumenkrantz@gmail.com> | 2021-01-06 13:05:41 -0500 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-03-30 15:12:58 +0000 |
commit | c452c82b989fcc2122da222ba67f75a5d233c8e5 (patch) | |
tree | 88c73b4320dd5314bb93106434b97fe9809d4d3a | |
parent | 07318617489f2abace3c80d8b05267cb4506d543 (diff) |
zink: manually invoke cpu detection during screen init
ensure this gets populated before using it
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9885>
-rw-r--r-- | src/gallium/drivers/zink/zink_screen.c | 4 |
1 files changed, 4 insertions, 0 deletions
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(); |