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
21 isl_gen_files = files(
22 'isl_emit_depth_stencil.c',
23 'isl_surface_state.c',
26 isl_gen4_files = files(
31 isl_gen6_files = files(
36 isl_gen7_files = files(
41 isl_gen8_files = files(
46 isl_gen9_files = files(
51 isl_gen12_files = files(
57 foreach g : [['40', isl_gen4_files], ['50', []], ['60', isl_gen6_files],
58 ['70', isl_gen7_files], ['75', []], ['80', isl_gen8_files],
59 ['90', isl_gen9_files], ['100', []], ['110', []],
60 ['120', isl_gen12_files]]
62 isl_gen_libs += static_library(
63 'isl_gen@0@'.format(_gen),
64 [g[1], isl_gen_files, gen_xml_pack],
65 include_directories : [inc_common, inc_intel],
66 c_args : [c_vis_args, no_override_init_args,
67 '-DGEN_VERSIONx10=@0@'.format(_gen)],
71 isl_format_layout_c = custom_target(
72 'isl_format_layout.c',
73 input : ['gen_format_layout.py', 'isl_format_layout.csv'],
74 output : 'isl_format_layout.c',
75 command : [prog_python, '@INPUT0@', '--csv', '@INPUT1@', '--out', '@OUTPUT@'],
78 files_isl_tiled_memcpy = files(
79 'isl_tiled_memcpy_normal.c'
82 files_isl_tiled_memcpy_sse41 = files(
83 'isl_tiled_memcpy_sse41.c',
86 isl_tiled_memcpy = static_library(
88 [files_isl_tiled_memcpy],
89 include_directories : [
90 inc_common, inc_intel, inc_include,
92 c_args : [c_vis_args, no_override_init_args, '-msse2'],
93 extra_files : ['isl_tiled_memcpy.c']
97 isl_tiled_memcpy_sse41 = static_library(
98 'isl_tiled_memcpy_sse41',
99 [files_isl_tiled_memcpy_sse41],
100 include_directories : [
101 inc_common, inc_intel, inc_include,
103 link_args : ['-Wl,--exclude-libs=ALL'],
104 c_args : [c_vis_args, no_override_init_args, '-msse2', sse41_args],
105 extra_files : ['isl_tiled_memcpy.c']
108 isl_tiled_memcpy_sse41 = []
111 libisl_files = files(
118 'isl_storage_image.c',
121 libisl = static_library(
123 [libisl_files, isl_format_layout_c, genX_bits_h],
124 include_directories : [inc_common, inc_intel, inc_include],
125 link_with : [isl_gen_libs, isl_tiled_memcpy, isl_tiled_memcpy_sse41],
126 c_args : [c_vis_args, no_override_init_args],
131 'isl_surf_get_image_offset',
133 'isl_surf_get_image_offset_test',
134 'tests/isl_surf_get_image_offset_test.c',
135 dependencies : [dep_m, idep_mesautil],
136 include_directories : [inc_common, inc_intel],
137 link_with : [libisl, libintel_dev],