i965: extract performance query metrics
[mesa.git] / src / mesa / drivers / dri / i965 / meson.build
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
21 files_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_emit.c',
43 'brw_ff_gs.h',
44 'brw_formatquery.c',
45 'brw_generate_mipmap.c',
46 'brw_gs.c',
47 'brw_gs.h',
48 'brw_gs_surface_state.c',
49 'brw_link.cpp',
50 'brw_meta_util.c',
51 'brw_meta_util.h',
52 'brw_misc_state.c',
53 'brw_multisample_state.h',
54 'brw_nir_uniforms.cpp',
55 'brw_object_purgeable.c',
56 'brw_pipe_control.c',
57 'brw_performance_query.h',
58 'brw_performance_query.c',
59 'brw_performance_query_mdapi.c',
60 'brw_program.c',
61 'brw_program.h',
62 'brw_program_binary.c',
63 'brw_program_cache.c',
64 'brw_primitive_restart.c',
65 'brw_queryobj.c',
66 'brw_reset.c',
67 'brw_sf.c',
68 'brw_state.h',
69 'brw_state_upload.c',
70 'brw_structs.h',
71 'brw_surface_formats.c',
72 'brw_sync.c',
73 'brw_tcs.c',
74 'brw_tcs_surface_state.c',
75 'brw_tes.c',
76 'brw_tes_surface_state.c',
77 'brw_urb.c',
78 'brw_util.c',
79 'brw_util.h',
80 'brw_vs.c',
81 'brw_vs.h',
82 'brw_vs_surface_state.c',
83 'brw_wm.c',
84 'brw_wm.h',
85 'brw_wm_surface_state.c',
86 'gen4_blorp_exec.h',
87 'gen6_clip_state.c',
88 'gen6_constant_state.c',
89 'gen6_multisample_state.c',
90 'gen6_queryobj.c',
91 'gen6_sampler_state.c',
92 'gen6_sol.c',
93 'gen6_urb.c',
94 'gen7_l3_state.c',
95 'gen7_sol_state.c',
96 'gen7_urb.c',
97 'gen8_depth_state.c',
98 'gen8_multisample_state.c',
99 'hsw_queryobj.c',
100 'hsw_sol.c',
101 'intel_batchbuffer.c',
102 'intel_batchbuffer.h',
103 'intel_blit.c',
104 'intel_blit.h',
105 'intel_buffer_objects.c',
106 'intel_buffer_objects.h',
107 'intel_buffers.c',
108 'intel_buffers.h',
109 'intel_copy_image.c',
110 'intel_extensions.c',
111 'intel_fbo.c',
112 'intel_fbo.h',
113 'intel_image.h',
114 'intel_mipmap_tree.c',
115 'intel_mipmap_tree.h',
116 'intel_pixel_bitmap.c',
117 'intel_pixel.c',
118 'intel_pixel_copy.c',
119 'intel_pixel_draw.c',
120 'intel_pixel.h',
121 'intel_pixel_read.c',
122 'intel_screen.c',
123 'intel_screen.h',
124 'intel_state.c',
125 'intel_tex.c',
126 'intel_tex_copy.c',
127 'intel_tex.h',
128 'intel_tex_image.c',
129 'intel_tex_obj.h',
130 'intel_tex_validate.c',
131 'intel_upload.c',
132 'libdrm_macros.h',
133 )
134
135 i965_gen_libs = []
136 foreach v : ['40', '45', '50', '60', '70', '75', '80', '90', '100', '110']
137 i965_gen_libs += static_library(
138 'i965_gen@0@'.format(v),
139 ['genX_blorp_exec.c', 'genX_boilerplate.h', 'genX_pipe_control.c',
140 'genX_state_upload.c', gen_xml_pack],
141 include_directories : [inc_common, inc_intel, inc_dri_common],
142 c_args : [
143 c_vis_args, no_override_init_args, c_sse2_args,
144 '-DGEN_VERSIONx10=@0@'.format(v),
145 ],
146 dependencies : [dep_libdrm, idep_nir_headers],
147 )
148 endforeach
149
150
151 libi965 = static_library(
152 'i965',
153 [files_i965, ir_expression_operation_h, xmlpool_options_h],
154 include_directories : [
155 inc_common, inc_intel, inc_dri_common, inc_util, inc_include,
156 ],
157 c_args : [c_vis_args, no_override_init_args, c_sse2_args],
158 cpp_args : [cpp_vis_args, c_sse2_args],
159 link_with : [
160 i965_gen_libs, libintel_common, libintel_dev, libisl, libintel_compiler,
161 libblorp, libintel_perf
162 ],
163 dependencies : [dep_libdrm, dep_valgrind, idep_nir_headers, idep_genxml],
164 )
165
166 dri_drivers += libi965
167 dri_link += 'i965_dri.so'