mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-25 22:10:38 +02:00
mesa/st: Use do_once for one-time init
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>
This commit is contained in:
parent
2e81ec5e00
commit
bcb2981e14
2 changed files with 5 additions and 1 deletions
|
|
@ -68,7 +68,9 @@ DEBUG_GET_ONCE_FLAGS_OPTION(st_debug, "ST_DEBUG", st_debug_flags, 0)
|
|||
void
|
||||
st_debug_init(void)
|
||||
{
|
||||
ST_DEBUG = debug_get_option_st_debug();
|
||||
do_once {
|
||||
ST_DEBUG = debug_get_option_st_debug();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1040,6 +1040,8 @@ void st_init_extensions(struct pipe_screen *screen,
|
|||
} },
|
||||
};
|
||||
|
||||
st_debug_init();
|
||||
|
||||
/*
|
||||
* Extensions that are supported by all Gallium drivers:
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue