summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2016-01-18 11:35:29 +0200
committerEmil Velikov <[email protected]>2016-01-26 16:08:24 +0000
commit24f984f64ae58c274f79eaf9148aea37df67131c (patch)
treec24704b371a23a90349f0b979bd93a6a138c2284 /src
parent1a882fd2ee84ae28a06cf07902dc4645d8ad4a6d (diff)
nir: move glsl_types.{cpp,h} to compiler
Allows us to remove the SCons workaround :-) Signed-off-by: Emil Velikov <[email protected]> Acked-by: Matt Turner <[email protected]> Acked-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/compiler/Makefile.sources2
-rw-r--r--src/compiler/glsl_types.cpp (renamed from src/glsl/nir/glsl_types.cpp)2
-rw-r--r--src/compiler/glsl_types.h (renamed from src/glsl/nir/glsl_types.h)0
-rw-r--r--src/glsl/Makefile.sources2
-rw-r--r--src/glsl/SConscript7
-rw-r--r--src/glsl/ast_array_index.cpp2
-rw-r--r--src/glsl/ast_function.cpp2
-rw-r--r--src/glsl/ast_to_hir.cpp2
-rw-r--r--src/glsl/builtin_types.cpp2
-rw-r--r--src/glsl/glsl_parser.yy2
-rw-r--r--src/glsl/hir_field_selection.cpp2
-rw-r--r--src/glsl/ir.cpp2
-rw-r--r--src/glsl/ir.h2
-rw-r--r--src/glsl/ir_clone.cpp2
-rw-r--r--src/glsl/ir_constant_expression.cpp2
-rw-r--r--src/glsl/ir_function.cpp2
-rw-r--r--src/glsl/ir_print_visitor.cpp2
-rw-r--r--src/glsl/ir_reader.cpp2
-rw-r--r--src/glsl/ir_rvalue_visitor.cpp2
-rw-r--r--src/glsl/ir_set_program_inouts.cpp2
-rw-r--r--src/glsl/ir_validate.cpp2
-rw-r--r--src/glsl/ir_variable_refcount.cpp2
-rw-r--r--src/glsl/ir_variable_refcount.h2
-rw-r--r--src/glsl/loop_analysis.cpp2
-rw-r--r--src/glsl/loop_controls.cpp2
-rw-r--r--src/glsl/loop_unroll.cpp2
-rw-r--r--src/glsl/lower_const_arrays_to_uniforms.cpp2
-rw-r--r--src/glsl/lower_discard.cpp2
-rw-r--r--src/glsl/lower_discard_flow.cpp2
-rw-r--r--src/glsl/lower_if_to_cond_assign.cpp2
-rw-r--r--src/glsl/lower_instructions.cpp2
-rw-r--r--src/glsl/lower_jumps.cpp2
-rw-r--r--src/glsl/lower_mat_op_to_vec.cpp2
-rw-r--r--src/glsl/lower_offset_array.cpp2
-rw-r--r--src/glsl/lower_subroutine.cpp2
-rw-r--r--src/glsl/lower_variable_index_to_cond_assign.cpp2
-rw-r--r--src/glsl/lower_vec_index_to_cond_assign.cpp2
-rw-r--r--src/glsl/lower_vec_index_to_swizzle.cpp2
-rw-r--r--src/glsl/nir/nir_types.h4
-rw-r--r--src/glsl/opt_algebraic.cpp2
-rw-r--r--src/glsl/opt_array_splitting.cpp2
-rw-r--r--src/glsl/opt_conditional_discard.cpp2
-rw-r--r--src/glsl/opt_constant_folding.cpp2
-rw-r--r--src/glsl/opt_constant_propagation.cpp2
-rw-r--r--src/glsl/opt_constant_variable.cpp2
-rw-r--r--src/glsl/opt_copy_propagation.cpp2
-rw-r--r--src/glsl/opt_copy_propagation_elements.cpp2
-rw-r--r--src/glsl/opt_dead_builtin_varyings.cpp2
-rw-r--r--src/glsl/opt_dead_code.cpp2
-rw-r--r--src/glsl/opt_dead_code_local.cpp2
-rw-r--r--src/glsl/opt_dead_functions.cpp2
-rw-r--r--src/glsl/opt_function_inlining.cpp2
-rw-r--r--src/glsl/opt_minmax.cpp2
-rw-r--r--src/glsl/opt_noop_swizzle.cpp2
-rw-r--r--src/glsl/opt_structure_splitting.cpp2
-rw-r--r--src/glsl/opt_swizzle_swizzle.cpp2
-rw-r--r--src/glsl/opt_tree_grafting.cpp2
-rw-r--r--src/glsl/opt_vectorize.cpp2
-rw-r--r--src/mesa/SConscript1
-rw-r--r--src/mesa/drivers/dri/i965/brw_cubemap_normalize.cpp2
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp2
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp2
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp2
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_visitor.cpp2
-rw-r--r--src/mesa/drivers/dri/i965/brw_lower_unnormalized_offset.cpp2
-rw-r--r--src/mesa/main/ff_fragment_shader.cpp2
-rw-r--r--src/mesa/main/uniforms.c2
-rw-r--r--src/mesa/main/uniforms.h2
-rw-r--r--src/mesa/program/ir_to_mesa.cpp2
-rw-r--r--src/mesa/program/sampler.cpp2
70 files changed, 68 insertions, 76 deletions
diff --git a/src/compiler/Makefile.sources b/src/compiler/Makefile.sources
index 73e1771c8a7..38e75cfd8c6 100644
--- a/src/compiler/Makefile.sources
+++ b/src/compiler/Makefile.sources
@@ -1,4 +1,6 @@
LIBCOMPILER_FILES = \
builtin_type_macros.h \
+ glsl_types.cpp \
+ glsl_types.h \
shader_enums.c \
shader_enums.h
diff --git a/src/glsl/nir/glsl_types.cpp b/src/compiler/glsl_types.cpp
index 655d3b1fe48..7e60e7c1098 100644
--- a/src/glsl/nir/glsl_types.cpp
+++ b/src/compiler/glsl_types.cpp
@@ -23,7 +23,7 @@
#include <stdio.h>
#include "main/macros.h"
-#include "glsl_parser_extras.h"
+#include "glsl/glsl_parser_extras.h"
#include "glsl_types.h"
#include "util/hash_table.h"
diff --git a/src/glsl/nir/glsl_types.h b/src/compiler/glsl_types.h
index e63d7945c9f..e63d7945c9f 100644
--- a/src/glsl/nir/glsl_types.h
+++ b/src/compiler/glsl_types.h
diff --git a/src/glsl/Makefile.sources b/src/glsl/Makefile.sources
index 5a576bc3c7e..a3df4c4263d 100644
--- a/src/glsl/Makefile.sources
+++ b/src/glsl/Makefile.sources
@@ -18,8 +18,6 @@ NIR_GENERATED_FILES = \
nir/nir_opt_algebraic.c
NIR_FILES = \
- nir/glsl_types.cpp \
- nir/glsl_types.h \
nir/nir.c \
nir/nir.h \
nir/nir_array.h \
diff --git a/src/glsl/SConscript b/src/glsl/SConscript
index e89d4e0eb01..ef82a9d317a 100644
--- a/src/glsl/SConscript
+++ b/src/glsl/SConscript
@@ -16,7 +16,6 @@ env.Prepend(CPPPATH = [
'#src/gallium/include',
'#src/gallium/auxiliary',
'#src/glsl',
- '#src/glsl/nir',
'#src/glsl/glcpp',
])
@@ -61,12 +60,6 @@ source_lists = env.ParseSourceList('Makefile.sources')
for l in ('LIBGLCPP_FILES', 'LIBGLSL_FILES'):
glsl_sources += source_lists[l]
-# add nir/glsl_types.cpp manually, because SCons still doesn't know about NIR.
-# XXX: Remove this once we build NIR and NIR_FILES.
-glsl_sources += [
- 'nir/glsl_types.cpp',
-]
-
if env['msvc']:
env.Prepend(CPPPATH = ['#/src/getopt'])
env.PrependUnique(LIBS = [getopt])
diff --git a/src/glsl/ast_array_index.cpp b/src/glsl/ast_array_index.cpp
index ca7a9a10c36..f5baeb9ea32 100644
--- a/src/glsl/ast_array_index.cpp
+++ b/src/glsl/ast_array_index.cpp
@@ -22,7 +22,7 @@
*/
#include "ast.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "ir.h"
void
diff --git a/src/glsl/ast_function.cpp b/src/glsl/ast_function.cpp
index e32a588f091..0eb456a2b1f 100644
--- a/src/glsl/ast_function.cpp
+++ b/src/glsl/ast_function.cpp
@@ -23,7 +23,7 @@
#include "glsl_symbol_table.h"
#include "ast.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "ir.h"
#include "main/core.h" /* for MIN2 */
#include "main/shaderobj.h"
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
index cb57c16f089..dfd31966eb0 100644
--- a/src/glsl/ast_to_hir.cpp
+++ b/src/glsl/ast_to_hir.cpp
@@ -52,7 +52,7 @@
#include "glsl_symbol_table.h"
#include "glsl_parser_extras.h"
#include "ast.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "program/hash_table.h"
#include "main/shaderobj.h"
#include "ir.h"
diff --git a/src/glsl/builtin_types.cpp b/src/glsl/builtin_types.cpp
index 4402e2898b2..ee24bd5e411 100644
--- a/src/glsl/builtin_types.cpp
+++ b/src/glsl/builtin_types.cpp
@@ -34,7 +34,7 @@
* version and set of enabled extensions.
*/
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "glsl_parser_extras.h"
#include "util/macros.h"
diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy
index 2109fb2eedd..99bd0e61d0e 100644
--- a/src/glsl/glsl_parser.yy
+++ b/src/glsl/glsl_parser.yy
@@ -31,7 +31,7 @@
#include "ast.h"
#include "glsl_parser_extras.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "main/context.h"
#ifdef _MSC_VER
diff --git a/src/glsl/hir_field_selection.cpp b/src/glsl/hir_field_selection.cpp
index 92bb4139194..eab08ad8235 100644
--- a/src/glsl/hir_field_selection.cpp
+++ b/src/glsl/hir_field_selection.cpp
@@ -24,7 +24,7 @@
#include "ir.h"
#include "glsl_parser_extras.h"
#include "ast.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
ir_rvalue *
_mesa_ast_field_selection_to_hir(const ast_expression *expr,
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp
index b424edd8e96..de9d314bae4 100644
--- a/src/glsl/ir.cpp
+++ b/src/glsl/ir.cpp
@@ -23,7 +23,7 @@
#include <string.h>
#include "main/core.h" /* for MAX2 */
#include "ir.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
ir_rvalue::ir_rvalue(enum ir_node_type t)
: ir_instruction(t)
diff --git a/src/glsl/ir.h b/src/glsl/ir.h
index 5b845c6e856..bd7b5506343 100644
--- a/src/glsl/ir.h
+++ b/src/glsl/ir.h
@@ -30,7 +30,7 @@
#include <stdlib.h>
#include "util/ralloc.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "list.h"
#include "ir_visitor.h"
#include "ir_hierarchical_visitor.h"
diff --git a/src/glsl/ir_clone.cpp b/src/glsl/ir_clone.cpp
index bee60a241e4..0965b0d3719 100644
--- a/src/glsl/ir_clone.cpp
+++ b/src/glsl/ir_clone.cpp
@@ -24,7 +24,7 @@
#include <string.h>
#include "main/compiler.h"
#include "ir.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "program/hash_table.h"
ir_rvalue *
diff --git a/src/glsl/ir_constant_expression.cpp b/src/glsl/ir_constant_expression.cpp
index c99a8239cbb..fbbf7794da6 100644
--- a/src/glsl/ir_constant_expression.cpp
+++ b/src/glsl/ir_constant_expression.cpp
@@ -38,7 +38,7 @@
#include "util/rounding.h" /* for _mesa_roundeven */
#include "util/half_float.h"
#include "ir.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "program/hash_table.h"
static float
diff --git a/src/glsl/ir_function.cpp b/src/glsl/ir_function.cpp
index 93034bedb5a..0b4cb4bd30d 100644
--- a/src/glsl/ir_function.cpp
+++ b/src/glsl/ir_function.cpp
@@ -21,7 +21,7 @@
* DEALINGS IN THE SOFTWARE.
*/
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "ir.h"
#include "glsl_parser_extras.h"
#include "main/errors.h"
diff --git a/src/glsl/ir_print_visitor.cpp b/src/glsl/ir_print_visitor.cpp
index fd7bc2eea98..960b23fe0ed 100644
--- a/src/glsl/ir_print_visitor.cpp
+++ b/src/glsl/ir_print_visitor.cpp
@@ -22,7 +22,7 @@
*/
#include "ir_print_visitor.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "glsl_parser_extras.h"
#include "main/macros.h"
#include "util/hash_table.h"
diff --git a/src/glsl/ir_reader.cpp b/src/glsl/ir_reader.cpp
index 7c0af1b712f..15315aac522 100644
--- a/src/glsl/ir_reader.cpp
+++ b/src/glsl/ir_reader.cpp
@@ -23,7 +23,7 @@
#include "ir_reader.h"
#include "glsl_parser_extras.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "s_expression.h"
static const bool debug = false;
diff --git a/src/glsl/ir_rvalue_visitor.cpp b/src/glsl/ir_rvalue_visitor.cpp
index 6486838b8b8..6ab6cf02176 100644
--- a/src/glsl/ir_rvalue_visitor.cpp
+++ b/src/glsl/ir_rvalue_visitor.cpp
@@ -32,7 +32,7 @@
#include "ir.h"
#include "ir_visitor.h"
#include "ir_rvalue_visitor.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
ir_visitor_status
ir_rvalue_base_visitor::rvalue_visit(ir_expression *ir)
diff --git a/src/glsl/ir_set_program_inouts.cpp b/src/glsl/ir_set_program_inouts.cpp
index a2dea67c6a9..df06923b870 100644
--- a/src/glsl/ir_set_program_inouts.cpp
+++ b/src/glsl/ir_set_program_inouts.cpp
@@ -40,7 +40,7 @@
#include "main/core.h" /* for struct gl_program */
#include "ir.h"
#include "ir_visitor.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
namespace {
diff --git a/src/glsl/ir_validate.cpp b/src/glsl/ir_validate.cpp
index 94814799b9b..cad7069bf98 100644
--- a/src/glsl/ir_validate.cpp
+++ b/src/glsl/ir_validate.cpp
@@ -37,7 +37,7 @@
#include "ir_hierarchical_visitor.h"
#include "util/hash_table.h"
#include "util/set.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
namespace {
diff --git a/src/glsl/ir_variable_refcount.cpp b/src/glsl/ir_variable_refcount.cpp
index 790627bd1e3..8306be10b9c 100644
--- a/src/glsl/ir_variable_refcount.cpp
+++ b/src/glsl/ir_variable_refcount.cpp
@@ -32,7 +32,7 @@
#include "ir.h"
#include "ir_visitor.h"
#include "ir_variable_refcount.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "util/hash_table.h"
ir_variable_refcount_visitor::ir_variable_refcount_visitor()
diff --git a/src/glsl/ir_variable_refcount.h b/src/glsl/ir_variable_refcount.h
index 5c74c314781..08a11c01495 100644
--- a/src/glsl/ir_variable_refcount.h
+++ b/src/glsl/ir_variable_refcount.h
@@ -31,7 +31,7 @@
#include "ir.h"
#include "ir_visitor.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
struct assignment_entry {
exec_node link;
diff --git a/src/glsl/loop_analysis.cpp b/src/glsl/loop_analysis.cpp
index 21d46ebce53..096a80abb34 100644
--- a/src/glsl/loop_analysis.cpp
+++ b/src/glsl/loop_analysis.cpp
@@ -21,7 +21,7 @@
* DEALINGS IN THE SOFTWARE.
*/
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "loop_analysis.h"
#include "ir_hierarchical_visitor.h"
diff --git a/src/glsl/loop_controls.cpp b/src/glsl/loop_controls.cpp
index 51804bb5fe8..c717605ec74 100644
--- a/src/glsl/loop_controls.cpp
+++ b/src/glsl/loop_controls.cpp
@@ -23,7 +23,7 @@
#include <limits.h>
#include "main/compiler.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "loop_analysis.h"
#include "ir_hierarchical_visitor.h"
diff --git a/src/glsl/loop_unroll.cpp b/src/glsl/loop_unroll.cpp
index b9ea3507782..aea2743cdb1 100644
--- a/src/glsl/loop_unroll.cpp
+++ b/src/glsl/loop_unroll.cpp
@@ -21,7 +21,7 @@
* DEALINGS IN THE SOFTWARE.
*/
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "loop_analysis.h"
#include "ir_hierarchical_visitor.h"
diff --git a/src/glsl/lower_const_arrays_to_uniforms.cpp b/src/glsl/lower_const_arrays_to_uniforms.cpp
index 44967dcdb53..2d024d4b78c 100644
--- a/src/glsl/lower_const_arrays_to_uniforms.cpp
+++ b/src/glsl/lower_const_arrays_to_uniforms.cpp
@@ -40,7 +40,7 @@
#include "ir.h"
#include "ir_visitor.h"
#include "ir_rvalue_visitor.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
namespace {
class lower_const_array_visitor : public ir_rvalue_visitor {
diff --git a/src/glsl/lower_discard.cpp b/src/glsl/lower_discard.cpp
index b44d2a6d28d..b62eb20dcb4 100644
--- a/src/glsl/lower_discard.cpp
+++ b/src/glsl/lower_discard.cpp
@@ -105,7 +105,7 @@
* Unconditional discards are treated as having a condition of "true".
*/
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "ir.h"
namespace {
diff --git a/src/glsl/lower_discard_flow.cpp b/src/glsl/lower_discard_flow.cpp
index ee45bf22155..9d0a56b230d 100644
--- a/src/glsl/lower_discard_flow.cpp
+++ b/src/glsl/lower_discard_flow.cpp
@@ -44,7 +44,7 @@
* interpretation.
*/
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "ir.h"
#include "program/hash_table.h"
diff --git a/src/glsl/lower_if_to_cond_assign.cpp b/src/glsl/lower_if_to_cond_assign.cpp
index 3232ce92aab..6a7034794b2 100644
--- a/src/glsl/lower_if_to_cond_assign.cpp
+++ b/src/glsl/lower_if_to_cond_assign.cpp
@@ -45,7 +45,7 @@
* to attempt to flatten any if-statements appearing at depth > N.
*/
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "ir.h"
#include "program/hash_table.h"
diff --git a/src/glsl/lower_instructions.cpp b/src/glsl/lower_instructions.cpp
index 7c2d4d7ce51..1875149b7a6 100644
--- a/src/glsl/lower_instructions.cpp
+++ b/src/glsl/lower_instructions.cpp
@@ -117,7 +117,7 @@
#include "c99_math.h"
#include "program/prog_instruction.h" /* for swizzle */
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "ir.h"
#include "ir_builder.h"
#include "ir_optimization.h"
diff --git a/src/glsl/lower_jumps.cpp b/src/glsl/lower_jumps.cpp
index ec7a0c537ff..3cfa2e00ae8 100644
--- a/src/glsl/lower_jumps.cpp
+++ b/src/glsl/lower_jumps.cpp
@@ -56,7 +56,7 @@
* prevents further optimization, and thus is not currently performed.
*/
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include <string.h>
#include "ir.h"
diff --git a/src/glsl/lower_mat_op_to_vec.cpp b/src/glsl/lower_mat_op_to_vec.cpp
index e96cda216dd..266fdc6a250 100644
--- a/src/glsl/lower_mat_op_to_vec.cpp
+++ b/src/glsl/lower_mat_op_to_vec.cpp
@@ -33,7 +33,7 @@
#include "ir.h"
#include "ir_expression_flattening.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
namespace {
diff --git a/src/glsl/lower_offset_array.cpp b/src/glsl/lower_offset_array.cpp
index c30f8014342..96486c3a711 100644
--- a/src/glsl/lower_offset_array.cpp
+++ b/src/glsl/lower_offset_array.cpp
@@ -31,7 +31,7 @@
* \author Chris Forbes <[email protected]>
*/
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "ir.h"
#include "ir_builder.h"
#include "ir_optimization.h"
diff --git a/src/glsl/lower_subroutine.cpp b/src/glsl/lower_subroutine.cpp
index ac8ade13d99..e80c1be768a 100644
--- a/src/glsl/lower_subroutine.cpp
+++ b/src/glsl/lower_subroutine.cpp
@@ -27,7 +27,7 @@
* lowers subroutines to an if ladder.
*/
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "glsl_parser_extras.h"
#include "ir.h"
#include "ir_builder.h"
diff --git a/src/glsl/lower_variable_index_to_cond_assign.cpp b/src/glsl/lower_variable_index_to_cond_assign.cpp
index a1ba9345e32..278d5450bfb 100644
--- a/src/glsl/lower_variable_index_to_cond_assign.cpp
+++ b/src/glsl/lower_variable_index_to_cond_assign.cpp
@@ -49,7 +49,7 @@
#include "ir.h"
#include "ir_rvalue_visitor.h"
#include "ir_optimization.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "main/macros.h"
/**
diff --git a/src/glsl/lower_vec_index_to_cond_assign.cpp b/src/glsl/lower_vec_index_to_cond_assign.cpp
index b6238825f8a..784db085924 100644
--- a/src/glsl/lower_vec_index_to_cond_assign.cpp
+++ b/src/glsl/lower_vec_index_to_cond_assign.cpp
@@ -39,7 +39,7 @@
#include "ir.h"
#include "ir_visitor.h"
#include "ir_optimization.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
namespace {
diff --git a/src/glsl/lower_vec_index_to_swizzle.cpp b/src/glsl/lower_vec_index_to_swizzle.cpp
index 4d4d2f17ef6..8b18e95509c 100644
--- a/src/glsl/lower_vec_index_to_swizzle.cpp
+++ b/src/glsl/lower_vec_index_to_swizzle.cpp
@@ -32,7 +32,7 @@
#include "ir.h"
#include "ir_visitor.h"
#include "ir_optimization.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "main/macros.h"
/**
diff --git a/src/glsl/nir/nir_types.h b/src/glsl/nir/nir_types.h
index 64a75f607d5..197978804cc 100644
--- a/src/glsl/nir/nir_types.h
+++ b/src/glsl/nir/nir_types.h
@@ -29,9 +29,9 @@
#include <stdio.h>
-/* C wrapper around glsl_types.h */
+/* C wrapper around compiler/glsl_types.h */
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#ifdef __cplusplus
extern "C" {
diff --git a/src/glsl/opt_algebraic.cpp b/src/glsl/opt_algebraic.cpp
index c4b87151199..1e58062cb0d 100644
--- a/src/glsl/opt_algebraic.cpp
+++ b/src/glsl/opt_algebraic.cpp
@@ -33,7 +33,7 @@
#include "ir_rvalue_visitor.h"
#include "ir_optimization.h"
#include "ir_builder.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
using namespace ir_builder;
diff --git a/src/glsl/opt_array_splitting.cpp b/src/glsl/opt_array_splitting.cpp
index 89ce76bed2b..cceec6b6431 100644
--- a/src/glsl/opt_array_splitting.cpp
+++ b/src/glsl/opt_array_splitting.cpp
@@ -36,7 +36,7 @@
#include "ir.h"
#include "ir_visitor.h"
#include "ir_rvalue_visitor.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
static bool debug = false;
diff --git a/src/glsl/opt_conditional_discard.cpp b/src/glsl/opt_conditional_discard.cpp
index 8a3ad24873e..1ca8803f643 100644
--- a/src/glsl/opt_conditional_discard.cpp
+++ b/src/glsl/opt_conditional_discard.cpp
@@ -33,7 +33,7 @@
* (discard <condition>)
*/
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "ir.h"
namespace {
diff --git a/src/glsl/opt_constant_folding.cpp b/src/glsl/opt_constant_folding.cpp
index 4aae3f0ddf2..150a17b2af6 100644
--- a/src/glsl/opt_constant_folding.cpp
+++ b/src/glsl/opt_constant_folding.cpp
@@ -30,7 +30,7 @@
#include "ir_visitor.h"
#include "ir_rvalue_visitor.h"
#include "ir_optimization.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
namespace {
diff --git a/src/glsl/opt_constant_propagation.cpp b/src/glsl/opt_constant_propagation.cpp
index fb24a4fad04..416ba16a3c5 100644
--- a/src/glsl/opt_constant_propagation.cpp
+++ b/src/glsl/opt_constant_propagation.cpp
@@ -39,7 +39,7 @@
#include "ir_rvalue_visitor.h"
#include "ir_basic_block.h"
#include "ir_optimization.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "util/hash_table.h"
namespace {
diff --git a/src/glsl/opt_constant_variable.cpp b/src/glsl/opt_constant_variable.cpp
index 56f6a819e1e..3ddb12904c7 100644
--- a/src/glsl/opt_constant_variable.cpp
+++ b/src/glsl/opt_constant_variable.cpp
@@ -35,7 +35,7 @@
#include "ir.h"
#include "ir_visitor.h"
#include "ir_optimization.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "util/hash_table.h"
namespace {
diff --git a/src/glsl/opt_copy_propagation.cpp b/src/glsl/opt_copy_propagation.cpp
index 5d4cb4fe613..310708db868 100644
--- a/src/glsl/opt_copy_propagation.cpp
+++ b/src/glsl/opt_copy_propagation.cpp
@@ -36,7 +36,7 @@
#include "ir_visitor.h"
#include "ir_basic_block.h"
#include "ir_optimization.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
namespace {
diff --git a/src/glsl/opt_copy_propagation_elements.cpp b/src/glsl/opt_copy_propagation_elements.cpp
index 353a5c66841..a6791801943 100644
--- a/src/glsl/opt_copy_propagation_elements.cpp
+++ b/src/glsl/opt_copy_propagation_elements.cpp
@@ -45,7 +45,7 @@
#include "ir_rvalue_visitor.h"
#include "ir_basic_block.h"
#include "ir_optimization.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
static bool debug = false;
diff --git a/src/glsl/opt_dead_builtin_varyings.cpp b/src/glsl/opt_dead_builtin_varyings.cpp
index 53871130e12..37bcbccf0c5 100644
--- a/src/glsl/opt_dead_builtin_varyings.cpp
+++ b/src/glsl/opt_dead_builtin_varyings.cpp
@@ -51,7 +51,7 @@
#include "ir_rvalue_visitor.h"
#include "ir_optimization.h"
#include "ir_print_visitor.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "link_varyings.h"
namespace {
diff --git a/src/glsl/opt_dead_code.cpp b/src/glsl/opt_dead_code.cpp
index c2ce0b94ece..dbdb7de8bb8 100644
--- a/src/glsl/opt_dead_code.cpp
+++ b/src/glsl/opt_dead_code.cpp
@@ -30,7 +30,7 @@
#include "ir.h"
#include "ir_visitor.h"
#include "ir_variable_refcount.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "util/hash_table.h"
static bool debug = false;
diff --git a/src/glsl/opt_dead_code_local.cpp b/src/glsl/opt_dead_code_local.cpp
index ee9f22c0373..d38fd2bf638 100644
--- a/src/glsl/opt_dead_code_local.cpp
+++ b/src/glsl/opt_dead_code_local.cpp
@@ -36,7 +36,7 @@
#include "ir.h"
#include "ir_basic_block.h"
#include "ir_optimization.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
static bool debug = false;
diff --git a/src/glsl/opt_dead_functions.cpp b/src/glsl/opt_dead_functions.cpp
index 5dff165215a..2e90b650fa8 100644
--- a/src/glsl/opt_dead_functions.cpp
+++ b/src/glsl/opt_dead_functions.cpp
@@ -30,7 +30,7 @@
#include "ir.h"
#include "ir_visitor.h"
#include "ir_expression_flattening.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
namespace {
diff --git a/src/glsl/opt_function_inlining.cpp b/src/glsl/opt_function_inlining.cpp
index 84a9e4fa093..19f5fae0a17 100644
--- a/src/glsl/opt_function_inlining.cpp
+++ b/src/glsl/opt_function_inlining.cpp
@@ -31,7 +31,7 @@
#include "ir_visitor.h"
#include "ir_function_inlining.h"
#include "ir_expression_flattening.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "program/hash_table.h"
static void
diff --git a/src/glsl/opt_minmax.cpp b/src/glsl/opt_minmax.cpp
index 23d0b109d8b..29482ee69de 100644
--- a/src/glsl/opt_minmax.cpp
+++ b/src/glsl/opt_minmax.cpp
@@ -36,7 +36,7 @@
#include "ir_optimization.h"
#include "ir_builder.h"
#include "program/prog_instruction.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "main/macros.h"
using namespace ir_builder;
diff --git a/src/glsl/opt_noop_swizzle.cpp b/src/glsl/opt_noop_swizzle.cpp
index 586ad5e6107..41890ab2b15 100644
--- a/src/glsl/opt_noop_swizzle.cpp
+++ b/src/glsl/opt_noop_swizzle.cpp
@@ -32,7 +32,7 @@
#include "ir.h"
#include "ir_visitor.h"
#include "ir_rvalue_visitor.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
namespace {
diff --git a/src/glsl/opt_structure_splitting.cpp b/src/glsl/opt_structure_splitting.cpp
index abf4310feb3..0d18a2f7584 100644
--- a/src/glsl/opt_structure_splitting.cpp
+++ b/src/glsl/opt_structure_splitting.cpp
@@ -35,7 +35,7 @@
#include "ir.h"
#include "ir_visitor.h"
#include "ir_rvalue_visitor.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
namespace {
diff --git a/src/glsl/opt_swizzle_swizzle.cpp b/src/glsl/opt_swizzle_swizzle.cpp
index 7564c6b3b10..7285474b089 100644
--- a/src/glsl/opt_swizzle_swizzle.cpp
+++ b/src/glsl/opt_swizzle_swizzle.cpp
@@ -30,7 +30,7 @@
#include "ir.h"
#include "ir_visitor.h"
#include "ir_optimization.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
namespace {
diff --git a/src/glsl/opt_tree_grafting.cpp b/src/glsl/opt_tree_grafting.cpp
index cd58213c019..83effb7424c 100644
--- a/src/glsl/opt_tree_grafting.cpp
+++ b/src/glsl/opt_tree_grafting.cpp
@@ -52,7 +52,7 @@
#include "ir_variable_refcount.h"
#include "ir_basic_block.h"
#include "ir_optimization.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
namespace {
diff --git a/src/glsl/opt_vectorize.cpp b/src/glsl/opt_vectorize.cpp
index 2f71a83583b..88318cd8a6e 100644
--- a/src/glsl/opt_vectorize.cpp
+++ b/src/glsl/opt_vectorize.cpp
@@ -55,7 +55,7 @@
#include "ir.h"
#include "ir_visitor.h"
#include "ir_optimization.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "program/prog_instruction.h"
namespace {
diff --git a/src/mesa/SConscript b/src/mesa/SConscript
index c986326d2bf..5b80a216fef 100644
--- a/src/mesa/SConscript
+++ b/src/mesa/SConscript
@@ -16,7 +16,6 @@ env.Append(CPPPATH = [
'#/src',
'#/src/mapi',
'#/src/glsl',
- '#/src/glsl/nir',
'#/src/mesa',
'#/src/gallium/include',
'#/src/gallium/auxiliary',
diff --git a/src/mesa/drivers/dri/i965/brw_cubemap_normalize.cpp b/src/mesa/drivers/dri/i965/brw_cubemap_normalize.cpp
index 33d2048e657..3d6aa74d830 100644
--- a/src/mesa/drivers/dri/i965/brw_cubemap_normalize.cpp
+++ b/src/mesa/drivers/dri/i965/brw_cubemap_normalize.cpp
@@ -30,7 +30,7 @@
* \author Eric Anholt <[email protected]>
*/
-#include "glsl/nir/glsl_types.h"
+#include "compiler/glsl_types.h"
#include "glsl/ir.h"
#include "program/prog_instruction.h" /* For WRITEMASK_* */
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index cbeab6f616c..41a3f81b9d8 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -38,7 +38,7 @@
#include "brw_cfg.h"
#include "brw_program.h"
#include "brw_dead_control_flow.h"
-#include "glsl/nir/glsl_types.h"
+#include "compiler/glsl_types.h"
using namespace brw;
diff --git a/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp b/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp
index 21f0b703d00..22877797522 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp
@@ -43,7 +43,7 @@
#include "glsl/ir.h"
#include "glsl/ir_expression_flattening.h"
-#include "glsl/nir/glsl_types.h"
+#include "compiler/glsl_types.h"
class ir_channel_expressions_visitor : public ir_hierarchical_visitor {
public:
diff --git a/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp b/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp
index 0c8ad76aa50..0970959bbd6 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp
@@ -40,7 +40,7 @@
#include "main/imports.h"
#include "glsl/ir.h"
#include "glsl/ir_rvalue_visitor.h"
-#include "glsl/nir/glsl_types.h"
+#include "compiler/glsl_types.h"
#include "util/hash_table.h"
static bool debug = false;
diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
index 25240ad65fa..aad512f4be6 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
@@ -28,7 +28,7 @@
* in the GLSL IR or in the native code.
*/
#include "brw_fs.h"
-#include "glsl/nir/glsl_types.h"
+#include "compiler/glsl_types.h"
using namespace brw;
diff --git a/src/mesa/drivers/dri/i965/brw_lower_unnormalized_offset.cpp b/src/mesa/drivers/dri/i965/brw_lower_unnormalized_offset.cpp
index 4219d471def..eafbdf68ea0 100644
--- a/src/mesa/drivers/dri/i965/brw_lower_unnormalized_offset.cpp
+++ b/src/mesa/drivers/dri/i965/brw_lower_unnormalized_offset.cpp
@@ -31,7 +31,7 @@
* \author Chris Forbes <[email protected]>
*/
-#include "glsl/nir/glsl_types.h"
+#include "compiler/glsl_types.h"
#include "glsl/ir.h"
#include "glsl/ir_builder.h"
diff --git a/src/mesa/main/ff_fragment_shader.cpp b/src/mesa/main/ff_fragment_shader.cpp
index e63d0f1ec55..b2b1ee9ba44 100644
--- a/src/mesa/main/ff_fragment_shader.cpp
+++ b/src/mesa/main/ff_fragment_shader.cpp
@@ -40,7 +40,7 @@
#include "glsl/ir_optimization.h"
#include "glsl/glsl_parser_extras.h"
#include "glsl/glsl_symbol_table.h"
-#include "glsl/nir/glsl_types.h"
+#include "compiler/glsl_types.h"
#include "program/ir_to_mesa.h"
#include "program/program.h"
#include "program/programopt.h"
diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c
index 47f80ce2001..47010badbc6 100644
--- a/src/mesa/main/uniforms.c
+++ b/src/mesa/main/uniforms.c
@@ -44,7 +44,7 @@
#include "main/uniforms.h"
#include "main/enums.h"
#include "ir_uniform.h"
-#include "glsl_types.h"
+#include "compiler/glsl_types.h"
#include "program/program.h"
/**
diff --git a/src/mesa/main/uniforms.h b/src/mesa/main/uniforms.h
index 2f88b65043d..baf49a752b1 100644
--- a/src/mesa/main/uniforms.h
+++ b/src/mesa/main/uniforms.h
@@ -27,7 +27,7 @@
#define UNIFORMS_H
#include "main/glheader.h"
-#include "glsl/nir/glsl_types.h"
+#include "compiler/glsl_types.h"
#include "glsl/ir_uniform.h"
#include "program/prog_parameter.h"
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index 9cde28dfc0a..70c477ec4fd 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -42,7 +42,7 @@
#include "glsl/ir_optimization.h"
#include "glsl/ir_uniform.h"
#include "glsl/glsl_parser_extras.h"
-#include "glsl/nir/glsl_types.h"
+#include "compiler/glsl_types.h"
#include "glsl/linker.h"
#include "glsl/program.h"
#include "program/hash_table.h"
diff --git a/src/mesa/program/sampler.cpp b/src/mesa/program/sampler.cpp
index 84e2504baba..9137d1858e9 100644
--- a/src/mesa/program/sampler.cpp
+++ b/src/mesa/program/sampler.cpp
@@ -24,7 +24,7 @@
*/
#include "main/mtypes.h"
-#include "glsl/nir/glsl_types.h"
+#include "compiler/glsl_types.h"
#include "glsl/ir.h"
#include "glsl/ir_uniform.h"
#include "glsl/ir_visitor.h"