Mesa (master): nir/builtin: Add #include u_math.h to the header
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Oct 12 08:29:39 UTC 2019
Module: Mesa
Branch: master
Commit: 9eaeedd54b8c2bc207360e9ef15d2d7675c972f4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9eaeedd54b8c2bc207360e9ef15d2d7675c972f4
Author: Neil Roberts <nroberts at igalia.com>
Date: Fri Oct 11 15:57:29 2019 +0200
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 <hoegsberg at google.com>
---
src/compiler/nir/nir_builtin_builder.h | 1 +
1 file changed, 1 insertion(+)
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"
/*
More information about the mesa-commit
mailing list