From 8fffcbce9bcf393ee0e629aa66eaea4184afef1a Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Tue, 24 Nov 2020 23:34:24 +0100 Subject: [PATCH] Revert "mesa: Fix helgrind complaint about one-time init" This reverts commit f7102ac376a23a394786085a2b0dffa94c13150c. Acked-by: Rob Clark Part-of: --- src/mesa/math/m_eval.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mesa/math/m_eval.c b/src/mesa/math/m_eval.c index 94c72dffdd5..f0c7190b799 100644 --- a/src/mesa/math/m_eval.c +++ b/src/mesa/math/m_eval.c @@ -36,7 +36,6 @@ * Thanks guys! */ -#include "util/debug.h" #include "main/glheader.h" #include "main/config.h" @@ -457,7 +456,6 @@ _math_init_eval(void) /* KW: precompute 1/x for useful x. */ - do_once - for (i = 1; i < MAX_EVAL_ORDER; i++) - inv_tab[i] = 1.0F / i; + for (i = 1; i < MAX_EVAL_ORDER; i++) + inv_tab[i] = 1.0F / i; }