mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 23:18:20 +02:00
asahi: Add folder for internal shaders
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498>
This commit is contained in:
parent
103e300e7f
commit
a02e463484
2 changed files with 27 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
# Copyright 2018 Rob Clark
|
||||
# Copyright 2019 Collabora, Ltd.
|
||||
# Copyright 2017 Intel Corporation
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
dep_iokit = dependency('IOKit', required : false)
|
||||
|
|
@ -25,6 +26,10 @@ libasahi_decode_files = files(
|
|||
'decode.c',
|
||||
)
|
||||
|
||||
libagx_shader_files = files(
|
||||
'shaders/placeholder.cl'
|
||||
)
|
||||
|
||||
agx_pack = custom_target(
|
||||
'agx_pack.h',
|
||||
input : ['gen_pack.py', 'cmdbuf.xml'],
|
||||
|
|
@ -56,9 +61,29 @@ libasahi_decode_shared = shared_library(
|
|||
build_by_default : with_tools.contains('asahi'),
|
||||
)
|
||||
|
||||
prepended_input_args = []
|
||||
foreach input_arg : libagx_shader_files
|
||||
prepended_input_args += ['--in', input_arg]
|
||||
endforeach
|
||||
libagx_shaders = custom_target(
|
||||
'libagx_shaders.h',
|
||||
input : libagx_shader_files,
|
||||
output : 'libagx_shaders.h',
|
||||
command : [
|
||||
prog_asahi_clc, '--prefix', 'libagx_shaders',
|
||||
prepended_input_args, '-o', '@OUTPUT@', '--',
|
||||
'-cl-std=cl2.0', '-D__OPENCL_VERSION__=200',
|
||||
'-I' + join_paths(meson.current_source_dir(), '.'),
|
||||
'-I' + join_paths(meson.current_source_dir(), 'shaders'),
|
||||
'-I' + join_paths(meson.current_build_dir(), '.'),
|
||||
],
|
||||
env: ['MESA_SHADER_CACHE_DISABLE=true'],
|
||||
depends : [prog_asahi_clc, agx_pack],
|
||||
)
|
||||
|
||||
libasahi_lib = static_library(
|
||||
'asahi_lib',
|
||||
[libasahi_lib_files, agx_pack],
|
||||
[libasahi_lib_files, libagx_shaders, agx_pack],
|
||||
include_directories : inc_asahi,
|
||||
c_args : [no_override_init_args],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
|
|
|
|||
1
src/asahi/lib/shaders/placeholder.cl
Normal file
1
src/asahi/lib/shaders/placeholder.cl
Normal file
|
|
@ -0,0 +1 @@
|
|||
/* Placeholder until end of series */
|
||||
Loading…
Add table
Reference in a new issue