OSDN Git Service

i965: Move the back-end compiler to src/intel/compiler
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 28 Feb 2017 17:10:43 +0000 (09:10 -0800)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 13 Mar 2017 11:16:34 +0000 (11:16 +0000)
Mostly a dummy git mv with a couple of noticable parts:
 - With the earlier header cleanups, nothing in src/intel depends
files from src/mesa/drivers/dri/i965/
 - Both Autoconf and Android builds are addressed. Thanks to Mauro and
Tapani for the fixups in the latter
 - brw_util.[ch] is not really compiler specific, so it's moved to i965.

v2:
 - move brw_eu_defines.h instead of brw_defines.h
 - remove no-longer applicable includes
 - add missing vulkan/ prefix in the Android build (thanks Tapani)

v3:
 - don't list brw_defines.h in src/intel/Makefile.sources (Jason)
 - rebase on top of the oa patches

[Emil Velikov: commit message, various small fixes througout]
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
138 files changed:
src/intel/Android.blorp.mk
src/intel/Android.compiler.mk [moved from src/mesa/drivers/dri/i965/Android.gen.mk with 58% similarity]
src/intel/Android.isl.mk
src/intel/Android.mk
src/intel/Makefile.am
src/intel/Makefile.compiler.am [new file with mode: 0644]
src/intel/Makefile.sources
src/intel/blorp/blorp.c
src/intel/blorp/blorp_clear.c
src/intel/blorp/blorp_priv.h
src/intel/compiler/.gitignore [new file with mode: 0644]
src/intel/compiler/brw_cfg.cpp [moved from src/mesa/drivers/dri/i965/brw_cfg.cpp with 100% similarity]
src/intel/compiler/brw_cfg.h [moved from src/mesa/drivers/dri/i965/brw_cfg.h with 100% similarity]
src/intel/compiler/brw_compiler.c [moved from src/mesa/drivers/dri/i965/brw_compiler.c with 100% similarity]
src/intel/compiler/brw_compiler.h [moved from src/mesa/drivers/dri/i965/brw_compiler.h with 100% similarity]
src/intel/compiler/brw_dead_control_flow.cpp [moved from src/mesa/drivers/dri/i965/brw_dead_control_flow.cpp with 100% similarity]
src/intel/compiler/brw_dead_control_flow.h [moved from src/mesa/drivers/dri/i965/brw_dead_control_flow.h with 100% similarity]
src/intel/compiler/brw_disasm.c [moved from src/mesa/drivers/dri/i965/brw_disasm.c with 100% similarity]
src/intel/compiler/brw_eu.c [moved from src/mesa/drivers/dri/i965/brw_eu.c with 100% similarity]
src/intel/compiler/brw_eu.h [moved from src/mesa/drivers/dri/i965/brw_eu.h with 100% similarity]
src/intel/compiler/brw_eu_compact.c [moved from src/mesa/drivers/dri/i965/brw_eu_compact.c with 100% similarity]
src/intel/compiler/brw_eu_defines.h [moved from src/mesa/drivers/dri/i965/brw_eu_defines.h with 100% similarity]
src/intel/compiler/brw_eu_emit.c [moved from src/mesa/drivers/dri/i965/brw_eu_emit.c with 100% similarity]
src/intel/compiler/brw_eu_util.c [moved from src/mesa/drivers/dri/i965/brw_eu_util.c with 100% similarity]
src/intel/compiler/brw_eu_validate.c [moved from src/mesa/drivers/dri/i965/brw_eu_validate.c with 100% similarity]
src/intel/compiler/brw_fs.cpp [moved from src/mesa/drivers/dri/i965/brw_fs.cpp with 100% similarity]
src/intel/compiler/brw_fs.h [moved from src/mesa/drivers/dri/i965/brw_fs.h with 100% similarity]
src/intel/compiler/brw_fs_builder.h [moved from src/mesa/drivers/dri/i965/brw_fs_builder.h with 100% similarity]
src/intel/compiler/brw_fs_cmod_propagation.cpp [moved from src/mesa/drivers/dri/i965/brw_fs_cmod_propagation.cpp with 100% similarity]
src/intel/compiler/brw_fs_combine_constants.cpp [moved from src/mesa/drivers/dri/i965/brw_fs_combine_constants.cpp with 100% similarity]
src/intel/compiler/brw_fs_copy_propagation.cpp [moved from src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp with 100% similarity]
src/intel/compiler/brw_fs_cse.cpp [moved from src/mesa/drivers/dri/i965/brw_fs_cse.cpp with 100% similarity]
src/intel/compiler/brw_fs_dead_code_eliminate.cpp [moved from src/mesa/drivers/dri/i965/brw_fs_dead_code_eliminate.cpp with 100% similarity]
src/intel/compiler/brw_fs_generator.cpp [moved from src/mesa/drivers/dri/i965/brw_fs_generator.cpp with 100% similarity]
src/intel/compiler/brw_fs_live_variables.cpp [moved from src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp with 100% similarity]
src/intel/compiler/brw_fs_live_variables.h [moved from src/mesa/drivers/dri/i965/brw_fs_live_variables.h with 100% similarity]
src/intel/compiler/brw_fs_lower_d2x.cpp [moved from src/mesa/drivers/dri/i965/brw_fs_lower_d2x.cpp with 100% similarity]
src/intel/compiler/brw_fs_lower_pack.cpp [moved from src/mesa/drivers/dri/i965/brw_fs_lower_pack.cpp with 100% similarity]
src/intel/compiler/brw_fs_nir.cpp [moved from src/mesa/drivers/dri/i965/brw_fs_nir.cpp with 100% similarity]
src/intel/compiler/brw_fs_reg_allocate.cpp [moved from src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp with 100% similarity]
src/intel/compiler/brw_fs_register_coalesce.cpp [moved from src/mesa/drivers/dri/i965/brw_fs_register_coalesce.cpp with 100% similarity]
src/intel/compiler/brw_fs_saturate_propagation.cpp [moved from src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp with 100% similarity]
src/intel/compiler/brw_fs_sel_peephole.cpp [moved from src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp with 100% similarity]
src/intel/compiler/brw_fs_surface_builder.cpp [moved from src/mesa/drivers/dri/i965/brw_fs_surface_builder.cpp with 100% similarity]
src/intel/compiler/brw_fs_surface_builder.h [moved from src/mesa/drivers/dri/i965/brw_fs_surface_builder.h with 100% similarity]
src/intel/compiler/brw_fs_validate.cpp [moved from src/mesa/drivers/dri/i965/brw_fs_validate.cpp with 100% similarity]
src/intel/compiler/brw_fs_visitor.cpp [moved from src/mesa/drivers/dri/i965/brw_fs_visitor.cpp with 100% similarity]
src/intel/compiler/brw_inst.h [moved from src/mesa/drivers/dri/i965/brw_inst.h with 100% similarity]
src/intel/compiler/brw_interpolation_map.c [moved from src/mesa/drivers/dri/i965/brw_interpolation_map.c with 100% similarity]
src/intel/compiler/brw_ir_allocator.h [moved from src/mesa/drivers/dri/i965/brw_ir_allocator.h with 100% similarity]
src/intel/compiler/brw_ir_fs.h [moved from src/mesa/drivers/dri/i965/brw_ir_fs.h with 100% similarity]
src/intel/compiler/brw_ir_vec4.h [moved from src/mesa/drivers/dri/i965/brw_ir_vec4.h with 100% similarity]
src/intel/compiler/brw_nir.c [moved from src/mesa/drivers/dri/i965/brw_nir.c with 100% similarity]
src/intel/compiler/brw_nir.h [moved from src/mesa/drivers/dri/i965/brw_nir.h with 100% similarity]
src/intel/compiler/brw_nir_analyze_boolean_resolves.c [moved from src/mesa/drivers/dri/i965/brw_nir_analyze_boolean_resolves.c with 100% similarity]
src/intel/compiler/brw_nir_attribute_workarounds.c [moved from src/mesa/drivers/dri/i965/brw_nir_attribute_workarounds.c with 100% similarity]
src/intel/compiler/brw_nir_intrinsics.c [moved from src/mesa/drivers/dri/i965/brw_nir_intrinsics.c with 100% similarity]
src/intel/compiler/brw_nir_opt_peephole_ffma.c [moved from src/mesa/drivers/dri/i965/brw_nir_opt_peephole_ffma.c with 100% similarity]
src/intel/compiler/brw_nir_tcs_workarounds.c [moved from src/mesa/drivers/dri/i965/brw_nir_tcs_workarounds.c with 100% similarity]
src/intel/compiler/brw_nir_trig_workarounds.py [moved from src/mesa/drivers/dri/i965/brw_nir_trig_workarounds.py with 100% similarity]
src/intel/compiler/brw_packed_float.c [moved from src/mesa/drivers/dri/i965/brw_packed_float.c with 100% similarity]
src/intel/compiler/brw_predicated_break.cpp [moved from src/mesa/drivers/dri/i965/brw_predicated_break.cpp with 100% similarity]
src/intel/compiler/brw_reg.h [moved from src/mesa/drivers/dri/i965/brw_reg.h with 100% similarity]
src/intel/compiler/brw_schedule_instructions.cpp [moved from src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp with 100% similarity]
src/intel/compiler/brw_shader.cpp [moved from src/mesa/drivers/dri/i965/brw_shader.cpp with 100% similarity]
src/intel/compiler/brw_shader.h [moved from src/mesa/drivers/dri/i965/brw_shader.h with 100% similarity]
src/intel/compiler/brw_vec4.cpp [moved from src/mesa/drivers/dri/i965/brw_vec4.cpp with 100% similarity]
src/intel/compiler/brw_vec4.h [moved from src/mesa/drivers/dri/i965/brw_vec4.h with 100% similarity]
src/intel/compiler/brw_vec4_builder.h [moved from src/mesa/drivers/dri/i965/brw_vec4_builder.h with 100% similarity]
src/intel/compiler/brw_vec4_cmod_propagation.cpp [moved from src/mesa/drivers/dri/i965/brw_vec4_cmod_propagation.cpp with 100% similarity]
src/intel/compiler/brw_vec4_copy_propagation.cpp [moved from src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp with 100% similarity]
src/intel/compiler/brw_vec4_cse.cpp [moved from src/mesa/drivers/dri/i965/brw_vec4_cse.cpp with 100% similarity]
src/intel/compiler/brw_vec4_dead_code_eliminate.cpp [moved from src/mesa/drivers/dri/i965/brw_vec4_dead_code_eliminate.cpp with 100% similarity]
src/intel/compiler/brw_vec4_generator.cpp [moved from src/mesa/drivers/dri/i965/brw_vec4_generator.cpp with 100% similarity]
src/intel/compiler/brw_vec4_gs_nir.cpp [moved from src/mesa/drivers/dri/i965/brw_vec4_gs_nir.cpp with 100% similarity]
src/intel/compiler/brw_vec4_gs_visitor.cpp [moved from src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp with 100% similarity]
src/intel/compiler/brw_vec4_gs_visitor.h [moved from src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.h with 100% similarity]
src/intel/compiler/brw_vec4_live_variables.cpp [moved from src/mesa/drivers/dri/i965/brw_vec4_live_variables.cpp with 100% similarity]
src/intel/compiler/brw_vec4_live_variables.h [moved from src/mesa/drivers/dri/i965/brw_vec4_live_variables.h with 100% similarity]
src/intel/compiler/brw_vec4_nir.cpp [moved from src/mesa/drivers/dri/i965/brw_vec4_nir.cpp with 100% similarity]
src/intel/compiler/brw_vec4_reg_allocate.cpp [moved from src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp with 100% similarity]
src/intel/compiler/brw_vec4_surface_builder.cpp [moved from src/mesa/drivers/dri/i965/brw_vec4_surface_builder.cpp with 100% similarity]
src/intel/compiler/brw_vec4_surface_builder.h [moved from src/mesa/drivers/dri/i965/brw_vec4_surface_builder.h with 100% similarity]
src/intel/compiler/brw_vec4_tcs.cpp [moved from src/mesa/drivers/dri/i965/brw_vec4_tcs.cpp with 100% similarity]
src/intel/compiler/brw_vec4_tcs.h [moved from src/mesa/drivers/dri/i965/brw_vec4_tcs.h with 100% similarity]
src/intel/compiler/brw_vec4_tes.cpp [moved from src/mesa/drivers/dri/i965/brw_vec4_tes.cpp with 100% similarity]
src/intel/compiler/brw_vec4_tes.h [moved from src/mesa/drivers/dri/i965/brw_vec4_tes.h with 100% similarity]
src/intel/compiler/brw_vec4_visitor.cpp [moved from src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp with 100% similarity]
src/intel/compiler/brw_vec4_vs.h [moved from src/mesa/drivers/dri/i965/brw_vec4_vs.h with 100% similarity]
src/intel/compiler/brw_vec4_vs_visitor.cpp [moved from src/mesa/drivers/dri/i965/brw_vec4_vs_visitor.cpp with 100% similarity]
src/intel/compiler/brw_vue_map.c [moved from src/mesa/drivers/dri/i965/brw_vue_map.c with 100% similarity]
src/intel/compiler/brw_wm_iz.cpp [moved from src/mesa/drivers/dri/i965/brw_wm_iz.cpp with 100% similarity]
src/intel/compiler/gen6_gs_visitor.cpp [moved from src/mesa/drivers/dri/i965/gen6_gs_visitor.cpp with 100% similarity]
src/intel/compiler/gen6_gs_visitor.h [moved from src/mesa/drivers/dri/i965/gen6_gs_visitor.h with 100% similarity]
src/intel/compiler/intel_asm_annotation.c [moved from src/mesa/drivers/dri/i965/intel_asm_annotation.c with 100% similarity]
src/intel/compiler/intel_asm_annotation.h [moved from src/mesa/drivers/dri/i965/intel_asm_annotation.h with 100% similarity]
src/intel/compiler/test_eu_compact.c [moved from src/mesa/drivers/dri/i965/test_eu_compact.c with 100% similarity]
src/intel/compiler/test_eu_validate.cpp [moved from src/mesa/drivers/dri/i965/test_eu_validate.cpp with 100% similarity]
src/intel/compiler/test_fs_cmod_propagation.cpp [moved from src/mesa/drivers/dri/i965/test_fs_cmod_propagation.cpp with 100% similarity]
src/intel/compiler/test_fs_copy_propagation.cpp [moved from src/mesa/drivers/dri/i965/test_fs_copy_propagation.cpp with 100% similarity]
src/intel/compiler/test_fs_saturate_propagation.cpp [moved from src/mesa/drivers/dri/i965/test_fs_saturate_propagation.cpp with 100% similarity]
src/intel/compiler/test_vec4_cmod_propagation.cpp [moved from src/mesa/drivers/dri/i965/test_vec4_cmod_propagation.cpp with 100% similarity]
src/intel/compiler/test_vec4_copy_propagation.cpp [moved from src/mesa/drivers/dri/i965/test_vec4_copy_propagation.cpp with 100% similarity]
src/intel/compiler/test_vec4_register_coalesce.cpp [moved from src/mesa/drivers/dri/i965/test_vec4_register_coalesce.cpp with 100% similarity]
src/intel/compiler/test_vf_float_conversions.cpp [moved from src/mesa/drivers/dri/i965/test_vf_float_conversions.cpp with 100% similarity]
src/intel/isl/isl_storage_image.c
src/intel/tools/Makefile.am
src/intel/tools/disasm.c
src/intel/vulkan/Android.mk
src/intel/vulkan/Makefile.am
src/intel/vulkan/anv_pipeline.c
src/intel/vulkan/anv_private.h
src/mesa/drivers/dri/i965/.gitignore
src/mesa/drivers/dri/i965/Android.mk
src/mesa/drivers/dri/i965/Makefile.am
src/mesa/drivers/dri/i965/Makefile.sources
src/mesa/drivers/dri/i965/brw_clip.h
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_cs.c
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/i965/brw_ff_gs.h
src/mesa/drivers/dri/i965/brw_gs.c
src/mesa/drivers/dri/i965/brw_link.cpp
src/mesa/drivers/dri/i965/brw_misc_state.c
src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp
src/mesa/drivers/dri/i965/brw_program.c
src/mesa/drivers/dri/i965/brw_program.h
src/mesa/drivers/dri/i965/brw_program_cache.c
src/mesa/drivers/dri/i965/brw_sf.h
src/mesa/drivers/dri/i965/brw_tcs.c
src/mesa/drivers/dri/i965/brw_tes.c
src/mesa/drivers/dri/i965/brw_util.c
src/mesa/drivers/dri/i965/brw_vs.c
src/mesa/drivers/dri/i965/brw_wm.c
src/mesa/drivers/dri/i965/gen6_clip_state.c
src/mesa/drivers/dri/i965/gen6_wm_state.c
src/mesa/drivers/dri/i965/gen7_wm_state.c
src/mesa/drivers/dri/i965/gen8_depth_state.c

index 7e7c8ae..5297af2 100644 (file)
@@ -37,7 +37,7 @@ LOCAL_C_INCLUDES := \
        $(MESA_TOP)/src/gallium/include \
        $(MESA_TOP)/src/mapi \
        $(MESA_TOP)/src/mesa \
-       $(MESA_TOP)/src/mesa/drivers/dri/i965
+       $(MESA_TOP)/src/intel
 
 LOCAL_STATIC_LIBRARIES := libmesa_nir
 
similarity index 58%
rename from src/mesa/drivers/dri/i965/Android.gen.mk
rename to src/intel/Android.compiler.mk
index c2b8dae..8bbfb1c 100644 (file)
@@ -1,4 +1,7 @@
 #
+# Copyright (C) 2011 Intel Corporation
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# Copyright (C) 2010-2011 LunarG
 # Copyright (C) 2016 Linaro, Ltd., Rob Herring <robh@kernel.org>
 #
 # Permission is hereby granted, free of charge, to any person obtaining a
 # DEALINGS IN THE SOFTWARE.
 #
 
-ifeq ($(LOCAL_MODULE_CLASS),)
-LOCAL_MODULE_CLASS := SHARED_LIBRARIES
-endif
+# ---------------------------------------
+# Build libmesa_intel_compiler
+# ---------------------------------------
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := libmesa_intel_compiler
+LOCAL_MODULE_CLASS := STATIC_LIBRARIES
+
+LOCAL_SRC_FILES := \
+       $(COMPILER_FILES)
+
+LOCAL_C_INCLUDES := \
+       $(MESA_TOP)/src/intel \
+       $(MESA_TOP)/src/mapi \
+       $(MESA_TOP)/src/mesa \
+       $(MESA_TOP)/src/gallium/auxiliary \
+       $(MESA_TOP)/src/gallium/include \
+       $(call generated-sources-dir-for,STATIC_LIBRARIES,libmesa_glsl,,)/glsl \
+       $(call generated-sources-dir-for,STATIC_LIBRARIES,libmesa_nir,,)/nir \
+       $(MESA_TOP)/src/compiler/nir
+
+LOCAL_SHARED_LIBRARIES := \
+       libdrm_intel
 
 brw_nir_trig_workarounds_deps := \
-       $(LOCAL_PATH)/brw_nir_trig_workarounds.py \
+       $(LOCAL_PATH)/compiler/brw_nir_trig_workarounds.py \
        $(MESA_TOP)/src/compiler/nir/nir_algebraic.py
 
 intermediates := $(call local-generated-sources-dir)
 
-$(intermediates)/brw_nir_trig_workarounds.c: $(brw_nir_trig_workarounds_deps)
+$(intermediates)/compiler/brw_nir_trig_workarounds.c: $(brw_nir_trig_workarounds_deps)
        @mkdir -p $(dir $@)
        $(hide) PYTHONPATH=$(MESA_TOP)/src/compiler/nir $(MESA_PYTHON2) $< > $@
 
 LOCAL_STATIC_LIBRARIES = libmesa_genxml
 
 LOCAL_GENERATED_SOURCES += $(addprefix $(intermediates)/, \
-       $(i965_compiler_GENERATED_FILES))
+       $(COMPILER_GENERATED_FILES))
+
+LOCAL_GENERATED_SOURCES += $(MESA_GEN_GLSL_H)
+
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
index 7e578af..bc58b97 100644 (file)
@@ -25,8 +25,7 @@
 # ---------------------------------------
 
 LIBISL_GENX_COMMON_INCLUDES := \
-       $(MESA_TOP)/src/ \
-       $(MESA_TOP)/src/mesa/drivers/dri/i965
+       $(MESA_TOP)/src/
 
 # ---------------------------------------
 # Build libmesa_isl_gen4
@@ -176,7 +175,7 @@ LOCAL_C_INCLUDES := \
        $(MESA_TOP)/src/gallium/auxiliary \
        $(MESA_TOP)/src/mapi \
        $(MESA_TOP)/src/mesa \
-       $(MESA_TOP)/src/mesa/drivers/dri/i965 \
+       $(MESA_TOP)/src/intel
 
 LOCAL_EXPORT_C_INCLUDE_DIRS := $(MESA_TOP)/src/intel
 
index 147f5a7..be2ba2f 100644 (file)
@@ -27,6 +27,7 @@ include $(LOCAL_PATH)/Makefile.sources
 
 include $(LOCAL_PATH)/Android.blorp.mk
 include $(LOCAL_PATH)/Android.common.mk
+include $(LOCAL_PATH)/Android.compiler.mk
 include $(LOCAL_PATH)/Android.genxml.mk
 include $(LOCAL_PATH)/Android.isl.mk
 include $(LOCAL_PATH)/vulkan/Android.mk
index 9186b5c..8d852a0 100644 (file)
@@ -26,12 +26,15 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/include \
        -I$(top_builddir)/src \
        -I$(top_srcdir)/src \
+       -I$(top_builddir)/src/compiler/glsl \
+       -I$(top_srcdir)/src/compiler/glsl \
        -I$(top_builddir)/src/compiler/nir \
+       -I$(top_srcdir)/src/compiler/nir \
+       -I$(top_srcdir)/src/gtest/include \
        -I$(top_builddir)/src/intel \
        -I$(top_srcdir)/src/intel \
        -I$(top_srcdir)/src/mapi \
        -I$(top_srcdir)/src/mesa \
-       -I$(top_srcdir)/src/mesa/drivers/dri/i965 \
        -I$(top_srcdir)/src/gallium/auxiliary \
        -I$(top_srcdir)/src/gallium/include \
        $(INTEL_CFLAGS) \
@@ -54,6 +57,7 @@ EXTRA_DIST =
 
 include Makefile.blorp.am
 include Makefile.common.am
+include Makefile.compiler.am
 include Makefile.genxml.am
 include Makefile.isl.am
 
diff --git a/src/intel/Makefile.compiler.am b/src/intel/Makefile.compiler.am
new file mode 100644 (file)
index 0000000..b30c01a
--- /dev/null
@@ -0,0 +1,121 @@
+# Copyright 2015-2016 Intel Corporation
+#
+# 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 (including the next
+# paragraph) 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.
+
+noinst_LTLIBRARIES += compiler/libintel_compiler.la
+
+compiler_libintel_compiler_la_CPPFLAGS = \
+       -I$(top_builddir)/src/intel/compiler \
+       -I$(top_srcdir)/src/intel/compiler \
+       $(AM_CPPFLAGS)
+
+compiler_libintel_compiler_la_SOURCES = \
+       $(COMPILER_FILES) \
+       $(COMPILER_GENERATED_FILES)
+
+BUILT_SOURCES += $(COMPILER_GENERATED_FILES)
+
+compiler/brw_nir_trig_workarounds.c: compiler/brw_nir_trig_workarounds.py \
+                                     $(top_srcdir)/src/compiler/nir/nir_algebraic.py
+       $(MKDIR_GEN)
+       $(AM_V_GEN) PYTHONPATH=$(top_srcdir)/src/compiler/nir $(PYTHON2) $(PYTHON_FLAGS) $(srcdir)/compiler/brw_nir_trig_workarounds.py > $@ || ($(RM) $@; false)
+
+EXTRA_DIST += \
+       compiler/brw_nir_trig_workarounds.py
+
+# ----------------------------------------------------------------------------
+#  Tests
+# ----------------------------------------------------------------------------
+
+TEST_LIBS = \
+       compiler/libintel_compiler.la \
+       common/libintel_common.la \
+       $(top_builddir)/src/compiler/nir/libnir.la \
+       $(top_builddir)/src/util/libmesautil.la \
+       $(top_builddir)/src/intel/isl/libisl.la \
+       $(PTHREAD_LIBS) \
+       $(DLOPEN_LIBS)
+
+COMPILER_TESTS = \
+       compiler/test_fs_cmod_propagation \
+       compiler/test_fs_copy_propagation \
+       compiler/test_fs_saturate_propagation \
+       compiler/test_eu_compact \
+       compiler/test_eu_validate \
+       compiler/test_vf_float_conversions \
+       compiler/test_vec4_cmod_propagation \
+       compiler/test_vec4_copy_propagation \
+       compiler/test_vec4_register_coalesce
+
+TESTS += $(COMPILER_TESTS)
+check_PROGRAMS += $(COMPILER_TESTS)
+
+compiler_test_fs_cmod_propagation_SOURCES = \
+       compiler/test_fs_cmod_propagation.cpp
+compiler_test_fs_cmod_propagation_LDADD = \
+       $(top_builddir)/src/gtest/libgtest.la \
+       $(TEST_LIBS)
+
+compiler_test_fs_copy_propagation_SOURCES = \
+       compiler/test_fs_copy_propagation.cpp
+compiler_test_fs_copy_propagation_LDADD = \
+       $(top_builddir)/src/gtest/libgtest.la \
+       $(TEST_LIBS)
+
+compiler_test_fs_saturate_propagation_SOURCES = \
+       compiler/test_fs_saturate_propagation.cpp
+compiler_test_fs_saturate_propagation_LDADD = \
+       $(top_builddir)/src/gtest/libgtest.la \
+       $(TEST_LIBS)
+
+compiler_test_vf_float_conversions_SOURCES = \
+       compiler/test_vf_float_conversions.cpp
+compiler_test_vf_float_conversions_LDADD = \
+       $(top_builddir)/src/gtest/libgtest.la \
+       $(TEST_LIBS)
+
+compiler_test_vec4_register_coalesce_SOURCES = \
+       compiler/test_vec4_register_coalesce.cpp
+compiler_test_vec4_register_coalesce_LDADD = \
+       $(top_builddir)/src/gtest/libgtest.la \
+       $(TEST_LIBS)
+
+compiler_test_vec4_copy_propagation_SOURCES = \
+       compiler/test_vec4_copy_propagation.cpp
+compiler_test_vec4_copy_propagation_LDADD = \
+       $(top_builddir)/src/gtest/libgtest.la \
+       $(TEST_LIBS)
+
+compiler_test_vec4_cmod_propagation_SOURCES = \
+       compiler/test_vec4_cmod_propagation.cpp
+compiler_test_vec4_cmod_propagation_LDADD = \
+       $(top_builddir)/src/gtest/libgtest.la \
+       $(TEST_LIBS)
+
+compiler_test_eu_compact_SOURCES = \
+       compiler/test_eu_compact.c
+nodist_EXTRA_compiler_test_eu_compact_SOURCES = dummy.cpp
+compiler_test_eu_compact_LDADD = $(TEST_LIBS)
+
+compiler_test_eu_validate_SOURCES = \
+       compiler/test_eu_validate.cpp
+compiler_test_eu_validate_LDADD = \
+       $(top_builddir)/src/gtest/libgtest.la \
+       $(TEST_LIBS)
index 2403712..72a05aa 100644 (file)
@@ -16,6 +16,95 @@ COMMON_FILES = \
        common/gen_urb_config.c \
        common/gen_sample_positions.h
 
+COMPILER_FILES = \
+       compiler/brw_cfg.cpp \
+       compiler/brw_cfg.h \
+       compiler/brw_compiler.c \
+       compiler/brw_compiler.h \
+       compiler/brw_dead_control_flow.cpp \
+       compiler/brw_dead_control_flow.h \
+       compiler/brw_disasm.c \
+       compiler/brw_eu.c \
+       compiler/brw_eu_compact.c \
+       compiler/brw_eu_defines.h \
+       compiler/brw_eu_emit.c \
+       compiler/brw_eu.h \
+       compiler/brw_eu_util.c \
+       compiler/brw_eu_validate.c \
+       compiler/brw_fs_builder.h \
+       compiler/brw_fs_cmod_propagation.cpp \
+       compiler/brw_fs_combine_constants.cpp \
+       compiler/brw_fs_copy_propagation.cpp \
+       compiler/brw_fs.cpp \
+       compiler/brw_fs_cse.cpp \
+       compiler/brw_fs_dead_code_eliminate.cpp \
+       compiler/brw_fs_generator.cpp \
+       compiler/brw_fs.h \
+       compiler/brw_fs_live_variables.cpp \
+       compiler/brw_fs_live_variables.h \
+       compiler/brw_fs_lower_d2x.cpp \
+       compiler/brw_fs_lower_pack.cpp \
+       compiler/brw_fs_nir.cpp \
+       compiler/brw_fs_reg_allocate.cpp \
+       compiler/brw_fs_register_coalesce.cpp \
+       compiler/brw_fs_saturate_propagation.cpp \
+       compiler/brw_fs_sel_peephole.cpp \
+       compiler/brw_fs_surface_builder.cpp \
+       compiler/brw_fs_surface_builder.h \
+       compiler/brw_fs_validate.cpp \
+       compiler/brw_fs_visitor.cpp \
+       compiler/brw_inst.h \
+       compiler/brw_interpolation_map.c \
+       compiler/brw_ir_allocator.h \
+       compiler/brw_ir_fs.h \
+       compiler/brw_ir_vec4.h \
+       compiler/brw_nir.h \
+       compiler/brw_nir.c \
+       compiler/brw_nir_analyze_boolean_resolves.c \
+       compiler/brw_nir_attribute_workarounds.c \
+       compiler/brw_nir_intrinsics.c \
+       compiler/brw_nir_opt_peephole_ffma.c \
+       compiler/brw_nir_tcs_workarounds.c \
+       compiler/brw_packed_float.c \
+       compiler/brw_predicated_break.cpp \
+       compiler/brw_reg.h \
+       compiler/brw_schedule_instructions.cpp \
+       compiler/brw_shader.cpp \
+       compiler/brw_shader.h \
+       compiler/brw_vec4_builder.h \
+       compiler/brw_vec4_cmod_propagation.cpp \
+       compiler/brw_vec4_copy_propagation.cpp \
+       compiler/brw_vec4.cpp \
+       compiler/brw_vec4_cse.cpp \
+       compiler/brw_vec4_dead_code_eliminate.cpp \
+       compiler/brw_vec4_generator.cpp \
+       compiler/brw_vec4_gs_visitor.cpp \
+       compiler/brw_vec4_gs_visitor.h \
+       compiler/brw_vec4.h \
+       compiler/brw_vec4_live_variables.cpp \
+       compiler/brw_vec4_live_variables.h \
+       compiler/brw_vec4_nir.cpp \
+       compiler/brw_vec4_gs_nir.cpp \
+       compiler/brw_vec4_reg_allocate.cpp \
+       compiler/brw_vec4_surface_builder.cpp \
+       compiler/brw_vec4_surface_builder.h \
+       compiler/brw_vec4_tcs.cpp \
+       compiler/brw_vec4_tcs.h \
+       compiler/brw_vec4_tes.cpp \
+       compiler/brw_vec4_tes.h \
+       compiler/brw_vec4_visitor.cpp \
+       compiler/brw_vec4_vs_visitor.cpp \
+       compiler/brw_vec4_vs.h \
+       compiler/brw_vue_map.c \
+       compiler/brw_wm_iz.cpp \
+       compiler/gen6_gs_visitor.cpp \
+       compiler/gen6_gs_visitor.h \
+       compiler/intel_asm_annotation.c \
+       compiler/intel_asm_annotation.h
+
+COMPILER_GENERATED_FILES = \
+       compiler/brw_nir_trig_workarounds.c
+
 GENXML_GENERATED_FILES = \
        genxml/gen4_pack.h \
        genxml/gen45_pack.h \
index 08ce97d..0b2395d 100644 (file)
@@ -26,8 +26,8 @@
 #include "program/prog_instruction.h"
 
 #include "blorp_priv.h"
-#include "brw_compiler.h"
-#include "brw_nir.h"
+#include "compiler/brw_compiler.h"
+#include "compiler/brw_nir.h"
 
 void
 blorp_init(struct blorp_context *blorp, void *driver_ctx,
index 2c3b4e6..627528d 100644 (file)
@@ -27,7 +27,7 @@
 #include "util/format_rgb9e5.h"
 
 #include "blorp_priv.h"
-#include "brw_eu_defines.h"
+#include "compiler/brw_eu_defines.h"
 
 #include "compiler/nir/nir_builder.h"
 
index d9c03b1..c61ab08 100644 (file)
@@ -27,7 +27,7 @@
 #include <stdint.h>
 
 #include "compiler/nir/nir.h"
-#include "brw_compiler.h"
+#include "compiler/brw_compiler.h"
 
 #include "blorp.h"
 
diff --git a/src/intel/compiler/.gitignore b/src/intel/compiler/.gitignore
new file mode 100644 (file)
index 0000000..e844421
--- /dev/null
@@ -0,0 +1,10 @@
+brw_nir_trig_workarounds.c
+test_eu_compact
+test_eu_validate
+test_fs_cmod_propagation
+test_fs_copy_propagation
+test_fs_saturate_propagation
+test_vec4_cmod_propagation
+test_vec4_copy_propagation
+test_vec4_register_coalesce
+test_vf_float_conversions
index ffd03e4..4c56e78 100644 (file)
@@ -22,7 +22,7 @@
  */
 
 #include "isl_priv.h"
-#include "brw_compiler.h"
+#include "compiler/brw_compiler.h"
 
 bool
 isl_is_storage_image_format(enum isl_format format)
index 5f4d78d..3ef4f31 100644 (file)
@@ -29,8 +29,6 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/mapi \
        -I$(top_srcdir)/src/mesa \
-       -I$(top_srcdir)/src/mesa/drivers/dri/common \
-       -I$(top_srcdir)/src/mesa/drivers/dri/i965 \
        -I$(top_srcdir)/src/gallium/auxiliary \
        -I$(top_srcdir)/src/gallium/include \
        -I$(top_builddir)/src/intel \
@@ -38,7 +36,7 @@ AM_CPPFLAGS = \
 
 aubinator_DEPS = \
        $(top_builddir)/src/intel/common/libintel_common.la \
-       $(top_builddir)/src/mesa/drivers/dri/i965/libi965_compiler.la \
+       $(top_builddir)/src/intel/compiler/libintel_compiler.la \
        $(top_builddir)/src/util/libmesautil.la \
        $(PER_GEN_LIBS) \
        $(PTHREAD_LIBS) \
index 96c6ce2..62256d2 100644 (file)
@@ -23,8 +23,8 @@
 
 #include <stdlib.h>
 
-#include "brw_inst.h"
-#include "brw_eu.h"
+#include "compiler/brw_inst.h"
+#include "compiler/brw_eu.h"
 
 #include "gen_disasm.h"
 
index a6a7d26..69e4d0c 100644 (file)
@@ -31,9 +31,8 @@ VULKAN_COMMON_INCLUDES := \
        $(MESA_TOP)/src/gallium/auxiliary \
        $(MESA_TOP)/src/gallium/include \
        $(MESA_TOP)/src/mesa \
-       $(MESA_TOP)/src/mesa/drivers/dri/common \
-       $(MESA_TOP)/src/mesa/drivers/dri/i965 \
        $(MESA_TOP)/src/vulkan/wsi \
+       $(MESA_TOP)/src/intel \
        $(MESA_TOP)/src/intel/vulkan
 
 # libmesa_anv_entrypoints with header and dummy.c
@@ -220,7 +219,7 @@ LOCAL_WHOLE_STATIC_LIBRARIES := \
        libmesa_anv_gen75 \
        libmesa_anv_gen8 \
        libmesa_anv_gen9 \
-       libmesa_i965_compiler \
+       libmesa_intel_compiler \
        libmesa_anv_entrypoints
 
 LOCAL_SHARED_LIBRARIES := \
index 6c902b5..21ce95b 100644 (file)
@@ -56,8 +56,6 @@ AM_CPPFLAGS = \
        -I$(top_builddir)/src/compiler/nir \
        -I$(top_srcdir)/src/mapi \
        -I$(top_srcdir)/src/mesa \
-       -I$(top_srcdir)/src/mesa/drivers/dri/common \
-       -I$(top_srcdir)/src/mesa/drivers/dri/i965 \
        -I$(top_srcdir)/src/gallium/auxiliary \
        -I$(top_srcdir)/src/gallium/include \
        -I$(top_builddir)/src/intel \
@@ -123,7 +121,7 @@ VULKAN_LIB_DEPS += \
        libvulkan_common.la \
        $(top_builddir)/src/vulkan/libvulkan_util.la \
        $(top_builddir)/src/vulkan/libvulkan_wsi.la \
-       $(top_builddir)/src/mesa/drivers/dri/i965/libi965_compiler.la \
+       $(top_builddir)/src/intel/compiler/libintel_compiler.la \
        $(top_builddir)/src/compiler/nir/libnir.la \
        $(top_builddir)/src/util/libmesautil.la \
        $(top_builddir)/src/intel/common/libintel_common.la \
index dc65e26..6362c2d 100644 (file)
@@ -30,7 +30,7 @@
 #include "util/mesa-sha1.h"
 #include "common/gen_l3_config.h"
 #include "anv_private.h"
-#include "brw_nir.h"
+#include "compiler/brw_nir.h"
 #include "anv_nir.h"
 #include "spirv/nir_spirv.h"
 
index 2552226..3855416 100644 (file)
@@ -43,7 +43,7 @@
 
 #include "common/gen_device_info.h"
 #include "blorp/blorp.h"
-#include "brw_compiler.h"
+#include "compiler/brw_compiler.h"
 #include "util/macros.h"
 #include "util/list.h"
 #include "util/u_vector.h"
index a6ecc92..b806e74 100644 (file)
@@ -1,9 +1 @@
-brw_nir_trig_workarounds.c
 i965_symbols_test
-test_eu_compact
-test_vec4_copy_propagation
-test_vec4_register_coalesce
-test_vf_float_conversions
-test_fs_cmod_propagation
-test_fs_saturate_propagation
-test_vec4_cmod_propagation
index 7dea3c2..708851c 100644 (file)
@@ -152,32 +152,6 @@ include $(MESA_COMMON_MK)
 include $(BUILD_STATIC_LIBRARY)
 
 # ---------------------------------------
-# Build libmesa_i965_compiler
-# ---------------------------------------
-
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := libmesa_i965_compiler
-LOCAL_MODULE_CLASS := STATIC_LIBRARIES
-
-LOCAL_SRC_FILES := \
-       $(i965_compiler_FILES)
-
-LOCAL_C_INCLUDES := \
-       $(MESA_DRI_C_INCLUDES) \
-       $(MESA_TOP)/src/intel \
-       $(MESA_TOP)/src/compiler/nir \
-       $(call generated-sources-dir-for,STATIC_LIBRARIES,libmesa_nir,,)/nir \
-       $(call generated-sources-dir-for,STATIC_LIBRARIES,libmesa_glsl,,)/glsl
-
-LOCAL_SHARED_LIBRARIES := \
-       libdrm_intel
-
-include $(LOCAL_PATH)/Android.gen.mk
-include $(MESA_COMMON_MK)
-include $(BUILD_STATIC_LIBRARY)
-
-# ---------------------------------------
 # Build i965_dri
 # ---------------------------------------
 
@@ -209,9 +183,9 @@ LOCAL_WHOLE_STATIC_LIBRARIES := \
        $(MESA_DRI_WHOLE_STATIC_LIBRARIES) \
        $(I965_PERGEN_LIBS) \
        libmesa_intel_common \
-       libmesa_blorp \
        libmesa_isl \
-       libmesa_i965_compiler
+       libmesa_blorp \
+       libmesa_intel_compiler
 
 LOCAL_SHARED_LIBRARIES := \
        $(MESA_DRI_SHARED_LIBRARIES) \
index 9e922ac..a83e3a6 100644 (file)
@@ -44,11 +44,6 @@ AM_CFLAGS = \
 
 AM_CXXFLAGS = $(AM_CFLAGS)
 
-MKDIR_GEN = $(AM_V_at)$(MKDIR_P) $(@D)
-brw_nir_trig_workarounds.c: brw_nir_trig_workarounds.py $(top_srcdir)/src/compiler/nir/nir_algebraic.py
-       $(MKDIR_GEN)
-       $(AM_V_GEN) PYTHONPATH=$(top_srcdir)/src/compiler/nir $(PYTHON2) $(PYTHON_FLAGS) $(srcdir)/brw_nir_trig_workarounds.py > $@ || ($(RM) $@; false)
-
 I965_PERGEN_LIBS = \
        libi965_gen6.la \
        libi965_gen7.la \
@@ -73,7 +68,6 @@ libi965_gen9_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=90
 
 noinst_LTLIBRARIES = \
        libi965_dri.la \
-       libi965_compiler.la \
        $(I965_PERGEN_LIBS)
 
 libi965_dri_la_SOURCES = \
@@ -82,101 +76,18 @@ libi965_dri_la_SOURCES = \
 libi965_dri_la_LIBADD = \
        $(top_builddir)/src/intel/common/libintel_common.la \
        $(top_builddir)/src/intel/isl/libisl.la \
-       libi965_compiler.la \
+       $(top_builddir)/src/intel/compiler/libintel_compiler.la \
        $(top_builddir)/src/intel/blorp/libblorp.la \
        $(I965_PERGEN_LIBS) \
        $(INTEL_LIBS)
 
-libi965_compiler_la_SOURCES = \
-       $(i965_compiler_FILES) \
-       $(i965_compiler_GENERATED_FILES)
-
-BUILT_SOURCES = $(i965_compiler_GENERATED_FILES)
+BUILT_SOURCES = $(i965_oa_GENERATED_FILES)
 CLEANFILES = $(BUILT_SOURCES)
 
 EXTRA_DIST = \
-       brw_nir_trig_workarounds.py \
        brw_oa_hsw.xml \
        brw_oa.py
 
-TEST_LIBS = \
-       libi965_compiler.la \
-       $(I965_PERGEN_LIBS) \
-       $(top_builddir)/src/intel/common/libintel_common.la \
-       $(top_builddir)/src/compiler/nir/libnir.la \
-       $(top_builddir)/src/util/libmesautil.la \
-       $(top_builddir)/src/intel/isl/libisl.la \
-       $(PTHREAD_LIBS) \
-       $(DLOPEN_LIBS)
-
-TESTS = \
-       test_fs_cmod_propagation \
-       test_fs_copy_propagation \
-       test_fs_saturate_propagation \
-        test_eu_compact \
-       test_eu_validate \
-       test_vf_float_conversions \
-       test_vec4_cmod_propagation \
-        test_vec4_copy_propagation \
-        test_vec4_register_coalesce
-
-check_PROGRAMS = $(TESTS)
-
-test_fs_cmod_propagation_SOURCES = \
-       test_fs_cmod_propagation.cpp
-test_fs_cmod_propagation_LDADD = \
-       $(top_builddir)/src/gtest/libgtest.la \
-       $(TEST_LIBS)
-
-test_fs_copy_propagation_SOURCES = \
-       test_fs_copy_propagation.cpp
-test_fs_copy_propagation_LDADD = \
-       $(top_builddir)/src/gtest/libgtest.la \
-       $(TEST_LIBS)
-
-test_fs_saturate_propagation_SOURCES = \
-       test_fs_saturate_propagation.cpp
-test_fs_saturate_propagation_LDADD = \
-       $(top_builddir)/src/gtest/libgtest.la \
-       $(TEST_LIBS)
-
-test_vf_float_conversions_SOURCES = \
-       test_vf_float_conversions.cpp
-test_vf_float_conversions_LDADD = \
-       $(top_builddir)/src/gtest/libgtest.la \
-       $(TEST_LIBS)
-
-test_vec4_register_coalesce_SOURCES = \
-       test_vec4_register_coalesce.cpp
-test_vec4_register_coalesce_LDADD = \
-        $(top_builddir)/src/gtest/libgtest.la \
-        $(TEST_LIBS)
-
-test_vec4_copy_propagation_SOURCES = \
-       test_vec4_copy_propagation.cpp
-test_vec4_copy_propagation_LDADD = \
-        $(top_builddir)/src/gtest/libgtest.la \
-        $(TEST_LIBS)
-
-test_vec4_cmod_propagation_SOURCES = \
-       test_vec4_cmod_propagation.cpp
-test_vec4_cmod_propagation_LDADD = \
-       $(top_builddir)/src/gtest/libgtest.la \
-       $(TEST_LIBS)
-
-test_eu_compact_SOURCES = \
-       test_eu_compact.c
-nodist_EXTRA_test_eu_compact_SOURCES = dummy.cpp
-test_eu_compact_LDADD = $(TEST_LIBS)
-
-test_eu_validate_SOURCES = \
-       test_eu_validate.cpp
-test_eu_validate_LDADD = \
-       $(top_builddir)/src/gtest/libgtest.la \
-       $(TEST_LIBS)
-
-BUILT_SOURCES += $(i965_oa_GENERATED_FILES)
-
 # Note: we avoid using a multi target rule here and outputting both the
 # .c and .h files in one go so we don't hit problems with parallel
 # make and multiple invocations of the same script trying to write
@@ -185,3 +96,4 @@ brw_oa_%.h: brw_oa_%.xml brw_oa.py Makefile.am
        $(PYTHON2) $(PYTHON_FLAGS) $(srcdir)/brw_oa.py --header=$(builddir)/brw_oa_$(*).h --chipset="$(*)" $(srcdir)/brw_oa_$(*).xml
 brw_oa_%.c: brw_oa_%.xml brw_oa.py Makefile.am
        $(PYTHON2) $(PYTHON_FLAGS) $(srcdir)/brw_oa.py --code=$(builddir)/brw_oa_$(*).c --chipset="$(*)" $(srcdir)/brw_oa_$(*).xml
+
index 0e9291d..6456df5 100644 (file)
@@ -1,94 +1,3 @@
-i965_compiler_FILES = \
-       brw_cfg.cpp \
-       brw_cfg.h \
-       brw_compiler.c \
-       brw_compiler.h \
-       brw_dead_control_flow.cpp \
-       brw_dead_control_flow.h \
-       brw_disasm.c \
-       brw_eu.c \
-       brw_eu_compact.c \
-       brw_eu_defines.h \
-       brw_eu_emit.c \
-       brw_eu.h \
-       brw_eu_util.c \
-       brw_eu_validate.c \
-       brw_fs_builder.h \
-       brw_fs_cmod_propagation.cpp \
-       brw_fs_combine_constants.cpp \
-       brw_fs_copy_propagation.cpp \
-       brw_fs.cpp \
-       brw_fs_cse.cpp \
-       brw_fs_dead_code_eliminate.cpp \
-       brw_fs_generator.cpp \
-       brw_fs.h \
-       brw_fs_live_variables.cpp \
-       brw_fs_live_variables.h \
-       brw_fs_lower_d2x.cpp \
-       brw_fs_lower_pack.cpp \
-       brw_fs_nir.cpp \
-       brw_fs_reg_allocate.cpp \
-       brw_fs_register_coalesce.cpp \
-       brw_fs_saturate_propagation.cpp \
-       brw_fs_sel_peephole.cpp \
-       brw_fs_surface_builder.cpp \
-       brw_fs_surface_builder.h \
-       brw_fs_validate.cpp \
-       brw_fs_visitor.cpp \
-       brw_inst.h \
-       brw_interpolation_map.c \
-       brw_ir_allocator.h \
-       brw_ir_fs.h \
-       brw_ir_vec4.h \
-       brw_nir.h \
-       brw_nir.c \
-       brw_nir_analyze_boolean_resolves.c \
-       brw_nir_attribute_workarounds.c \
-       brw_nir_intrinsics.c \
-       brw_nir_opt_peephole_ffma.c \
-       brw_nir_tcs_workarounds.c \
-       brw_packed_float.c \
-       brw_predicated_break.cpp \
-       brw_reg.h \
-       brw_schedule_instructions.cpp \
-       brw_shader.cpp \
-       brw_shader.h \
-       brw_util.c \
-       brw_util.h \
-       brw_vec4_builder.h \
-       brw_vec4_cmod_propagation.cpp \
-       brw_vec4_copy_propagation.cpp \
-       brw_vec4.cpp \
-       brw_vec4_cse.cpp \
-       brw_vec4_dead_code_eliminate.cpp \
-       brw_vec4_generator.cpp \
-       brw_vec4_gs_visitor.cpp \
-       brw_vec4_gs_visitor.h \
-       brw_vec4.h \
-       brw_vec4_live_variables.cpp \
-       brw_vec4_live_variables.h \
-       brw_vec4_nir.cpp \
-       brw_vec4_gs_nir.cpp \
-       brw_vec4_reg_allocate.cpp \
-       brw_vec4_surface_builder.cpp \
-       brw_vec4_surface_builder.h \
-       brw_vec4_tcs.cpp \
-       brw_vec4_tcs.h \
-       brw_vec4_tes.cpp \
-       brw_vec4_tes.h \
-       brw_vec4_visitor.cpp \
-       brw_vec4_vs_visitor.cpp \
-       brw_vec4_vs.h \
-       brw_vue_map.c \
-       brw_wm_iz.cpp \
-       gen6_gs_visitor.cpp \
-       gen6_gs_visitor.h \
-       intel_asm_annotation.c \
-       intel_asm_annotation.h
-
-i965_compiler_GENERATED_FILES = \
-       brw_nir_trig_workarounds.c
-
 i965_FILES = \
        brw_binding_tables.c \
        brw_blorp.c \
@@ -158,6 +67,8 @@ i965_FILES = \
        brw_tes_surface_state.c \
        brw_tex_layout.c \
        brw_urb.c \
+       brw_util.c \
+       brw_util.h \
        brw_vs.c \
        brw_vs.h \
        brw_vs_state.c \
index a8ee394..9dc1f12 100644 (file)
@@ -34,7 +34,7 @@
 
 
 #include "brw_context.h"
-#include "brw_eu.h"
+#include "compiler/brw_eu.h"
 
 /* Initial 3 verts, plus at most 6 additional verts from intersections
  * with fixed planes, plus at most 8 additional verts from intersections
index c67dc7c..024f4b5 100644 (file)
@@ -37,7 +37,7 @@
 #include "main/macros.h"
 #include "main/mtypes.h"
 #include "brw_structs.h"
-#include "brw_compiler.h"
+#include "compiler/brw_compiler.h"
 #include "intel_aub.h"
 
 #include "isl/isl.h"
index 1653ad5..eaa7381 100644 (file)
@@ -28,7 +28,7 @@
 #include "intel_mipmap_tree.h"
 #include "brw_state.h"
 #include "intel_batchbuffer.h"
-#include "brw_nir.h"
+#include "compiler/brw_nir.h"
 #include "brw_program.h"
 #include "compiler/glsl/ir_uniform.h"
 
index beb20aa..b7860ae 100644 (file)
@@ -43,7 +43,7 @@
 #include "brw_blorp.h"
 #include "brw_draw.h"
 #include "brw_defines.h"
-#include "brw_eu_defines.h"
+#include "compiler/brw_eu_defines.h"
 #include "brw_context.h"
 #include "brw_state.h"
 
index e952b64..bac2730 100644 (file)
@@ -35,7 +35,7 @@
 
 
 #include "brw_context.h"
-#include "brw_eu.h"
+#include "compiler/brw_eu.h"
 
 #define MAX_GS_VERTS (4)
 
index 412ea97..b8434a8 100644 (file)
@@ -31,7 +31,7 @@
 #include "brw_context.h"
 #include "brw_state.h"
 #include "brw_ff_gs.h"
-#include "brw_nir.h"
+#include "compiler/brw_nir.h"
 #include "brw_program.h"
 #include "compiler/glsl/ir_uniform.h"
 
index e124f92..7c10a40 100644 (file)
@@ -22,7 +22,7 @@
  */
 
 #include "brw_context.h"
-#include "brw_nir.h"
+#include "compiler/brw_nir.h"
 #include "brw_program.h"
 #include "compiler/glsl/ir.h"
 #include "compiler/glsl/ir_optimization.h"
index c06c40e..84f0c18 100644 (file)
@@ -38,7 +38,7 @@
 #include "brw_context.h"
 #include "brw_state.h"
 #include "brw_defines.h"
-#include "brw_eu_defines.h"
+#include "compiler/brw_eu_defines.h"
 
 #include "main/framebuffer.h"
 #include "main/fbobject.h"
index 024cf79..50bc1d0 100644 (file)
@@ -21,8 +21,7 @@
  * IN THE SOFTWARE.
  */
 
-#include "brw_nir.h"
-#include "brw_shader.h"
+#include "compiler/brw_nir.h"
 #include "compiler/glsl/ir_uniform.h"
 
 static void
index 7767e54..57c4cd4 100644 (file)
@@ -43,7 +43,7 @@
 
 #include "brw_program.h"
 #include "brw_context.h"
-#include "brw_nir.h"
+#include "compiler/brw_nir.h"
 #include "brw_defines.h"
 #include "intel_batchbuffer.h"
 
index 687b554..2e9f121 100644 (file)
@@ -24,7 +24,7 @@
 #ifndef BRW_PROGRAM_H
 #define BRW_PROGRAM_H
 
-#include "brw_compiler.h"
+#include "compiler/brw_compiler.h"
 
 #ifdef __cplusplus
 extern "C" {
index 0ff4683..6bf26f3 100644 (file)
@@ -51,7 +51,7 @@
 #include "brw_gs.h"
 #include "brw_cs.h"
 #include "brw_program.h"
-#include "brw_eu.h"
+#include "compiler/brw_eu.h"
 
 #define FILE_DEBUG_FLAG DEBUG_STATE
 
index c6840dd..f372656 100644 (file)
@@ -36,7 +36,7 @@
 
 #include "program/program.h"
 #include "brw_context.h"
-#include "brw_eu.h"
+#include "compiler/brw_eu.h"
 
 
 #define SF_POINTS    0
index 2bef1be..5acb77c 100644 (file)
@@ -28,7 +28,7 @@
  */
 
 #include "brw_context.h"
-#include "brw_nir.h"
+#include "compiler/brw_nir.h"
 #include "brw_program.h"
 #include "brw_state.h"
 #include "program/prog_parameter.h"
index 8313d38..8309315 100644 (file)
@@ -28,7 +28,7 @@
  */
 
 #include "brw_context.h"
-#include "brw_nir.h"
+#include "compiler/brw_nir.h"
 #include "brw_program.h"
 #include "brw_state.h"
 #include "program/prog_parameter.h"
index 811932a..90aff43 100644 (file)
@@ -32,7 +32,7 @@
 
 #include "brw_util.h"
 #include "brw_defines.h"
-#include "brw_eu_defines.h"
+#include "compiler/brw_eu_defines.h"
 
 GLuint brw_translate_blend_equation( GLenum mode )
 {
index a9c474a..c8be7c4 100644 (file)
@@ -38,7 +38,7 @@
 #include "brw_state.h"
 #include "program/prog_print.h"
 #include "program/prog_parameter.h"
-#include "brw_nir.h"
+#include "compiler/brw_nir.h"
 #include "brw_program.h"
 
 #include "util/ralloc.h"
index c1f207e..3342e71 100644 (file)
@@ -35,7 +35,7 @@
 #include "program/program.h"
 #include "intel_mipmap_tree.h"
 #include "intel_image.h"
-#include "brw_nir.h"
+#include "compiler/brw_nir.h"
 #include "brw_program.h"
 
 #include "util/ralloc.h"
index 0433d65..23d969b 100644 (file)
@@ -28,7 +28,7 @@
 #include "brw_context.h"
 #include "brw_state.h"
 #include "brw_defines.h"
-#include "brw_eu_defines.h"
+#include "compiler/brw_eu_defines.h"
 #include "brw_util.h"
 #include "intel_batchbuffer.h"
 #include "main/fbobject.h"
index f155e40..cda7c11 100644 (file)
@@ -28,7 +28,7 @@
 #include "brw_context.h"
 #include "brw_state.h"
 #include "brw_defines.h"
-#include "brw_eu_defines.h"
+#include "compiler/brw_eu_defines.h"
 #include "brw_util.h"
 #include "brw_wm.h"
 #include "program/program.h"
index 1d9e04e..1c33db4 100644 (file)
@@ -25,7 +25,7 @@
 #include "brw_context.h"
 #include "brw_state.h"
 #include "brw_defines.h"
-#include "brw_eu_defines.h"
+#include "compiler/brw_eu_defines.h"
 #include "brw_util.h"
 #include "brw_wm.h"
 #include "program/program.h"
index 0d9ea68..2a19b79 100644 (file)
@@ -28,7 +28,7 @@
 #include "brw_context.h"
 #include "brw_state.h"
 #include "brw_defines.h"
-#include "brw_eu_defines.h"
+#include "compiler/brw_eu_defines.h"
 #include "brw_wm.h"
 #include "main/framebuffer.h"