Mesa (master): Revert "mesa: Fix helgrind complaint about one-time init"
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Nov 25 10:06:38 UTC 2020
Module: Mesa
Branch: master
Commit: 8fffcbce9bcf393ee0e629aa66eaea4184afef1a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8fffcbce9bcf393ee0e629aa66eaea4184afef1a
Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date: Tue Nov 24 23:34:24 2020 +0100
Revert "mesa: Fix helgrind complaint about one-time init"
This reverts commit f7102ac376a23a394786085a2b0dffa94c13150c.
Acked-by: Rob Clark <robdclark at chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7760>
---
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;
}
More information about the mesa-commit
mailing list