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',
47 'brw_gs_surface_state.c',
52 'brw_multisample_state.h',
53 'brw_nir_uniforms.cpp',
54 'brw_object_purgeable.c',
56 'brw_performance_query.h',
57 'brw_performance_query.c',
60 'brw_program_binary.c',
61 'brw_program_cache.c',
62 'brw_primitive_restart.c',
69 'brw_surface_formats.c',
72 'brw_tcs_surface_state.c',
74 'brw_tes_surface_state.c',
80 'brw_vs_surface_state.c',
83 'brw_wm_surface_state.c',
86 'gen6_constant_state.c',
88 'gen6_multisample_state.c',
90 'gen6_sampler_state.c',
98 'gen8_multisample_state.c',
101 'intel_batchbuffer.c',
102 'intel_batchbuffer.h',
105 'intel_buffer_objects.c',
106 'intel_buffer_objects.h',
109 'intel_copy_image.c',
110 'intel_extensions.c',
114 'intel_mipmap_tree.c',
115 'intel_mipmap_tree.h',
116 'intel_pixel_bitmap.c',
118 'intel_pixel_copy.c',
119 'intel_pixel_draw.c',
121 'intel_pixel_read.c',
130 'intel_tex_validate.c',
131 'intel_tiled_memcpy.c',
132 'intel_tiled_memcpy.h',
138 foreach v : ['40', '45', '50', '60', '70', '75', '80', '90', '100']
139 _lib = static_library(
140 'libi965_gen@0@'.format(v),
141 ['genX_blorp_exec.c', 'genX_state_upload.c', nir_opcodes_h, gen_xml_pack],
142 include_directories : [inc_common, inc_intel, inc_dri_common],
144 c_vis_args, no_override_init_args, '-msse2',
145 '-DGEN_VERSIONx10=@0@'.format(v),
147 dependencies : [dep_libdrm],
149 i965_gen_libs += _lib
152 oa_generator = generator(
155 '@CURRENT_SOURCE_DIR@/brw_oa.py', '@INPUT@', '--chipset', '@EXTRA_ARGS@',
156 '--code', '@OUTPUT0@', '--header', '@OUTPUT1@',
158 output : ['@BASENAME@.c', '@BASENAME@.h'],
162 foreach hw : ['hsw', 'bdw', 'chv', 'sklgt2', 'sklgt3', 'sklgt4', 'bxt',
163 'kblgt2', 'kblgt3', 'glk', 'cflgt2', 'cflgt3']
164 _xml = 'brw_oa_@0@.xml'.format(hw)
165 i965_oa_sources += oa_generator.process(_xml, extra_args : hw)
168 libi965 = static_library(
170 [files_i965, i965_oa_sources, nir_opcodes_h, ir_expression_operation_h,
172 include_directories : [
173 inc_common, inc_intel, inc_dri_common, inc_util, inc_drm_uapi, inc_nir,
175 c_args : [c_vis_args, no_override_init_args, '-msse2'],
176 cpp_args : [cpp_vis_args, '-msse2'],
178 i965_gen_libs, libintel_common, libisl, libintel_compiler, libblorp,
180 dependencies : [dep_libdrm, dep_valgrind],
183 dri_drivers += libi965
184 dri_link += 'i965_dri.so'