| 1 |
# Copyright © 2025 Collabora, Ltd. |
| 2 |
# SPDX-License-Identifier: MIT |
| 3 |
|
| 4 |
libpanfrost_compiler_files = files( |
| 5 |
'pan_compiler.c', |
| 6 |
'pan_compiler.h', |
| 7 |
'pan_nir_collect_varyings.c', |
| 8 |
'pan_nir_lower_bool_to_bitsize.c', |
| 9 |
'pan_nir_lower_var_special.c', |
| 10 |
'pan_nir_lower_framebuffer.c', |
| 11 |
'pan_nir_lower_fs_inputs.c', |
| 12 |
'pan_nir_lower_fs_outputs.c', |
| 13 |
'pan_nir_lower_helper_invocation.c', |
| 14 |
'pan_nir_lower_image_index.c', |
| 15 |
'pan_nir_lower_image_ms.c', |
| 16 |
'pan_nir_lower_noperspective.c', |
| 17 |
'pan_nir_lower_sample_position.c', |
| 18 |
'pan_nir_lower_texel_buffer_index.c', |
| 19 |
'pan_nir_lower_vertex_id.c', |
| 20 |
'pan_nir_lower_vs_outputs.c', |
| 21 |
'pan_nir_lower_xfb.c', |
| 22 |
'pan_nir_resize_varying_io.c', |
| 23 |
) |
| 24 |
|
| 25 |
subdir('bifrost') |
| 26 |
subdir('midgard') |
| 27 |
|
| 28 |
libpanfrost_compiler = static_library( |
| 29 |
'panfrost_compiler', |
| 30 |
[libpanfrost_compiler_files], |
| 31 |
include_directories : [inc_include, inc_src, inc_valhall], |
| 32 |
dependencies: [idep_nir, idep_mesautil, idep_valhall_enums_h, idep_bi_opcodes_h], |
| 33 |
link_with: [libpanfrost_midgard, libpanfrost_bifrost], |
| 34 |
c_args : [no_override_init_args], |
| 35 |
gnu_symbol_visibility : 'hidden', |
| 36 |
build_by_default : false, |
| 37 |
) |
| 38 |
|
| 39 |
if with_tests |
| 40 |
subdir('bifrost/test') |
| 41 |
subdir('bifrost/valhall/test') |
| 42 |
endif |