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_cache.c',
61 'brw_primitive_restart.c',
68 'brw_surface_formats.c',
71 'brw_tcs_surface_state.c',
73 'brw_tes_surface_state.c',
79 'brw_vs_surface_state.c',
82 'brw_wm_surface_state.c',
85 'gen6_constant_state.c',
87 'gen6_multisample_state.c',
89 'gen6_sampler_state.c',
97 'gen8_multisample_state.c',
100 'intel_batchbuffer.c',
101 'intel_batchbuffer.h',
104 'intel_buffer_objects.c',
105 'intel_buffer_objects.h',
108 'intel_copy_image.c',
109 'intel_extensions.c',
113 'intel_mipmap_tree.c',
114 'intel_mipmap_tree.h',
115 'intel_pixel_bitmap.c',
117 'intel_pixel_copy.c',
118 'intel_pixel_draw.c',
120 'intel_pixel_read.c',
129 'intel_tex_validate.c',
130 'intel_tiled_memcpy.c',
131 'intel_tiled_memcpy.h',
137 foreach v : ['40', '45', '50', '60', '70', '75', '80', '90', '100']
138 _lib = static_library(
139 'libi965_gen@0@'.format(v),
140 ['genX_blorp_exec.c', 'genX_state_upload.c', nir_opcodes_h, gen_xml_pack],
141 include_directories : [inc_common, inc_intel, inc_dri_common],
142 c_args : [c_vis_args, no_override_init_args, '-msse2',
143 '-DGEN_VERSIONx10=@0@'.format(v)],
144 dependencies : [dep_libdrm],
146 i965_gen_libs += _lib
149 oa_generator = generator(
151 arguments : ['@CURRENT_SOURCE_DIR@/brw_oa.py', '@INPUT@',
152 '--chipset', '@EXTRA_ARGS@', '--code', '@OUTPUT0@',
153 '--header', '@OUTPUT1@'],
154 output : ['@BASENAME@.c', '@BASENAME@.h'],
158 foreach hw : ['hsw', 'bdw', 'chv', 'sklgt2', 'sklgt3', 'sklgt4', 'bxt',
159 'kblgt2', 'kblgt3', 'glk', 'cflgt2', 'cflgt3']
160 _xml = 'brw_oa_@0@.xml'.format(hw)
161 i965_oa_sources += oa_generator.process(_xml, extra_args : hw)
164 libi965 = static_library(
166 [files_i965, i965_oa_sources, nir_opcodes_h, ir_expression_operation_h,
168 include_directories : [inc_common, inc_intel, inc_dri_common, inc_util,
169 inc_drm_uapi, inc_nir],
170 c_args : [c_vis_args, no_override_init_args, '-msse2'],
171 cpp_args : [cpp_vis_args, '-msse2'],
172 link_with : [i965_gen_libs, libintel_common, libisl, libintel_compiler,
174 dependencies : [dep_libdrm, dep_valgrind],
177 dri_drivers += libi965
178 dri_link += 'i965_dri.so'