• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright © 2017-2019 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_libiris = files(
22  'i915/iris_batch.c',
23  'i915/iris_batch.h',
24  'i915/iris_bufmgr.c',
25  'i915/iris_bufmgr.h',
26  'i915/iris_kmd_backend.c',
27  'xe/iris_batch.c',
28  'xe/iris_batch.h',
29  'xe/iris_bufmgr.c',
30  'xe/iris_bufmgr.h',
31  'xe/iris_kmd_backend.c',
32  'driinfo_iris.h',
33  'iris_batch.c',
34  'iris_batch.h',
35  'iris_binder.c',
36  'iris_binder.h',
37  'iris_blit.c',
38  'iris_border_color.c',
39  'iris_bufmgr.c',
40  'iris_bufmgr.h',
41  'iris_clear.c',
42  'iris_context.c',
43  'iris_context.h',
44  'iris_draw.c',
45  'iris_fence.c',
46  'iris_fence.h',
47  'iris_fine_fence.c',
48  'iris_fine_fence.h',
49  'iris_formats.c',
50  'iris_genx_macros.h',
51  'iris_genx_protos.h',
52  'iris_kmd_backend.c',
53  'iris_kmd_backend.h',
54  'iris_measure.c',
55  'iris_measure.h',
56  'iris_monitor.c',
57  'iris_perf.h',
58  'iris_perf.c',
59  'iris_performance_query.c',
60  'iris_pipe.h',
61  'iris_pipe_control.c',
62  'iris_program.c',
63  'iris_program_cache.c',
64  'iris_resolve.c',
65  'iris_resource.c',
66  'iris_resource.h',
67  'iris_screen.c',
68  'iris_screen.h',
69  'iris_disk_cache.c',
70  'iris_utrace.c',
71)
72
73iris_per_hw_ver_libs = []
74foreach v : ['80', '90', '110', '120', '125', '200']
75  iris_per_hw_ver_libs += static_library(
76    'iris_per_hw_ver@0@'.format(v),
77    ['iris_blorp.c', 'iris_query.c', 'iris_state.c', 'iris_indirect_gen.c', gen_xml_pack],
78    include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_intel],
79    c_args : [
80      no_override_init_args, sse2_args,
81      '-DGFX_VERx10=@0@'.format(v),
82    ],
83    gnu_symbol_visibility : 'hidden',
84    dependencies : [dep_libdrm, dep_valgrind, idep_genxml, idep_nir_headers,
85                    idep_intel_driver_ds_headers, idep_intel_shaders,
86                    idep_intel_blorp],
87  )
88endforeach
89
90libiris = static_library(
91  'iris',
92  [files_libiris, gen_xml_pack],
93  include_directories : [
94    inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_intel,
95    inc_gallium_drivers,
96    # these should not be necessary, but main/macros.h...
97    inc_mesa, inc_mapi
98  ],
99  c_args : [sse2_args],
100  cpp_args : [sse2_args],
101  gnu_symbol_visibility : 'hidden',
102  dependencies : [dep_libdrm, dep_valgrind, idep_genxml, idep_nir_headers,
103                  idep_libintel_common, idep_intel_driver_ds, idep_intel_dev,
104                  idep_intel_blorp_elk, idep_intel_decoder_elk,
105                  idep_intel_blorp, idep_intel_decoder_brw],
106  link_with : [
107    iris_per_hw_ver_libs, libintel_compiler_brw, libintel_compiler_elk, libisl,
108    libintel_perf
109  ],
110)
111
112driver_iris = declare_dependency(
113  compile_args : '-DGALLIUM_IRIS',
114  link_with : [libiris, libiriswinsys],
115)
116