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
22 'brw_binding_tables.c',
30 'brw_conditional_render.c',
45 'brw_generate_mipmap.c',
48 'brw_gs_surface_state.c',
53 'brw_multisample_state.h',
54 'brw_nir_uniforms.cpp',
55 'brw_object_purgeable.c',
57 'brw_performance_query.h',
58 'brw_performance_query.c',
59 'brw_performance_query_mdapi.c',
60 'brw_performance_query_metrics.h',
63 'brw_program_binary.c',
64 'brw_program_cache.c',
65 'brw_primitive_restart.c',
72 'brw_surface_formats.c',
75 'brw_tcs_surface_state.c',
77 'brw_tes_surface_state.c',
83 'brw_vs_surface_state.c',
86 'brw_wm_surface_state.c',
89 'gen6_constant_state.c',
90 'gen6_multisample_state.c',
92 'gen6_sampler_state.c',
99 'gen8_multisample_state.c',
102 'intel_batchbuffer.c',
103 'intel_batchbuffer.h',
106 'intel_buffer_objects.c',
107 'intel_buffer_objects.h',
110 'intel_copy_image.c',
111 'intel_extensions.c',
115 'intel_mipmap_tree.c',
116 'intel_mipmap_tree.h',
117 'intel_pixel_bitmap.c',
119 'intel_pixel_copy.c',
120 'intel_pixel_draw.c',
122 'intel_pixel_read.c',
131 'intel_tex_validate.c',
137 foreach v : ['40', '45', '50', '60', '70', '75', '80', '90', '100', '110']
138 i965_gen_libs += static_library(
139 'i965_gen@0@'.format(v),
140 ['genX_blorp_exec.c', 'genX_boilerplate.h', 'genX_pipe_control.c',
141 'genX_state_upload.c', gen_xml_pack],
142 include_directories : [inc_common, inc_intel, inc_dri_common],
144 c_vis_args, no_override_init_args, c_sse2_args,
145 '-DGEN_VERSIONx10=@0@'.format(v),
147 dependencies : [dep_libdrm, idep_nir_headers],
155 'sklgt2', 'sklgt3', 'sklgt4',
162 i965_hw_metrics_xml_files = []
163 foreach hw : i965_hw_metrics
164 i965_hw_metrics_xml_files += 'brw_oa_@0@.xml'.format(hw)
167 i965_oa_sources = custom_target(
169 input : i965_hw_metrics_xml_files,
170 output : [ 'brw_oa_metrics.c', 'brw_oa_metrics.h' ],
172 prog_python, files('brw_oa.py'),
173 '--code', '@OUTPUT0@', '--header', '@OUTPUT1@',
178 libi965 = static_library(
180 [files_i965, i965_oa_sources, ir_expression_operation_h,
182 include_directories : [
183 inc_common, inc_intel, inc_dri_common, inc_util, inc_include,
185 c_args : [c_vis_args, no_override_init_args, c_sse2_args],
186 cpp_args : [cpp_vis_args, c_sse2_args],
188 i965_gen_libs, libintel_common, libintel_dev, libisl, libintel_compiler,
191 dependencies : [dep_libdrm, dep_valgrind, idep_nir_headers],
194 dri_drivers += libi965
195 dri_link += 'i965_dri.so'