mesa/src/panfrost/meson.build
Mary Guillemard 20970bcd96 panfrost: Add base of OpenCL C infrastructure
This allows compiling CL shaders into a single SPIR-V library per arch,
NIR call bindings for each functions and precompilled binaries for each
entrypoints.

We are only going to support Bifrost and Valhall for this.

Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32720>
2025-02-11 12:33:23 +00:00

63 lines
1.1 KiB
Meson

# Copyright © 2018 Rob Clark
# Copyright © 2019 Collabora
# SPDX-License-Identifier: MIT
inc_panfrost = include_directories([
'.', 'shared', 'midgard', 'compiler', 'lib', 'libpan',
])
compile_args_panfrost = [
'-Wno-pointer-arith'
]
subdir('shared')
subdir('util')
subdir('midgard')
subdir('compiler')
if with_gallium_panfrost or with_panfrost_vk
subdir('lib')
subdir('clc')
subdir('libpan')
subdir('perf')
endif
files_bifrost = files(
'compiler/cmdline.c',
)
bifrost_compiler = executable(
'bifrost_compiler',
[files_bifrost],
include_directories : [
inc_include,
inc_src,
inc_panfrost,
],
dependencies : [
idep_nir,
idep_mesautil,
idep_bi_opcodes_h,
dep_libdrm,
],
link_with : [
libpanfrost_bifrost,
],
build_by_default : with_tools.contains('panfrost')
)
if with_panfrost_vk
subdir('vulkan')
endif
if with_perfetto and (with_datasources.contains('panfrost') or with_datasources.contains('auto'))
subdir('ds')
endif
if with_tools.contains('drm-shim')
subdir('drm-shim')
endif
if with_tools.contains('panfrost')
subdir('tools')
endif