nir: move to compiler/
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 18 Jan 2016 10:54:03 +0000 (12:54 +0200)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 26 Jan 2016 16:08:30 +0000 (16:08 +0000)
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Acked-by: Matt Turner <mattst88@gmail.com>
Acked-by: Jose Fonseca <jfonseca@vmware.com>
105 files changed:
src/compiler/Android.gen.mk [new file with mode: 0644]
src/compiler/Android.mk
src/compiler/Makefile.am
src/compiler/Makefile.sources
src/compiler/nir/.gitignore [moved from src/glsl/nir/.gitignore with 100% similarity]
src/compiler/nir/README [moved from src/glsl/nir/README with 100% similarity]
src/compiler/nir/glsl_to_nir.cpp [moved from src/glsl/nir/glsl_to_nir.cpp with 99% similarity]
src/compiler/nir/glsl_to_nir.h [moved from src/glsl/nir/glsl_to_nir.h with 97% similarity]
src/compiler/nir/nir.c [moved from src/glsl/nir/nir.c with 100% similarity]
src/compiler/nir/nir.h [moved from src/glsl/nir/nir.h with 99% similarity]
src/compiler/nir/nir_algebraic.py [moved from src/glsl/nir/nir_algebraic.py with 100% similarity]
src/compiler/nir/nir_array.h [moved from src/glsl/nir/nir_array.h with 100% similarity]
src/compiler/nir/nir_builder.h [moved from src/glsl/nir/nir_builder.h with 100% similarity]
src/compiler/nir/nir_builder_opcodes_h.py [moved from src/glsl/nir/nir_builder_opcodes_h.py with 100% similarity]
src/compiler/nir/nir_clone.c [moved from src/glsl/nir/nir_clone.c with 100% similarity]
src/compiler/nir/nir_constant_expressions.h [moved from src/glsl/nir/nir_constant_expressions.h with 100% similarity]
src/compiler/nir/nir_constant_expressions.py [moved from src/glsl/nir/nir_constant_expressions.py with 100% similarity]
src/compiler/nir/nir_control_flow.c [moved from src/glsl/nir/nir_control_flow.c with 100% similarity]
src/compiler/nir/nir_control_flow.h [moved from src/glsl/nir/nir_control_flow.h with 100% similarity]
src/compiler/nir/nir_control_flow_private.h [moved from src/glsl/nir/nir_control_flow_private.h with 100% similarity]
src/compiler/nir/nir_dominance.c [moved from src/glsl/nir/nir_dominance.c with 100% similarity]
src/compiler/nir/nir_from_ssa.c [moved from src/glsl/nir/nir_from_ssa.c with 100% similarity]
src/compiler/nir/nir_gs_count_vertices.c [moved from src/glsl/nir/nir_gs_count_vertices.c with 100% similarity]
src/compiler/nir/nir_instr_set.c [moved from src/glsl/nir/nir_instr_set.c with 100% similarity]
src/compiler/nir/nir_instr_set.h [moved from src/glsl/nir/nir_instr_set.h with 100% similarity]
src/compiler/nir/nir_intrinsics.c [moved from src/glsl/nir/nir_intrinsics.c with 100% similarity]
src/compiler/nir/nir_intrinsics.h [moved from src/glsl/nir/nir_intrinsics.h with 100% similarity]
src/compiler/nir/nir_liveness.c [moved from src/glsl/nir/nir_liveness.c with 100% similarity]
src/compiler/nir/nir_lower_alu_to_scalar.c [moved from src/glsl/nir/nir_lower_alu_to_scalar.c with 100% similarity]
src/compiler/nir/nir_lower_atomics.c [moved from src/glsl/nir/nir_lower_atomics.c with 99% similarity]
src/compiler/nir/nir_lower_clip.c [moved from src/glsl/nir/nir_lower_clip.c with 100% similarity]
src/compiler/nir/nir_lower_global_vars_to_local.c [moved from src/glsl/nir/nir_lower_global_vars_to_local.c with 100% similarity]
src/compiler/nir/nir_lower_gs_intrinsics.c [moved from src/glsl/nir/nir_lower_gs_intrinsics.c with 100% similarity]
src/compiler/nir/nir_lower_idiv.c [moved from src/glsl/nir/nir_lower_idiv.c with 100% similarity]
src/compiler/nir/nir_lower_io.c [moved from src/glsl/nir/nir_lower_io.c with 100% similarity]
src/compiler/nir/nir_lower_load_const_to_scalar.c [moved from src/glsl/nir/nir_lower_load_const_to_scalar.c with 100% similarity]
src/compiler/nir/nir_lower_locals_to_regs.c [moved from src/glsl/nir/nir_lower_locals_to_regs.c with 100% similarity]
src/compiler/nir/nir_lower_outputs_to_temporaries.c [moved from src/glsl/nir/nir_lower_outputs_to_temporaries.c with 100% similarity]
src/compiler/nir/nir_lower_phis_to_scalar.c [moved from src/glsl/nir/nir_lower_phis_to_scalar.c with 100% similarity]
src/compiler/nir/nir_lower_samplers.c [moved from src/glsl/nir/nir_lower_samplers.c with 99% similarity]
src/compiler/nir/nir_lower_system_values.c [moved from src/glsl/nir/nir_lower_system_values.c with 100% similarity]
src/compiler/nir/nir_lower_tex.c [moved from src/glsl/nir/nir_lower_tex.c with 100% similarity]
src/compiler/nir/nir_lower_to_source_mods.c [moved from src/glsl/nir/nir_lower_to_source_mods.c with 100% similarity]
src/compiler/nir/nir_lower_two_sided_color.c [moved from src/glsl/nir/nir_lower_two_sided_color.c with 100% similarity]
src/compiler/nir/nir_lower_var_copies.c [moved from src/glsl/nir/nir_lower_var_copies.c with 100% similarity]
src/compiler/nir/nir_lower_vars_to_ssa.c [moved from src/glsl/nir/nir_lower_vars_to_ssa.c with 100% similarity]
src/compiler/nir/nir_lower_vec_to_movs.c [moved from src/glsl/nir/nir_lower_vec_to_movs.c with 100% similarity]
src/compiler/nir/nir_metadata.c [moved from src/glsl/nir/nir_metadata.c with 100% similarity]
src/compiler/nir/nir_move_vec_src_uses_to_dest.c [moved from src/glsl/nir/nir_move_vec_src_uses_to_dest.c with 100% similarity]
src/compiler/nir/nir_normalize_cubemap_coords.c [moved from src/glsl/nir/nir_normalize_cubemap_coords.c with 100% similarity]
src/compiler/nir/nir_opcodes.py [moved from src/glsl/nir/nir_opcodes.py with 100% similarity]
src/compiler/nir/nir_opcodes_c.py [moved from src/glsl/nir/nir_opcodes_c.py with 100% similarity]
src/compiler/nir/nir_opcodes_h.py [moved from src/glsl/nir/nir_opcodes_h.py with 100% similarity]
src/compiler/nir/nir_opt_algebraic.py [moved from src/glsl/nir/nir_opt_algebraic.py with 100% similarity]
src/compiler/nir/nir_opt_constant_folding.c [moved from src/glsl/nir/nir_opt_constant_folding.c with 100% similarity]
src/compiler/nir/nir_opt_copy_propagate.c [moved from src/glsl/nir/nir_opt_copy_propagate.c with 100% similarity]
src/compiler/nir/nir_opt_cse.c [moved from src/glsl/nir/nir_opt_cse.c with 100% similarity]
src/compiler/nir/nir_opt_dce.c [moved from src/glsl/nir/nir_opt_dce.c with 100% similarity]
src/compiler/nir/nir_opt_dead_cf.c [moved from src/glsl/nir/nir_opt_dead_cf.c with 100% similarity]
src/compiler/nir/nir_opt_gcm.c [moved from src/glsl/nir/nir_opt_gcm.c with 100% similarity]
src/compiler/nir/nir_opt_global_to_local.c [moved from src/glsl/nir/nir_opt_global_to_local.c with 100% similarity]
src/compiler/nir/nir_opt_peephole_select.c [moved from src/glsl/nir/nir_opt_peephole_select.c with 100% similarity]
src/compiler/nir/nir_opt_remove_phis.c [moved from src/glsl/nir/nir_opt_remove_phis.c with 100% similarity]
src/compiler/nir/nir_opt_undef.c [moved from src/glsl/nir/nir_opt_undef.c with 100% similarity]
src/compiler/nir/nir_print.c [moved from src/glsl/nir/nir_print.c with 100% similarity]
src/compiler/nir/nir_remove_dead_variables.c [moved from src/glsl/nir/nir_remove_dead_variables.c with 100% similarity]
src/compiler/nir/nir_search.c [moved from src/glsl/nir/nir_search.c with 100% similarity]
src/compiler/nir/nir_search.h [moved from src/glsl/nir/nir_search.h with 100% similarity]
src/compiler/nir/nir_split_var_copies.c [moved from src/glsl/nir/nir_split_var_copies.c with 100% similarity]
src/compiler/nir/nir_sweep.c [moved from src/glsl/nir/nir_sweep.c with 100% similarity]
src/compiler/nir/nir_to_ssa.c [moved from src/glsl/nir/nir_to_ssa.c with 100% similarity]
src/compiler/nir/nir_validate.c [moved from src/glsl/nir/nir_validate.c with 100% similarity]
src/compiler/nir/nir_vla.h [moved from src/glsl/nir/nir_vla.h with 100% similarity]
src/compiler/nir/nir_worklist.c [moved from src/glsl/nir/nir_worklist.c with 100% similarity]
src/compiler/nir/nir_worklist.h [moved from src/glsl/nir/nir_worklist.h with 100% similarity]
src/compiler/nir/tests/control_flow_tests.cpp [moved from src/glsl/nir/tests/control_flow_tests.cpp with 100% similarity]
src/gallium/auxiliary/Makefile.am
src/gallium/auxiliary/nir/tgsi_to_nir.c
src/gallium/auxiliary/nir/tgsi_to_nir.h
src/gallium/drivers/freedreno/Makefile.am
src/gallium/drivers/freedreno/ir3/ir3_nir.h
src/gallium/drivers/freedreno/ir3/ir3_nir_lower_if_else.c
src/gallium/drivers/vc4/Makefile.am
src/gallium/drivers/vc4/vc4_nir_lower_blend.c
src/gallium/drivers/vc4/vc4_nir_lower_io.c
src/gallium/drivers/vc4/vc4_nir_lower_txf_ms.c
src/gallium/drivers/vc4/vc4_program.c
src/gallium/drivers/vc4/vc4_qir.h
src/gallium/targets/pipe-loader/Makefile.am
src/gallium/targets/xa/Makefile.am
src/glsl/Android.gen.mk
src/glsl/Makefile.am
src/mesa/Android.libmesa_dricore.mk
src/mesa/Android.libmesa_glsl_utils.mk
src/mesa/Android.libmesa_st_mesa.mk
src/mesa/Makefile.sources
src/mesa/drivers/dri/i965/Makefile.am
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_nir.c
src/mesa/drivers/dri/i965/brw_nir.h
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/intel_asm_annotation.c
src/mesa/drivers/dri/i965/intel_screen.c
src/mesa/program/Android.mk
src/mesa/program/prog_to_nir.c

diff --git a/src/compiler/Android.gen.mk b/src/compiler/Android.gen.mk
new file mode 100644 (file)
index 0000000..fcd5f94
--- /dev/null
@@ -0,0 +1,91 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# Copyright (C) 2010-2011 LunarG Inc.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included
+# in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+
+# included by glsl Android.mk for source generation
+
+ifeq ($(LOCAL_MODULE_CLASS),)
+LOCAL_MODULE_CLASS := STATIC_LIBRARIES
+endif
+
+intermediates := $(call local-generated-sources-dir)
+
+LOCAL_SRC_FILES := $(LOCAL_SRC_FILES)
+
+LOCAL_C_INCLUDES += \
+       $(intermediates)/nir \
+       $(MESA_TOP)/src/compiler/nir
+
+LOCAL_EXPORT_C_INCLUDE_DIRS += \
+       $(intermediates)/nir \
+       $(MESA_TOP)/src/compiler/nir
+
+LOCAL_GENERATED_SOURCES += $(addprefix $(intermediates)/, \
+       $(NIR_GENERATED_FILES))
+
+
+nir_builder_opcodes_gen := $(LOCAL_PATH)/nir/nir_builder_opcodes_h.py
+nir_builder_opcodes_deps := \
+       $(LOCAL_PATH)/nir/nir_opcodes.py \
+       $(LOCAL_PATH)/nir/nir_builder_opcodes_h.py
+
+$(intermediates)/nir/nir_builder_opcodes.h: $(nir_builder_opcodes_deps)
+       @mkdir -p $(dir $@)
+       $(hide) $(MESA_PYTHON2) $(nir_builder_opcodes_gen) $< > $@
+
+nir_constant_expressions_gen := $(LOCAL_PATH)/nir/nir_constant_expressions.py
+nir_constant_expressions_deps := \
+       $(LOCAL_PATH)/nir/nir_opcodes.py \
+       $(LOCAL_PATH)/nir/nir_constant_expressions.py
+
+$(intermediates)/nir/nir_constant_expressions.c: $(nir_constant_expressions_deps)
+       @mkdir -p $(dir $@)
+       $(hide) $(MESA_PYTHON2) $(nir_constant_expressions_gen) $< > $@
+
+nir_opcodes_h_gen := $(LOCAL_PATH)/nir/nir_opcodes_h.py
+nir_opcodes_h_deps := \
+       $(LOCAL_PATH)/nir/nir_opcodes.py \
+       $(LOCAL_PATH)/nir/nir_opcodes_h.py
+
+$(intermediates)/nir/nir_opcodes.h: $(nir_opcodes_h_deps)
+       @mkdir -p $(dir $@)
+       $(hide) $(MESA_PYTHON2) $(nir_opcodes_h_gen) $< > $@
+
+$(LOCAL_PATH)/nir/nir.h: $(intermediates)/nir/nir_opcodes.h
+
+nir_opcodes_c_gen := $(LOCAL_PATH)/nir/nir_opcodes_c.py
+nir_opcodes_c_deps := \
+       $(LOCAL_PATH)/nir/nir_opcodes.py \
+       $(LOCAL_PATH)/nir/nir_opcodes_c.py
+
+$(intermediates)/nir/nir_opcodes.c: $(nir_opcodes_c_deps)
+       @mkdir -p $(dir $@)
+       $(hide) $(MESA_PYTHON2) $(nir_opcodes_c_gen) $< > $@
+
+nir_opt_algebraic_gen := $(LOCAL_PATH)/nir/nir_opt_algebraic.py
+nir_opt_algebraic_deps := \
+       $(LOCAL_PATH)/nir/nir_opt_algebraic.py \
+       $(LOCAL_PATH)/nir/nir_algebraic.py
+
+$(intermediates)/nir/nir_opt_algebraic.c: $(nir_opt_algebraic_deps)
+       @mkdir -p $(dir $@)
+       $(hide) $(MESA_PYTHON2) $(nir_opt_algebraic_gen) $< > $@
index 8ebd497..888780b 100644 (file)
@@ -42,3 +42,26 @@ LOCAL_MODULE := libmesa_compiler
 
 include $(MESA_COMMON_MK)
 include $(BUILD_STATIC_LIBRARY)
+
+# ---------------------------------------
+# Build libmesa_nir
+# ---------------------------------------
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := \
+       $(NIR_FILES)
+
+LOCAL_C_INCLUDES := \
+       $(MESA_TOP)/src/mapi \
+       $(MESA_TOP)/src/mesa \
+       $(MESA_TOP)/src/gallium/include \
+       $(MESA_TOP)/src/gallium/auxiliary
+
+LOCAL_STATIC_LIBRARIES := libmesa_compiler
+
+LOCAL_MODULE := libmesa_nir
+
+include $(LOCAL_PATH)/Android.gen.mk
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
index fd1dd4b..1e3778d 100644 (file)
@@ -29,6 +29,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/src/mesa/ \
        -I$(top_srcdir)/src/gallium/include \
        -I$(top_srcdir)/src/gallium/auxiliary \
+       -I$(top_srcdir)/src/gtest/include \
        $(DEFINES)
 
 AM_CFLAGS = \
@@ -43,4 +44,81 @@ noinst_LTLIBRARIES = libcompiler.la
 
 libcompiler_la_SOURCES = $(LIBCOMPILER_FILES)
 
+check_PROGRAMS =
+TESTS =
+BUILT_SOURCES =
+CLEANFILES =
 EXTRA_DIST = SConscript
+
+
+noinst_LTLIBRARIES += nir/libnir.la
+
+nir_libnir_la_CPPFLAGS = \
+       $(AM_CPPFLAGS) \
+       -I$(top_builddir)/src/compiler/nir \
+       -I$(top_srcdir)/src/compiler/nir
+
+nir_libnir_la_LIBADD = \
+       libcompiler.la
+
+nir_libnir_la_SOURCES =                                        \
+       $(NIR_FILES)                                    \
+       $(NIR_GENERATED_FILES)
+
+PYTHON_GEN = $(AM_V_GEN)$(PYTHON2) $(PYTHON_FLAGS)
+
+nir/nir_builder_opcodes.h: nir/nir_opcodes.py nir/nir_builder_opcodes_h.py
+       $(MKDIR_GEN)
+       $(PYTHON_GEN) $(srcdir)/nir/nir_builder_opcodes_h.py > $@ || ($(RM) $@; false)
+
+nir/nir_constant_expressions.c: nir/nir_opcodes.py nir/nir_constant_expressions.py
+       $(MKDIR_GEN)
+       $(PYTHON_GEN) $(srcdir)/nir/nir_constant_expressions.py > $@ || ($(RM) $@; false)
+
+nir/nir_opcodes.h: nir/nir_opcodes.py nir/nir_opcodes_h.py
+       $(MKDIR_GEN)
+       $(PYTHON_GEN) $(srcdir)/nir/nir_opcodes_h.py > $@ || ($(RM) $@; false)
+
+nir/nir_opcodes.c: nir/nir_opcodes.py nir/nir_opcodes_c.py
+       $(MKDIR_GEN)
+       $(PYTHON_GEN) $(srcdir)/nir/nir_opcodes_c.py > $@ || ($(RM) $@; false)
+
+nir/nir_opt_algebraic.c: nir/nir_opt_algebraic.py nir/nir_algebraic.py
+       $(MKDIR_GEN)
+       $(PYTHON_GEN) $(srcdir)/nir/nir_opt_algebraic.py > $@ || ($(RM) $@; false)
+
+
+check_PROGRAMS += nir/tests/control_flow_tests
+
+nir_tests_control_flow_tests_CPPFLAGS = \
+       $(AM_CPPFLAGS) \
+       -I$(top_builddir)/src/compiler/nir \
+       -I$(top_srcdir)/src/compiler/nir
+
+nir_tests_control_flow_tests_SOURCES =                 \
+       nir/tests/control_flow_tests.cpp
+nir_tests_control_flow_tests_CFLAGS =                  \
+       $(PTHREAD_CFLAGS)
+nir_tests_control_flow_tests_LDADD =                   \
+       $(top_builddir)/src/gtest/libgtest.la           \
+       $(top_builddir)/src/compiler/nir/libnir.la      \
+       $(top_builddir)/src/util/libmesautil.la         \
+       $(PTHREAD_LIBS)
+
+
+TESTS += nir/tests/control_flow_tests
+
+
+BUILT_SOURCES += $(NIR_GENERATED_FILES)
+CLEANFILES += $(NIR_GENERATED_FILES)
+
+EXTRA_DIST += \
+       nir/nir_algebraic.py                            \
+       nir/nir_builder_opcodes_h.py                    \
+       nir/nir_constant_expressions.py                 \
+       nir/nir_opcodes.py                              \
+       nir/nir_opcodes_c.py                            \
+       nir/nir_opcodes_h.py                            \
+       nir/nir_opt_algebraic.py                        \
+       nir/tests                                       \
+       nir/Makefile.sources
index e1228ca..fe12e41 100644 (file)
@@ -6,3 +6,74 @@ LIBCOMPILER_FILES = \
        nir_types.h \
        shader_enums.c \
        shader_enums.h
+
+NIR_GENERATED_FILES = \
+       nir/nir_builder_opcodes.h \
+       nir/nir_constant_expressions.c \
+       nir/nir_opcodes.c \
+       nir/nir_opcodes.h \
+       nir/nir_opt_algebraic.c
+
+NIR_FILES = \
+       nir/glsl_to_nir.cpp \
+       nir/glsl_to_nir.h \
+       nir/nir.c \
+       nir/nir.h \
+       nir/nir_array.h \
+       nir/nir_builder.h \
+       nir/nir_clone.c \
+       nir/nir_constant_expressions.h \
+       nir/nir_control_flow.c \
+       nir/nir_control_flow.h \
+       nir/nir_control_flow_private.h \
+       nir/nir_dominance.c \
+       nir/nir_from_ssa.c \
+       nir/nir_gs_count_vertices.c \
+       nir/nir_intrinsics.c \
+       nir/nir_intrinsics.h \
+       nir/nir_instr_set.c \
+       nir/nir_instr_set.h \
+       nir/nir_liveness.c \
+       nir/nir_lower_alu_to_scalar.c \
+       nir/nir_lower_atomics.c \
+       nir/nir_lower_clip.c \
+       nir/nir_lower_global_vars_to_local.c \
+       nir/nir_lower_gs_intrinsics.c \
+       nir/nir_lower_load_const_to_scalar.c \
+       nir/nir_lower_locals_to_regs.c \
+       nir/nir_lower_idiv.c \
+       nir/nir_lower_io.c \
+       nir/nir_lower_outputs_to_temporaries.c \
+       nir/nir_lower_phis_to_scalar.c \
+       nir/nir_lower_samplers.c \
+       nir/nir_lower_system_values.c \
+       nir/nir_lower_tex.c \
+       nir/nir_lower_to_source_mods.c \
+       nir/nir_lower_two_sided_color.c \
+       nir/nir_lower_vars_to_ssa.c \
+       nir/nir_lower_var_copies.c \
+       nir/nir_lower_vec_to_movs.c \
+       nir/nir_metadata.c \
+       nir/nir_move_vec_src_uses_to_dest.c \
+       nir/nir_normalize_cubemap_coords.c \
+       nir/nir_opt_constant_folding.c \
+       nir/nir_opt_copy_propagate.c \
+       nir/nir_opt_cse.c \
+       nir/nir_opt_dce.c \
+       nir/nir_opt_dead_cf.c \
+       nir/nir_opt_gcm.c \
+       nir/nir_opt_global_to_local.c \
+       nir/nir_opt_peephole_select.c \
+       nir/nir_opt_remove_phis.c \
+       nir/nir_opt_undef.c \
+       nir/nir_print.c \
+       nir/nir_remove_dead_variables.c \
+       nir/nir_search.c \
+       nir/nir_search.h \
+       nir/nir_split_var_copies.c \
+       nir/nir_sweep.c \
+       nir/nir_to_ssa.c \
+       nir/nir_validate.c \
+       nir/nir_vla.h \
+       nir/nir_worklist.c \
+       nir/nir_worklist.h
similarity index 100%
rename from src/glsl/nir/README
rename to src/compiler/nir/README
similarity index 99%
rename from src/glsl/nir/glsl_to_nir.cpp
rename to src/compiler/nir/glsl_to_nir.cpp
index c7399eb..33b1f5c 100644 (file)
@@ -28,9 +28,9 @@
 #include "glsl_to_nir.h"
 #include "nir_control_flow.h"
 #include "nir_builder.h"
-#include "ir_visitor.h"
-#include "ir_hierarchical_visitor.h"
-#include "ir.h"
+#include "glsl/ir_visitor.h"
+#include "glsl/ir_hierarchical_visitor.h"
+#include "glsl/ir.h"
 #include "main/imports.h"
 
 /*
similarity index 97%
rename from src/glsl/nir/glsl_to_nir.h
rename to src/compiler/nir/glsl_to_nir.h
index 29badcd..20d2a38 100644 (file)
@@ -26,7 +26,7 @@
  */
 
 #include "nir.h"
-#include "../glsl_parser_extras.h"
+#include "glsl/glsl_parser_extras.h"
 
 #ifdef __cplusplus
 extern "C" {
similarity index 100%
rename from src/glsl/nir/nir.c
rename to src/compiler/nir/nir.c
similarity index 99%
rename from src/glsl/nir/nir.h
rename to src/compiler/nir/nir.h
index d76df66..54e23eb 100644 (file)
@@ -28,7 +28,7 @@
 #pragma once
 
 #include "util/hash_table.h"
-#include "../list.h"
+#include "glsl/list.h"
 #include "GL/gl.h" /* GLenum */
 #include "util/list.h"
 #include "util/ralloc.h"
similarity index 99%
rename from src/glsl/nir/nir_lower_atomics.c
rename to src/compiler/nir/nir_lower_atomics.c
index 1aa78e1..2cbc1b7 100644 (file)
@@ -25,7 +25,7 @@
  *
  */
 
-#include "ir_uniform.h"
+#include "glsl/ir_uniform.h"
 #include "nir.h"
 #include "main/config.h"
 #include <assert.h>
similarity index 99%
rename from src/glsl/nir/nir_lower_samplers.c
rename to src/compiler/nir/nir_lower_samplers.c
index 95ea072..9c91212 100644 (file)
@@ -26,7 +26,7 @@
 #include "nir.h"
 #include "nir_builder.h"
 #include "program/hash_table.h"
-#include "ir_uniform.h"
+#include "glsl/ir_uniform.h"
 
 #include "main/compiler.h"
 #include "main/mtypes.h"
index bcdf297..0ac5c98 100644 (file)
@@ -18,7 +18,7 @@ libgallium_nir_la_SOURCES = \
        $(NIR_SOURCES)
 
 libgallium_nir_la_CFLAGS = \
-       -I$(top_builddir)/src/glsl/nir \
+       -I$(top_builddir)/src/compiler/nir \
        $(GALLIUM_CFLAGS) \
        $(VISIBILITY_CFLAGS) \
        $(MSVC2013_COMPAT_CFLAGS)
index 0d6eb76..6649e40 100644 (file)
  */
 
 #include "util/ralloc.h"
-#include "glsl/nir/nir.h"
-#include "glsl/nir/nir_control_flow.h"
-#include "glsl/nir/nir_builder.h"
+#include "compiler/nir/nir.h"
+#include "compiler/nir/nir_control_flow.h"
+#include "compiler/nir/nir_builder.h"
 #include "glsl/list.h"
 #include "compiler/shader_enums.h"
 
-#include "nir/tgsi_to_nir.h"
+#include "tgsi_to_nir.h"
 #include "tgsi/tgsi_parse.h"
 #include "tgsi/tgsi_dump.h"
 #include "tgsi/tgsi_info.h"
index 1a185a8..0651870 100644 (file)
@@ -21,7 +21,7 @@
  * IN THE SOFTWARE.
  */
 
-#include "glsl/nir/nir.h"
+#include "compiler/nir/nir.h"
 
 struct nir_shader_compiler_options *options;
 
index 3de8e0f..329a420 100644 (file)
@@ -4,7 +4,7 @@ include $(top_srcdir)/src/gallium/Automake.inc
 AM_CFLAGS = \
        -Wno-packed-bitfield-compat \
        -I$(top_srcdir)/src/gallium/drivers/freedreno/ir3 \
-       -I$(top_builddir)/src/glsl/nir \
+       -I$(top_builddir)/src/compiler/nir \
        $(GALLIUM_DRIVER_CFLAGS) \
        $(FREEDRENO_CFLAGS)
 
@@ -27,7 +27,7 @@ ir3_compiler_SOURCES = \
 ir3_compiler_LDADD = \
        libfreedreno.la \
        $(top_builddir)/src/gallium/auxiliary/libgallium.la \
-       $(top_builddir)/src/glsl/libnir.la \
+       $(top_builddir)/src/compiler/nir/libnir.la \
        $(top_builddir)/src/util/libmesautil.la \
        $(GALLIUM_COMMON_LIB_DEPS) \
        $(FREEDRENO_LIBS)
index 311a403..e2d8859 100644 (file)
@@ -29,7 +29,7 @@
 #ifndef IR3_NIR_H_
 #define IR3_NIR_H_
 
-#include "glsl/nir/nir.h"
+#include "compiler/nir/nir.h"
 #include "compiler/shader_enums.h"
 
 #include "ir3_shader.h"
index 6eee2eb..8815ac9 100644 (file)
@@ -28,8 +28,8 @@
  */
 
 #include "ir3_nir.h"
-#include "glsl/nir/nir_builder.h"
-#include "glsl/nir/nir_control_flow.h"
+#include "compiler/nir/nir_builder.h"
+#include "compiler/nir/nir_control_flow.h"
 
 /* Based on nir_opt_peephole_select, and hacked up to more aggressively
  * flatten anything that can be flattened
index a3bf72f..caa5059 100644 (file)
@@ -27,7 +27,7 @@ SIM_LDFLAGS = -lsimpenrose
 endif
 
 AM_CFLAGS = \
-       -I$(top_builddir)/src/glsl/nir \
+       -I$(top_builddir)/src/compiler/nir \
        $(LIBDRM_CFLAGS) \
        $(GALLIUM_DRIVER_CFLAGS) \
        $(SIM_CFLAGS) \
index 6d9a624..a13e309 100644 (file)
@@ -41,7 +41,7 @@
  */
 #include "util/u_format.h"
 #include "vc4_qir.h"
-#include "glsl/nir/nir_builder.h"
+#include "compiler/nir/nir_builder.h"
 #include "vc4_context.h"
 
 static bool
index bf6631e..d47e3bf 100644 (file)
@@ -22,7 +22,7 @@
  */
 
 #include "vc4_qir.h"
-#include "glsl/nir/nir_builder.h"
+#include "compiler/nir/nir_builder.h"
 #include "util/u_format.h"
 
 /**
index 2490819..6a952c6 100644 (file)
@@ -24,7 +24,7 @@
 #include "vc4_qir.h"
 #include "kernel/vc4_packet.h"
 #include "tgsi/tgsi_info.h"
-#include "glsl/nir/nir_builder.h"
+#include "compiler/nir/nir_builder.h"
 
 /** @file vc4_nir_lower_txf_ms.c
  * Walks the NIR generated by TGSI-to-NIR to lower its nir_texop_txf_ms
index 3e402d0..7db1b03 100644 (file)
@@ -32,8 +32,8 @@
 #include "tgsi/tgsi_dump.h"
 #include "tgsi/tgsi_lowering.h"
 #include "tgsi/tgsi_parse.h"
-#include "glsl/nir/nir.h"
-#include "glsl/nir/nir_builder.h"
+#include "compiler/nir/nir.h"
+#include "compiler/nir/nir_builder.h"
 #include "nir/tgsi_to_nir.h"
 #include "vc4_context.h"
 #include "vc4_qpu.h"
index 4ab4d35..bae3176 100644 (file)
@@ -32,7 +32,7 @@
 #include <string.h>
 
 #include "util/macros.h"
-#include "glsl/nir/nir.h"
+#include "compiler/nir/nir.h"
 #include "util/list.h"
 #include "util/u_math.h"
 
index 4bc3b55..0b516de 100644 (file)
@@ -53,7 +53,7 @@ endif
 
 PIPE_LIBS += \
        $(top_builddir)/src/gallium/auxiliary/libgallium.la \
-       $(top_builddir)/src/glsl/libnir.la \
+       $(top_builddir)/src/compiler/nir/libnir.la \
        $(top_builddir)/src/util/libmesautil.la \
        $(top_builddir)/src/gallium/drivers/rbug/librbug.la \
        $(top_builddir)/src/gallium/drivers/trace/libtrace.la \
index a63fd69..cdd9a86 100644 (file)
@@ -37,7 +37,7 @@ libxatracker_la_LIBADD = \
        $(top_builddir)/src/gallium/state_trackers/xa/libxatracker.la \
        $(top_builddir)/src/gallium/auxiliary/libgalliumvl_stub.la \
        $(top_builddir)/src/gallium/auxiliary/libgallium.la \
-       $(top_builddir)/src/glsl/libnir.la \
+       $(top_builddir)/src/compiler/nir/libnir.la \
        $(top_builddir)/src/util/libmesautil.la \
        $(LIBDRM_LIBS) \
        $(GALLIUM_COMMON_LIB_DEPS)
index 59cc857..c5741b4 100644 (file)
@@ -33,17 +33,10 @@ LOCAL_SRC_FILES := $(LOCAL_SRC_FILES)
 
 LOCAL_C_INCLUDES += \
        $(intermediates)/glcpp \
-       $(intermediates)/nir \
        $(MESA_TOP)/src/glsl/glcpp \
-       $(MESA_TOP)/src/glsl/nir
-
-LOCAL_EXPORT_C_INCLUDE_DIRS += \
-       $(intermediates)/nir \
-       $(MESA_TOP)/src/glsl/nir
 
 LOCAL_GENERATED_SOURCES += $(addprefix $(intermediates)/, \
        $(LIBGLCPP_GENERATED_FILES) \
-       $(NIR_GENERATED_FILES) \
        $(LIBGLSL_GENERATED_CXX_FILES))
 
 define local-l-or-ll-to-c-or-cpp
@@ -81,50 +74,3 @@ $(intermediates)/glcpp/glcpp-lex.c: $(LOCAL_PATH)/glcpp/glcpp-lex.l
 
 $(intermediates)/glcpp/glcpp-parse.c: $(LOCAL_PATH)/glcpp/glcpp-parse.y
        $(call glsl_local-y-to-c-and-h)
-
-nir_builder_opcodes_gen := $(LOCAL_PATH)/nir/nir_builder_opcodes_h.py
-nir_builder_opcodes_deps := \
-       $(LOCAL_PATH)/nir/nir_opcodes.py \
-       $(LOCAL_PATH)/nir/nir_builder_opcodes_h.py
-
-$(intermediates)/nir/nir_builder_opcodes.h: $(nir_builder_opcodes_deps)
-       @mkdir -p $(dir $@)
-       $(hide) $(MESA_PYTHON2) $(nir_builder_opcodes_gen) $< > $@
-
-nir_constant_expressions_gen := $(LOCAL_PATH)/nir/nir_constant_expressions.py
-nir_constant_expressions_deps := \
-       $(LOCAL_PATH)/nir/nir_opcodes.py \
-       $(LOCAL_PATH)/nir/nir_constant_expressions.py
-
-$(intermediates)/nir/nir_constant_expressions.c: $(nir_constant_expressions_deps)
-       @mkdir -p $(dir $@)
-       $(hide) $(MESA_PYTHON2) $(nir_constant_expressions_gen) $< > $@
-
-nir_opcodes_h_gen := $(LOCAL_PATH)/nir/nir_opcodes_h.py
-nir_opcodes_h_deps := \
-       $(LOCAL_PATH)/nir/nir_opcodes.py \
-       $(LOCAL_PATH)/nir/nir_opcodes_h.py
-
-$(intermediates)/nir/nir_opcodes.h: $(nir_opcodes_h_deps)
-       @mkdir -p $(dir $@)
-       $(hide) $(MESA_PYTHON2) $(nir_opcodes_h_gen) $< > $@
-
-$(LOCAL_PATH)/nir/nir.h: $(intermediates)/nir/nir_opcodes.h
-
-nir_opcodes_c_gen := $(LOCAL_PATH)/nir/nir_opcodes_c.py
-nir_opcodes_c_deps := \
-       $(LOCAL_PATH)/nir/nir_opcodes.py \
-       $(LOCAL_PATH)/nir/nir_opcodes_c.py
-
-$(intermediates)/nir/nir_opcodes.c: $(nir_opcodes_c_deps)
-       @mkdir -p $(dir $@)
-       $(hide) $(MESA_PYTHON2) $(nir_opcodes_c_gen) $< > $@
-
-nir_opt_algebraic_gen := $(LOCAL_PATH)/nir/nir_opt_algebraic.py
-nir_opt_algebraic_deps := \
-       $(LOCAL_PATH)/nir/nir_opt_algebraic.py \
-       $(LOCAL_PATH)/nir/nir_algebraic.py
-
-$(intermediates)/nir/nir_opt_algebraic.c: $(nir_opt_algebraic_deps)
-       @mkdir -p $(dir $@)
-       $(hide) $(MESA_PYTHON2) $(nir_opt_algebraic_gen) $< > $@
index 07d5267..9954b81 100644 (file)
@@ -27,9 +27,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/src/gallium/include \
        -I$(top_srcdir)/src/gallium/auxiliary \
        -I$(top_srcdir)/src/glsl/glcpp \
-       -I$(top_srcdir)/src/glsl/nir \
        -I$(top_srcdir)/src/gtest/include \
-       -I$(top_builddir)/src/glsl/nir \
        $(DEFINES)
 AM_CFLAGS = \
        $(VISIBILITY_CFLAGS) \
@@ -43,21 +41,12 @@ EXTRA_DIST = tests glcpp/tests README TODO glcpp/README     \
        glsl_parser.yy                                  \
        glcpp/glcpp-lex.l                               \
        glcpp/glcpp-parse.y                             \
-       nir/nir_algebraic.py                            \
-       nir/nir_builder_opcodes_h.py                    \
-       nir/nir_constant_expressions.py                 \
-       nir/nir_opcodes.py                              \
-       nir/nir_opcodes_c.py                            \
-       nir/nir_opcodes_h.py                            \
-       nir/nir_opt_algebraic.py                        \
-       nir/tests                                       \
        SConscript
 
 include Makefile.sources
 
 TESTS = glcpp/tests/glcpp-test                         \
        glcpp/tests/glcpp-test-cr-lf                    \
-        nir/tests/control_flow_tests                   \
        tests/blob-test                                 \
        tests/general-ir-test                           \
        tests/optimization-test                         \
@@ -68,11 +57,10 @@ TESTS_ENVIRONMENT= \
        export PYTHON2=$(PYTHON2); \
        export PYTHON_FLAGS=$(PYTHON_FLAGS);
 
-noinst_LTLIBRARIES = libnir.la libglsl.la libglcpp.la
+noinst_LTLIBRARIES = libglsl.la libglcpp.la
 check_PROGRAMS =                                       \
        glcpp/glcpp                                     \
        glsl_test                                       \
-       nir/tests/control_flow_tests                    \
        tests/blob-test                                 \
        tests/general-ir-test                           \
        tests/sampler-types-test                        \
@@ -138,24 +126,15 @@ glcpp_glcpp_LDADD =                                       \
        -lm
 
 libglsl_la_LIBADD = \
-       $(top_builddir)/src/compiler/libcompiler.la \
+       $(top_builddir)/src/compiler/nir/libnir.la \
        libglcpp.la
 
 libglsl_la_SOURCES =                                   \
        glsl_lexer.cpp                                  \
        glsl_parser.cpp                                 \
        glsl_parser.h                                   \
-       $(LIBGLSL_FILES)                                \
-       $(NIR_FILES)                                    \
-       $(NIR_GENERATED_FILES)                          \
-       $(GLSL_TO_NIR_FILES)
+       $(LIBGLSL_FILES)
 
-libnir_la_LIBADD = \
-       $(top_builddir)/src/compiler/libcompiler.la
-
-libnir_la_SOURCES =                                    \
-       $(NIR_FILES)                                    \
-       $(NIR_GENERATED_FILES)
 
 glsl_compiler_SOURCES = \
        $(GLSL_COMPILER_CXX_FILES)
@@ -235,8 +214,7 @@ BUILT_SOURCES =                                             \
        glsl_parser.cpp                                 \
        glsl_lexer.cpp                                  \
        glcpp/glcpp-parse.c                             \
-       glcpp/glcpp-lex.c                               \
-       $(NIR_GENERATED_FILES)
+       glcpp/glcpp-lex.c
 CLEANFILES =                                           \
        glcpp/glcpp-parse.h                             \
        glsl_parser.h                                   \
@@ -248,35 +226,3 @@ clean-local:
 dist-hook:
        $(RM) glcpp/tests/*.out
        $(RM) glcpp/tests/subtest*/*.out
-
-PYTHON_GEN = $(AM_V_GEN)$(PYTHON2) $(PYTHON_FLAGS)
-
-nir/nir_builder_opcodes.h: nir/nir_opcodes.py nir/nir_builder_opcodes_h.py
-       $(MKDIR_GEN)
-       $(PYTHON_GEN) $(srcdir)/nir/nir_builder_opcodes_h.py > $@ || ($(RM) $@; false)
-
-nir/nir_constant_expressions.c: nir/nir_opcodes.py nir/nir_constant_expressions.py
-       $(MKDIR_GEN)
-       $(PYTHON_GEN) $(srcdir)/nir/nir_constant_expressions.py > $@ || ($(RM) $@; false)
-
-nir/nir_opcodes.h: nir/nir_opcodes.py nir/nir_opcodes_h.py
-       $(MKDIR_GEN)
-       $(PYTHON_GEN) $(srcdir)/nir/nir_opcodes_h.py > $@ || ($(RM) $@; false)
-
-nir/nir_opcodes.c: nir/nir_opcodes.py nir/nir_opcodes_c.py
-       $(MKDIR_GEN)
-       $(PYTHON_GEN) $(srcdir)/nir/nir_opcodes_c.py > $@ || ($(RM) $@; false)
-
-nir/nir_opt_algebraic.c: nir/nir_opt_algebraic.py nir/nir_algebraic.py
-       $(MKDIR_GEN)
-       $(PYTHON_GEN) $(srcdir)/nir/nir_opt_algebraic.py > $@ || ($(RM) $@; false)
-
-nir_tests_control_flow_tests_SOURCES =                 \
-       nir/tests/control_flow_tests.cpp
-nir_tests_control_flow_tests_CFLAGS =                  \
-       $(PTHREAD_CFLAGS)
-nir_tests_control_flow_tests_LDADD =                   \
-       $(top_builddir)/src/gtest/libgtest.la           \
-       $(top_builddir)/src/glsl/libnir.la              \
-       $(top_builddir)/src/util/libmesautil.la         \
-       $(PTHREAD_LIBS)
index cd31e14..ba952da 100644 (file)
@@ -60,7 +60,7 @@ LOCAL_C_INCLUDES := \
        $(MESA_TOP)/src/mapi \
        $(MESA_TOP)/src/mesa/main \
        $(MESA_TOP)/src/glsl \
-       $(MESA_TOP)/src/glsl/nir \
+       $(MESA_TOP)/src/compiler/nir \
        $(MESA_TOP)/src/gallium/include \
        $(MESA_TOP)/src/gallium/auxiliary
 
index 9e150ea..894ae20 100644 (file)
@@ -37,7 +37,7 @@ LOCAL_MODULE := libmesa_glsl_utils
 
 LOCAL_C_INCLUDES := \
        $(MESA_TOP)/src/glsl \
-       $(MESA_TOP)/src/glsl/nir \
+       $(MESA_TOP)/src/compiler/nir \
        $(MESA_TOP)/src/mapi \
        $(MESA_TOP)/src/gallium/include \
        $(MESA_TOP)/src/gallium/auxiliary
@@ -63,7 +63,7 @@ LOCAL_CFLAGS := -D_POSIX_C_SOURCE=199309L
 
 LOCAL_C_INCLUDES := \
        $(MESA_TOP)/src/glsl \
-       $(MESA_TOP)/src/glsl/nir \
+       $(MESA_TOP)/src/compiler/nir \
        $(MESA_TOP)/src/mapi \
        $(MESA_TOP)/src/gallium/include \
        $(MESA_TOP)/src/gallium/auxiliary
index 427a35f..ee8887b 100644 (file)
@@ -55,7 +55,7 @@ LOCAL_C_INCLUDES := \
        $(MESA_TOP)/src/mapi \
        $(MESA_TOP)/src/mesa/main \
        $(MESA_TOP)/src/glsl \
-       $(MESA_TOP)/src/glsl/nir \
+       $(MESA_TOP)/src/compiler/nir \
        $(MESA_TOP)/src/gallium/auxiliary \
        $(MESA_TOP)/src/gallium/include
 
index 13a05f5..386d6aa 100644 (file)
@@ -624,9 +624,8 @@ INCLUDE_DIRS = \
        -I$(top_srcdir)/include \
        -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/glsl \
-       -I$(top_srcdir)/src/glsl/nir \
+       -I$(top_builddir)/src/compiler/nir \
        -I$(top_builddir)/src/glsl \
-       -I$(top_builddir)/src/glsl/nir \
        -I$(top_srcdir)/src/glsl/glcpp \
        -I$(top_srcdir)/src/mesa \
        -I$(top_builddir)/src/mesa \
index ad687bf..0db5a51 100644 (file)
@@ -33,8 +33,7 @@ AM_CFLAGS = \
        -I$(top_srcdir)/src/mesa/drivers/dri/common \
        -I$(top_srcdir)/src/mesa/drivers/dri/intel/server \
        -I$(top_srcdir)/src/gtest/include \
-       -I$(top_srcdir)/src/glsl/nir \
-       -I$(top_builddir)/src/glsl/nir \
+       -I$(top_builddir)/src/compiler/nir \
        -I$(top_builddir)/src/mesa/drivers/dri/common \
        $(DEFINES) \
        $(VISIBILITY_CFLAGS) \
index 9a54c2d..b75ebfe 100644 (file)
@@ -31,7 +31,7 @@
 #include "brw_ir_fs.h"
 #include "brw_fs_builder.h"
 #include "glsl/ir.h"
-#include "glsl/nir/nir.h"
+#include "compiler/nir/nir.h"
 
 struct bblock_t;
 namespace {
index 935529a..287f935 100644 (file)
@@ -23,8 +23,8 @@
 
 #include "brw_nir.h"
 #include "brw_shader.h"
-#include "glsl/nir/glsl_to_nir.h"
-#include "glsl/nir/nir_builder.h"
+#include "compiler/nir/glsl_to_nir.h"
+#include "compiler/nir/nir_builder.h"
 #include "program/prog_to_nir.h"
 
 static bool
index 78b139b..079d8b2 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "brw_context.h"
 #include "brw_reg.h"
-#include "glsl/nir/nir.h"
+#include "compiler/nir/nir.h"
 
 #ifdef __cplusplus
 extern "C" {
index ddfd87d..4e00fd0 100644 (file)
@@ -32,7 +32,7 @@
 #endif
 
 #include "glsl/ir.h"
-#include "glsl/nir/nir.h"
+#include "compiler/nir/nir.h"
 
 
 #ifdef __cplusplus
index 59cc863..459ea60 100644 (file)
@@ -25,7 +25,7 @@
 #include "brw_eu.h"
 #include "intel_debug.h"
 #include "intel_asm_annotation.h"
-#include "glsl/nir/nir.h"
+#include "compiler/nir/nir.h"
 
 void
 dump_assembly(void *assembly, int num_annotations, struct annotation *annotation,
index bca783a..ee7c1d7 100644 (file)
@@ -36,7 +36,7 @@
 #include "swrast/s_renderbuffer.h"
 #include "util/ralloc.h"
 #include "brw_shader.h"
-#include "glsl/nir/nir.h"
+#include "compiler/nir/nir.h"
 
 #include "utils.h"
 #include "xmlpool.h"
index cc67f8a..0bc97a6 100644 (file)
@@ -75,7 +75,7 @@ LOCAL_C_INCLUDES := \
        $(MESA_TOP)/src/mapi \
        $(MESA_TOP)/src/mesa \
        $(MESA_TOP)/src/glsl \
-       $(MESA_TOP)/src/glsl/nir \
+       $(MESA_TOP)/src/compiler/nir \
        $(MESA_TOP)/src/gallium/auxiliary \
        $(MESA_TOP)/src/gallium/include
 
index ce6f699..a2ebb1b 100644 (file)
@@ -23,8 +23,8 @@
  * IN THE SOFTWARE.
  */
 
-#include "nir/nir.h"
-#include "nir/nir_builder.h"
+#include "compiler/nir/nir.h"
+#include "compiler/nir/nir_builder.h"
 #include "glsl/list.h"
 #include "main/imports.h"
 #include "util/ralloc.h"