nir/builtin: Add #include u_math.h to the header
authorNeil Roberts <nroberts@igalia.com>
Fri, 11 Oct 2019 13:57:29 +0000 (15:57 +0200)
committerNeil Roberts <nroberts@igalia.com>
Sat, 12 Oct 2019 07:43:18 +0000 (09:43 +0200)
The inline functions use M_PI so they should include a header to make
sure it is defined.

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/compiler/nir/nir_builtin_builder.h

index 519938f8bfeda5aeae1fece763420453416d32c0..22115ada2412aa0680f17fafb45da682f159b317 100644 (file)
@@ -24,6 +24,7 @@
 #ifndef NIR_BUILTIN_BUILDER_H
 #define NIR_BUILTIN_BUILDER_H
 
+#include "util/u_math.h"
 #include "nir/nir_builder.h"
 
 /*