intel: decoder: unify MI_BB_START field naming
[mesa.git] / src / intel / Makefile.compiler.am
1 # Copyright 2015-2016 Intel Corporation
2 #
3 # Permission is hereby granted, free of charge, to any person obtaining a
4 # copy of this software and associated documentation files (the "Software"),
5 # to deal in the Software without restriction, including without limitation
6 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
7 # and/or sell copies of the Software, and to permit persons to whom the
8 # Software is furnished to do so, subject to the following conditions:
9 #
10 # The above copyright notice and this permission notice (including the next
11 # paragraph) shall be included in all copies or substantial portions of the
12 # Software.
13 #
14 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 # IN THE SOFTWARE.
21
22 noinst_LTLIBRARIES += compiler/libintel_compiler.la
23
24 compiler_libintel_compiler_la_CPPFLAGS = \
25 -I$(top_builddir)/src/intel/compiler \
26 -I$(top_srcdir)/src/intel/compiler \
27 $(AM_CPPFLAGS)
28
29 compiler_libintel_compiler_la_SOURCES = \
30 $(COMPILER_FILES) \
31 $(COMPILER_GENERATED_FILES)
32
33 BUILT_SOURCES += $(COMPILER_GENERATED_FILES)
34
35 compiler/brw_nir_trig_workarounds.c: compiler/brw_nir_trig_workarounds.py \
36 $(top_srcdir)/src/compiler/nir/nir_algebraic.py
37 $(MKDIR_GEN)
38 $(AM_V_GEN) $(PYTHON2) $(PYTHON_FLAGS) $(srcdir)/compiler/brw_nir_trig_workarounds.py -p $(top_srcdir)/src/compiler/nir > $@ || ($(RM) $@; false)
39
40 EXTRA_DIST += \
41 compiler/brw_nir_trig_workarounds.py
42
43 # ----------------------------------------------------------------------------
44 # Tests
45 # ----------------------------------------------------------------------------
46
47 TEST_LIBS = \
48 $(top_builddir)/src/gtest/libgtest.la \
49 compiler/libintel_compiler.la \
50 common/libintel_common.la \
51 dev/libintel_dev.la \
52 $(top_builddir)/src/compiler/nir/libnir.la \
53 $(top_builddir)/src/intel/isl/libisl.la \
54 $(top_builddir)/src/util/libmesautil.la \
55 $(PTHREAD_LIBS) \
56 $(DLOPEN_LIBS)
57
58 COMPILER_TESTS = \
59 compiler/test_fs_cmod_propagation \
60 compiler/test_fs_copy_propagation \
61 compiler/test_fs_saturate_propagation \
62 compiler/test_eu_compact \
63 compiler/test_eu_validate \
64 compiler/test_vf_float_conversions \
65 compiler/test_vec4_cmod_propagation \
66 compiler/test_vec4_copy_propagation \
67 compiler/test_vec4_register_coalesce
68
69 TESTS += $(COMPILER_TESTS)
70 check_PROGRAMS += $(COMPILER_TESTS)
71
72 compiler_test_fs_cmod_propagation_SOURCES = \
73 compiler/test_fs_cmod_propagation.cpp
74 compiler_test_fs_cmod_propagation_LDADD = $(TEST_LIBS)
75
76 compiler_test_fs_copy_propagation_SOURCES = \
77 compiler/test_fs_copy_propagation.cpp
78 compiler_test_fs_copy_propagation_LDADD = $(TEST_LIBS)
79
80 compiler_test_fs_saturate_propagation_SOURCES = \
81 compiler/test_fs_saturate_propagation.cpp
82 compiler_test_fs_saturate_propagation_LDADD = $(TEST_LIBS)
83
84 compiler_test_vf_float_conversions_SOURCES = \
85 compiler/test_vf_float_conversions.cpp
86 compiler_test_vf_float_conversions_LDADD = $(TEST_LIBS)
87
88 compiler_test_vec4_register_coalesce_SOURCES = \
89 compiler/test_vec4_register_coalesce.cpp
90 compiler_test_vec4_register_coalesce_LDADD = $(TEST_LIBS)
91
92 compiler_test_vec4_copy_propagation_SOURCES = \
93 compiler/test_vec4_copy_propagation.cpp
94 compiler_test_vec4_copy_propagation_LDADD = $(TEST_LIBS)
95
96 compiler_test_vec4_cmod_propagation_SOURCES = \
97 compiler/test_vec4_cmod_propagation.cpp
98 compiler_test_vec4_cmod_propagation_LDADD = $(TEST_LIBS)
99
100 # Strictly speaking this is neither a C++ test nor using gtest - we can address
101 # address that at a later point. Until then, this allows us a to simplify things.
102 compiler_test_eu_compact_SOURCES = \
103 compiler/test_eu_compact.cpp
104 compiler_test_eu_compact_LDADD = $(TEST_LIBS)
105
106 compiler_test_eu_validate_SOURCES = \
107 compiler/test_eu_validate.cpp
108 compiler_test_eu_validate_LDADD = $(TEST_LIBS)