mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-27 19:40:38 +02:00
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:
parent
f8c7a43f33
commit
f7102ac376
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue