nir: Fix the nir_builder include path for nir_builtin_builder
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 20 Feb 2020 21:27:36 +0000 (15:27 -0600)
committerMarge Bot <eric+marge@anholt.net>
Fri, 21 Feb 2020 18:48:03 +0000 (18:48 +0000)
Because it's in double-quotes, it will search the current folder before
any search paths.  Since nir_builder.h and nir_builtin_builder.h are in
the same folder, this guarantees a correct include.  However,
nir/nir_builder.h does not unless the includer's path is set up just
right.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3897>

src/compiler/nir/nir_builtin_builder.h

index 5610d4804526f13e39dd5ee0e8f60f78ad9d26c9..9aa24ef592c5ccbd77aa6db13d74b105b3f9ecae 100644 (file)
@@ -25,7 +25,7 @@
 #define NIR_BUILTIN_BUILDER_H
 
 #include "util/u_math.h"
-#include "nir/nir_builder.h"
+#include "nir_builder.h"
 
 #ifdef __cplusplus
 extern "C" {