2017-10-13 02:40:16 +01:00
|
|
|
# Copyright © 2017 Broadcom
|
|
|
|
#
|
|
|
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
# of this software and associated documentation files (the "Software"), to deal
|
|
|
|
# in the Software without restriction, including without limitation the rights
|
|
|
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
# copies of the Software, and to permit persons to whom the Software is
|
|
|
|
# furnished to do so, subject to the following conditions:
|
|
|
|
#
|
|
|
|
# The above copyright notice and this permission notice shall be included in
|
|
|
|
# all copies or substantial portions of the Software.
|
|
|
|
#
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
|
# SOFTWARE.
|
|
|
|
|
|
|
|
libbroadcom_compiler_files = files(
|
|
|
|
'nir_to_vir.c',
|
|
|
|
'vir.c',
|
|
|
|
'vir_dump.c',
|
|
|
|
'vir_live_variables.c',
|
2021-02-17 10:17:25 +00:00
|
|
|
'vir_opt_constant_alu.c',
|
2017-10-13 02:40:16 +01:00
|
|
|
'vir_opt_copy_propagate.c',
|
|
|
|
'vir_opt_dead_code.c',
|
2019-02-22 22:26:26 +00:00
|
|
|
'vir_opt_redundant_flags.c',
|
2018-07-20 22:27:09 +01:00
|
|
|
'vir_opt_small_immediates.c',
|
2017-10-13 02:40:16 +01:00
|
|
|
'vir_register_allocate.c',
|
|
|
|
'vir_to_qpu.c',
|
|
|
|
'qpu_schedule.c',
|
|
|
|
'qpu_validate.c',
|
2018-01-10 20:48:05 +00:00
|
|
|
'v3d33_tex.c',
|
2018-01-10 20:51:08 +00:00
|
|
|
'v3d40_tex.c',
|
2018-01-10 20:22:38 +00:00
|
|
|
'v3d33_vpm_setup.c',
|
2017-10-13 02:40:16 +01:00
|
|
|
'v3d_compiler.h',
|
|
|
|
'v3d_nir_lower_io.c',
|
2017-12-11 20:52:27 +00:00
|
|
|
'v3d_nir_lower_image_load_store.c',
|
2020-06-22 13:26:02 +01:00
|
|
|
'v3d_nir_lower_line_smooth.c',
|
2022-01-18 09:59:42 +00:00
|
|
|
'v3d_nir_lower_load_store_bitsize.c',
|
2019-07-03 08:38:39 +01:00
|
|
|
'v3d_nir_lower_logic_ops.c',
|
2020-08-27 09:05:53 +01:00
|
|
|
'v3d_nir_lower_robust_buffer_access.c',
|
2019-04-11 19:12:01 +01:00
|
|
|
'v3d_nir_lower_scratch.c',
|
2017-10-24 20:16:50 +01:00
|
|
|
'v3d_nir_lower_txf_ms.c',
|
2017-10-13 02:40:16 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
libbroadcom_compiler = static_library(
|
2017-12-12 20:22:56 +00:00
|
|
|
['broadcom_compiler', v3d_xml_pack],
|
2017-10-13 02:40:16 +01:00
|
|
|
libbroadcom_compiler_files,
|
2019-03-05 16:21:47 +00:00
|
|
|
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_broadcom],
|
2020-04-24 21:10:41 +01:00
|
|
|
c_args : [no_override_init_args],
|
|
|
|
gnu_symbol_visibility : 'hidden',
|
2017-12-12 20:22:56 +00:00
|
|
|
dependencies : [dep_libdrm, dep_valgrind, idep_nir_headers],
|
2017-10-13 02:40:16 +01:00
|
|
|
build_by_default : false,
|
|
|
|
)
|
2018-07-30 03:11:53 +01:00
|
|
|
|
|
|
|
v3d_libs += libbroadcom_compiler
|