$(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
#
+# 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)
# ---------------------------------------
LIBISL_GENX_COMMON_INCLUDES := \
- $(MESA_TOP)/src/ \
- $(MESA_TOP)/src/mesa/drivers/dri/i965
+ $(MESA_TOP)/src/
# ---------------------------------------
# Build libmesa_isl_gen4
$(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
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
-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) \
include Makefile.blorp.am
include Makefile.common.am
+include Makefile.compiler.am
include Makefile.genxml.am
include Makefile.isl.am
--- /dev/null
+# 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)
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 \
#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,
#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"
#include <stdint.h>
#include "compiler/nir/nir.h"
-#include "brw_compiler.h"
+#include "compiler/brw_compiler.h"
#include "blorp.h"
--- /dev/null
+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
*/
#include "isl_priv.h"
-#include "brw_compiler.h"
+#include "compiler/brw_compiler.h"
bool
isl_is_storage_image_format(enum isl_format format)
-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 \
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) \
#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"
$(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
libmesa_anv_gen75 \
libmesa_anv_gen8 \
libmesa_anv_gen9 \
- libmesa_i965_compiler \
+ libmesa_intel_compiler \
libmesa_anv_entrypoints
LOCAL_SHARED_LIBRARIES := \
-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 \
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 \
#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"
#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"
-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
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
# ---------------------------------------
$(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) \
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 \
noinst_LTLIBRARIES = \
libi965_dri.la \
- libi965_compiler.la \
$(I965_PERGEN_LIBS)
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
$(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
+
-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 \
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 \
#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
#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"
#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"
#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"
#include "brw_context.h"
-#include "brw_eu.h"
+#include "compiler/brw_eu.h"
#define MAX_GS_VERTS (4)
#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"
*/
#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"
#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"
* IN THE SOFTWARE.
*/
-#include "brw_nir.h"
-#include "brw_shader.h"
+#include "compiler/brw_nir.h"
#include "compiler/glsl/ir_uniform.h"
static void
#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"
#ifndef BRW_PROGRAM_H
#define BRW_PROGRAM_H
-#include "brw_compiler.h"
+#include "compiler/brw_compiler.h"
#ifdef __cplusplus
extern "C" {
#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
#include "program/program.h"
#include "brw_context.h"
-#include "brw_eu.h"
+#include "compiler/brw_eu.h"
#define SF_POINTS 0
*/
#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"
*/
#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"
#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 )
{
#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"
#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"
#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"
#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"
#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"
#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"