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
23 'compute_memory_pool.c',
24 'compute_memory_pool.h',
28 'evergreen_compute.c',
29 'evergreen_compute.h',
30 'evergreen_compute_internal.h',
32 'evergreen_hw_context.c',
50 'r600_state_common.c',
55 'r600_buffer_common.c',
73 'sb/sb_bc_builder.cpp',
74 'sb/sb_bc_decoder.cpp',
76 'sb/sb_bc_finalize.cpp',
78 'sb/sb_bc_parser.cpp',
81 'sb/sb_dce_cleanup.cpp',
88 'sb/sb_if_conversion.cpp',
97 'sb/sb_ra_checker.cpp',
98 'sb/sb_ra_coalesce.cpp',
104 'sb/sb_ssa_builder.cpp',
105 'sb/sb_valtable.cpp',
108 egd_tables_h = custom_target(
110 input : ['egd_tables.py', 'evergreend.h'],
111 output : 'egd_tables.h',
112 command : [prog_python, '@INPUT@'],
117 if with_gallium_opencl
118 r600_c_args += '-DHAVE_OPENCL'
121 libr600 = static_library(
123 [files_r600, egd_tables_h],
124 c_args : [c_vis_args, r600_c_args, '-Wstrict-overflow=0'],
125 cpp_args : [cpp_vis_args],
126 include_directories : [
127 inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_amd_common,
130 dependencies: [dep_libdrm_radeon, dep_elf, dep_llvm],
133 driver_r600 = declare_dependency(
134 compile_args : '-DGALLIUM_R600',
135 link_with : [libr600, libradeonwinsys],