1 # Copyright © 2017 Intel Corporation
3 # Permission is hereby granted, free of charge, to any person obtaining a copy
4 # of this software and associated documentation files (the "Software"), to deal
5 # in the Software without restriction, including without limitation the rights
6 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 # copies of the Software, and to permit persons to whom the Software is
8 # furnished to do so, subject to the following conditions:
10 # The above copyright notice and this permission notice shall be included in
11 # all copies or substantial portions of the Software.
13 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
41 'r300_render_stencilref.c',
42 'r300_render_translate.c',
44 'r300_screen_buffer.c',
45 'r300_screen_buffer.h',
48 'r300_shader_semantics.h',
50 'r300_state_derived.c',
51 'r300_state_inlines.h',
53 'r300_texture_desc.c',
54 'r300_texture_desc.h',
63 'compiler/memory_pool.c',
64 'compiler/memory_pool.h',
65 'compiler/r300_fragprog.c',
66 'compiler/r300_fragprog_emit.c',
67 'compiler/r300_fragprog.h',
68 'compiler/r300_fragprog_swizzle.c',
69 'compiler/r300_fragprog_swizzle.h',
70 'compiler/r3xx_fragprog.c',
71 'compiler/r3xx_vertprog.c',
72 'compiler/r3xx_vertprog_dump.c',
73 'compiler/r500_fragprog.c',
74 'compiler/r500_fragprog_emit.c',
75 'compiler/r500_fragprog.h',
76 'compiler/radeon_code.c',
77 'compiler/radeon_code.h',
78 'compiler/radeon_compiler.c',
79 'compiler/radeon_compiler.h',
80 'compiler/radeon_compiler_util.c',
81 'compiler/radeon_compiler_util.h',
82 'compiler/radeon_dataflow.c',
83 'compiler/radeon_dataflow_deadcode.c',
84 'compiler/radeon_dataflow.h',
85 'compiler/radeon_dataflow_swizzles.c',
86 'compiler/radeon_emulate_branches.c',
87 'compiler/radeon_emulate_branches.h',
88 'compiler/radeon_emulate_loops.c',
89 'compiler/radeon_emulate_loops.h',
90 'compiler/radeon_inline_literals.c',
91 'compiler/radeon_list.c',
92 'compiler/radeon_list.h',
93 'compiler/radeon_opcodes.c',
94 'compiler/radeon_opcodes.h',
95 'compiler/radeon_optimize.c',
96 'compiler/radeon_pair_dead_sources.c',
97 'compiler/radeon_pair_regalloc.c',
98 'compiler/radeon_pair_schedule.c',
99 'compiler/radeon_pair_translate.c',
100 'compiler/radeon_program_alu.c',
101 'compiler/radeon_program_alu.h',
102 'compiler/radeon_program.c',
103 'compiler/radeon_program_constants.h',
104 'compiler/radeon_program.h',
105 'compiler/radeon_program_pair.c',
106 'compiler/radeon_program_pair.h',
107 'compiler/radeon_program_print.c',
108 'compiler/radeon_program_tex.c',
109 'compiler/radeon_program_tex.h',
110 'compiler/radeon_regalloc.h',
111 'compiler/radeon_remove_constants.c',
112 'compiler/radeon_remove_constants.h',
113 'compiler/radeon_rename_regs.c',
114 'compiler/radeon_rename_regs.h',
115 'compiler/radeon_swizzle.h',
116 'compiler/radeon_variable.c',
117 'compiler/radeon_variable.h',
118 'compiler/radeon_vert_fc.c',
121 libr300 = static_library(
124 include_directories : [
125 inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_gallium_drivers,
128 gnu_symbol_visibility : 'hidden',
129 dependencies : [dep_libdrm_radeon, dep_llvm],
132 driver_r300 = declare_dependency(
133 compile_args : '-DGALLIUM_R300',
134 link_with : [libr300, libradeonwinsys],
139 'r300_compiler_test',
141 'r300_compiler_test',
143 'compiler/tests/r300_compiler_tests.c',
144 'compiler/tests/radeon_compiler_optimize_tests.c',
145 'compiler/tests/radeon_compiler_regalloc_tests.c',
146 'compiler/tests/radeon_compiler_util_tests.c',
147 'compiler/tests/rc_test_helpers.c',
148 'compiler/tests/unit_test.c',
151 '-DTEST_PATH="@0@"'.format(
152 join_paths(meson.current_source_dir(), 'compiler', 'tests')
155 include_directories : [
156 inc_src, inc_include, inc_gallium, inc_gallium_aux,
157 include_directories('compiler'),
159 link_with : [libr300, libgallium],
160 dependencies : [dep_m, dep_clock, dep_dl, dep_unwind, idep_mesautil],