mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
anv: add grl build dependency on entrypoints
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7446
Fixes: f3ddfd81b4 ("anv: Build BVHs on the GPU with GRL")
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19007>
This commit is contained in:
parent
4eba6d71a8
commit
1e29a1a8c5
2 changed files with 18 additions and 13 deletions
|
|
@ -155,7 +155,7 @@ foreach t : [['125', 'gfx125', 'dg2']]
|
|||
grl_genX_files, grl_metakernel_c, grl_metakernel_h],
|
||||
include_directories : [
|
||||
inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_compiler,
|
||||
inc_intel, inc_anv,
|
||||
inc_intel,
|
||||
],
|
||||
c_args : [
|
||||
no_override_init_args, c_sse2_args,
|
||||
|
|
@ -167,7 +167,7 @@ foreach t : [['125', 'gfx125', 'dg2']]
|
|||
],
|
||||
dependencies : [
|
||||
dep_valgrind, idep_nir_headers, idep_vulkan_util_headers, idep_vulkan_wsi_headers,
|
||||
idep_vulkan_runtime_headers,
|
||||
idep_vulkan_runtime_headers, idep_anv_headers,
|
||||
],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
)
|
||||
|
|
@ -188,7 +188,7 @@ libgrl = static_library(
|
|||
inc_compiler,
|
||||
],
|
||||
link_whole : [grl_genX_libs],
|
||||
dependencies : libgrl_deps,
|
||||
dependencies : [libgrl_deps, idep_anv_headers],
|
||||
install : true,
|
||||
)
|
||||
idep_grl = declare_dependency(
|
||||
|
|
|
|||
|
|
@ -27,16 +27,6 @@ anv_flags = [
|
|||
|
||||
anv_cpp_flags = []
|
||||
|
||||
if with_intel_vk_rt
|
||||
subdir('grl')
|
||||
optional_libgrl = [libgrl]
|
||||
anv_flags += '-DANV_SUPPORT_RT=1'
|
||||
else
|
||||
idep_grl = null_dep
|
||||
optional_libgrl = []
|
||||
anv_flags += '-DANV_SUPPORT_RT=0'
|
||||
endif
|
||||
|
||||
anv_entrypoints = custom_target(
|
||||
'anv_entrypoints',
|
||||
input : [vk_entrypoints_gen, vk_api_xml],
|
||||
|
|
@ -52,6 +42,21 @@ anv_entrypoints = custom_target(
|
|||
depend_files : vk_entrypoints_gen_depend_files,
|
||||
)
|
||||
|
||||
idep_anv_headers = declare_dependency(
|
||||
sources : [anv_entrypoints[0]],
|
||||
include_directories : inc_anv,
|
||||
)
|
||||
|
||||
if with_intel_vk_rt
|
||||
subdir('grl')
|
||||
optional_libgrl = [libgrl]
|
||||
anv_flags += '-DANV_SUPPORT_RT=1'
|
||||
else
|
||||
idep_grl = null_dep
|
||||
optional_libgrl = []
|
||||
anv_flags += '-DANV_SUPPORT_RT=0'
|
||||
endif
|
||||
|
||||
intel_icd = custom_target(
|
||||
'intel_icd',
|
||||
input : [vk_icd_gen, vk_api_xml],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue