mesa: Fix helgrind complaint about one-time init
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:
@@ -36,6 +36,7 @@
|
||||
* Thanks guys!
|
||||
*/
|
||||
|
||||
#include "util/debug.h"
|
||||
|
||||
#include "main/glheader.h"
|
||||
#include "main/config.h"
|
||||
@@ -456,6 +457,7 @@ _math_init_eval(void)
|
||||
|
||||
/* KW: precompute 1/x for useful x.
|
||||
*/
|
||||
for (i = 1; i < MAX_EVAL_ORDER; i++)
|
||||
inv_tab[i] = 1.0F / i;
|
||||
do_once
|
||||
for (i = 1; i < MAX_EVAL_ORDER; i++)
|
||||
inv_tab[i] = 1.0F / i;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user