Revert "gallium/hud: Use do_once for one-time init"
This reverts commit 2e81ec5e00.
Acked-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7760>
This commit is contained in:
committed by
Marge Bot
parent
f20192f7c3
commit
b8fb95ce01
@@ -41,7 +41,6 @@
|
||||
#include "hud/hud_private.h"
|
||||
|
||||
#include "cso_cache/cso_context.h"
|
||||
#include "util/debug.h"
|
||||
#include "util/u_draw_quad.h"
|
||||
#include "util/format/u_format.h"
|
||||
#include "util/u_inlines.h"
|
||||
@@ -1812,10 +1811,8 @@ hud_create(struct cso_context *cso, struct hud_context *share)
|
||||
|
||||
memset(&action, 0, sizeof(action));
|
||||
#endif
|
||||
do_once {
|
||||
huds_visible = debug_get_bool_option("GALLIUM_HUD_VISIBLE", TRUE);
|
||||
hud_scale = debug_get_num_option("GALLIUM_HUD_SCALE", 1);
|
||||
}
|
||||
huds_visible = debug_get_bool_option("GALLIUM_HUD_VISIBLE", TRUE);
|
||||
hud_scale = debug_get_num_option("GALLIUM_HUD_SCALE", 1);
|
||||
|
||||
if (!env || !*env)
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user