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>
This commit is contained in:
Mike Blumenkrantz 2021-01-06 13:05:41 -05:00 committed by Marge Bot
parent 0731861748
commit c452c82b98

View file

@ -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();