1 # Copyright © 2017 Broadcom
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
24 'kernel/vc4_packet.h',
25 'kernel/vc4_render_cl.c',
26 'kernel/vc4_validate.c',
27 'kernel/vc4_validate_shaders.c',
42 'vc4_nir_lower_blend.c',
44 'vc4_nir_lower_txf_ms.c',
45 'vc4_opt_algebraic.c',
46 'vc4_opt_constant_folding.c',
47 'vc4_opt_copy_propagation.c',
48 'vc4_opt_dead_code.c',
49 'vc4_opt_peephole_sf.c',
50 'vc4_opt_small_immediates.c',
52 'vc4_opt_coalesce_ff_writes.c',
55 'vc4_qir_emit_uniform_stream_resets.c',
56 'vc4_qir_live_variables.c',
57 'vc4_qir_lower_uniforms.c',
69 'vc4_register_allocate.c',
70 'vc4_reorder_uniforms.c',
76 'vc4_simulator_validate.h',
87 if host_machine.cpu_family() == 'arm'
88 libvc4_neon = static_library(
90 'vc4_tiling_lt_neon.c',
91 include_directories : [
92 inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_broadcom
94 c_args : '-mfpu=neon',
96 vc4_c_args += '-DUSE_ARM_ASM'
99 if dep_simpenrose.found()
100 vc4_c_args += '-DUSE_VC4_SIMULATOR'
103 libvc4 = static_library(
105 [files_libvc4, v3d_xml_pack],
106 include_directories : [
107 inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_broadcom,
110 link_with: libvc4_neon,
111 c_args : [c_vis_args, vc4_c_args],
112 cpp_args : [cpp_vis_args],
113 dependencies : [dep_simpenrose, dep_libdrm, dep_valgrind, idep_nir_headers],
114 build_by_default : false,
117 driver_vc4 = declare_dependency(
118 compile_args : '-DGALLIUM_VC4',
119 link_with : [libvc4, libvc4winsys, libbroadcom_cle, libbroadcom_v3d],
120 dependencies : idep_nir,