aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeil Roberts <[email protected]>2019-10-11 15:57:29 +0200
committerNeil Roberts <[email protected]>2019-10-12 09:43:18 +0200
commit9eaeedd54b8c2bc207360e9ef15d2d7675c972f4 (patch)
treef39595fb3ab5699aaba04469a1e9e7f3e8c5aaf4 /src
parent2098ae16c8b4e64d0694a28f74a461b69b98a336 (diff)
nir/builtin: Add #include u_math.h to the header
The inline functions use M_PI so they should include a header to make sure it is defined. Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/compiler/nir/nir_builtin_builder.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_builtin_builder.h b/src/compiler/nir/nir_builtin_builder.h
index 519938f8bfe..22115ada241 100644
--- a/src/compiler/nir/nir_builtin_builder.h
+++ b/src/compiler/nir/nir_builtin_builder.h
@@ -24,6 +24,7 @@
#ifndef NIR_BUILTIN_BUILDER_H
#define NIR_BUILTIN_BUILDER_H
+#include "util/u_math.h"
#include "nir/nir_builder.h"
/*