1# Copyright © 2017 Intel Corporation
2
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:
9
10# The above copyright notice and this permission notice shall be included in
11# all copies or substantial portions of the Software.
12
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
19# SOFTWARE.
20
21files_i965 = files(
22  'brw_binding_tables.c',
23  'brw_blorp.c',
24  'brw_blorp.h',
25  'brw_bufmgr.c',
26  'brw_bufmgr.h',
27  'brw_clear.c',
28  'brw_clip.c',
29  'brw_compute.c',
30  'brw_conditional_render.c',
31  'brw_context.c',
32  'brw_context.h',
33  'brw_cs.c',
34  'brw_cs.h',
35  'brw_curbe.c',
36  'brw_defines.h',
37  'brw_disk_cache.c',
38  'brw_draw.c',
39  'brw_draw.h',
40  'brw_draw_upload.c',
41  'brw_ff_gs.c',
42  'brw_ff_gs.h',
43  'brw_formatquery.c',
44  'brw_generate_mipmap.c',
45  'brw_gs.c',
46  'brw_gs.h',
47  'brw_gs_surface_state.c',
48  'brw_link.cpp',
49  'brw_meta_util.c',
50  'brw_meta_util.h',
51  'brw_misc_state.c',
52  'brw_multisample_state.h',
53  'brw_nir_uniforms.cpp',
54  'brw_object_purgeable.c',
55  'brw_pipe_control.c',
56  'brw_performance_query.c',
57  'brw_program.c',
58  'brw_program.h',
59  'brw_program_binary.c',
60  'brw_program_cache.c',
61  'brw_primitive_restart.c',
62  'brw_queryobj.c',
63  'brw_reset.c',
64  'brw_sf.c',
65  'brw_state.h',
66  'brw_state_upload.c',
67  'brw_structs.h',
68  'brw_surface_formats.c',
69  'brw_sync.c',
70  'brw_tcs.c',
71  'brw_tcs_surface_state.c',
72  'brw_tes.c',
73  'brw_tes_surface_state.c',
74  'brw_urb.c',
75  'brw_util.c',
76  'brw_util.h',
77  'brw_vs.c',
78  'brw_vs.h',
79  'brw_vs_surface_state.c',
80  'brw_wm.c',
81  'brw_wm.h',
82  'brw_wm_surface_state.c',
83  'gfx4_blorp_exec.h',
84  'gfx6_clip_state.c',
85  'gfx6_constant_state.c',
86  'gfx6_multisample_state.c',
87  'gfx6_queryobj.c',
88  'gfx6_sampler_state.c',
89  'gfx6_sol.c',
90  'gfx6_urb.c',
91  'gfx7_l3_state.c',
92  'gfx7_sol_state.c',
93  'gfx7_urb.c',
94  'gfx8_depth_state.c',
95  'gfx8_multisample_state.c',
96  'hsw_queryobj.c',
97  'hsw_sol.c',
98  'brw_batch.c',
99  'brw_batch.h',
100  'brw_blit.c',
101  'brw_blit.h',
102  'brw_buffer_objects.c',
103  'brw_buffer_objects.h',
104  'brw_buffers.c',
105  'brw_buffers.h',
106  'brw_copy_image.c',
107  'brw_extensions.c',
108  'brw_fbo.c',
109  'brw_fbo.h',
110  'brw_image.h',
111  'brw_mipmap_tree.c',
112  'brw_mipmap_tree.h',
113  'brw_pixel_bitmap.c',
114  'brw_pixel.c',
115  'brw_pixel_copy.c',
116  'brw_pixel_draw.c',
117  'brw_pixel.h',
118  'brw_pixel_read.c',
119  'brw_screen.c',
120  'brw_screen.h',
121  'brw_state.c',
122  'brw_tex.c',
123  'brw_tex_copy.c',
124  'brw_tex.h',
125  'brw_tex_image.c',
126  'brw_tex_obj.h',
127  'brw_tex_validate.c',
128  'brw_upload.c',
129  'libdrm_macros.h',
130)
131
132i965_per_hw_ver_libs = []
133foreach v : ['40', '45', '50', '60', '70', '75', '80', '90', '110']
134  i965_per_hw_ver_libs += static_library(
135    'i965_per_hw_ver@0@'.format(v),
136    ['genX_blorp_exec.c', 'genX_boilerplate.h', 'genX_pipe_control.c',
137     'genX_state_upload.c', gen_xml_pack],
138    include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_intel, inc_dri_common],
139    c_args : [
140      no_override_init_args, c_sse2_args,
141      '-DGFX_VERx10=@0@'.format(v),
142    ],
143    gnu_symbol_visibility : 'hidden',
144    dependencies : [dep_libdrm, idep_nir_headers, idep_mesautil],
145  )
146endforeach
147
148
149libi965 = static_library(
150  'i965',
151  [files_i965, ir_expression_operation_h],
152  include_directories : [
153    inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_intel, inc_dri_common,
154  ],
155  c_args : [no_override_init_args, c_sse2_args],
156  cpp_args : [c_sse2_args],
157  gnu_symbol_visibility : 'hidden',
158  link_with : [
159    i965_per_hw_ver_libs, libintel_dev, libisl, libintel_compiler, libblorp,
160    libintel_perf
161  ],
162  dependencies : [
163    dep_libdrm, dep_valgrind, idep_libintel_common, idep_nir_headers, idep_genxml,
164    idep_xmlconfig,
165  ],
166)
167