Also, since there is a second call-path into st_init_extensions() from
get_version(), add an extra st_debug_init() call.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7644>
void
st_debug_init(void)
{
- ST_DEBUG = debug_get_option_st_debug();
+ do_once {
+ ST_DEBUG = debug_get_option_st_debug();
+ }
}
} },
};
+ st_debug_init();
+
/*
* Extensions that are supported by all Gallium drivers:
*/