nvk: remove unused relative_dir variable

In commit f35172b6a4 ("meson: make CL args common"), the
fmacro-prefix-map using relative_dir variable was moved from child
meson.build files to the main meson.build file. However, the
relative_dir variable assignment from src/nouveau/vulkan/meson.build
wasn't removed, while src/asahi/libagx's and src/panfrost/libpan's were.
This seems to be an oversight, so let's remove this seemingly now unused
relative_dir meson variable from nvk's meson.build.

This also allows us to remove the use of discouraged global_build_root()
[1] and global_source_root()[2].

[1] https://mesonbuild.com/Reference-manual_builtin_meson.html#mesonglobal_build_root
[2] https://mesonbuild.com/Reference-manual_builtin_meson.html#mesonglobal_source_root

Fixes: f35172b6a4 ("meson: make CL args common")
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36927>
This commit is contained in:
Quentin Schulz 2025-09-15 11:01:30 +02:00 committed by Marge Bot
parent b886ca33b8
commit e1765a2914

View file

@ -93,8 +93,6 @@ nvk_entrypoints = custom_target(
depend_files : vk_entrypoints_gen_depend_files,
)
relative_dir = fs.relative_to(meson.global_source_root(), meson.global_build_root())
nvkcl_spv = custom_target(
input : nvkcl_files,
output : 'nvkcl.spv',