From bbd7f4ff9761b5a2bb5bfb4e56effe204457c3d1 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 24 Feb 2022 10:13:51 +0100 Subject: [PATCH] radv,drirc: move RADV workarounds to 00-radv-defaults.conf Because we have to maintain two different packages of Mesa, one specific to RADV and another one for RadeonSI and such, it's a bit annoying to have to synchronize the drirc entries. Currently, only our Mesa package installs 00-mesa-defaults.conf which means we have to backport the drirc RADV changes. This splits 00-mesa-defaults.conf in two to move the drirc RADV entries to src/amd/vulkan/00-radv-defaults.conf. Meson will install the file only if RADV is built. There is still a caveat for common drirc workarounds like for WSI but they are rare enough and we could still duplicate them if needed. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Reviewed-by: Emil Velikov Part-of: (cherry picked from commit 53ca85ac2a1acf1476c4b494f5fdfa2cc39c644c) --- src/amd/vulkan/00-radv-defaults.conf | 144 +++++++++++++++++++++++++++ src/amd/vulkan/meson.build | 4 + src/util/00-mesa-defaults.conf | 107 -------------------- 3 files changed, 148 insertions(+), 107 deletions(-) create mode 100644 src/amd/vulkan/00-radv-defaults.conf diff --git a/src/amd/vulkan/00-radv-defaults.conf b/src/amd/vulkan/00-radv-defaults.conf new file mode 100644 index 00000000000..104c5462ec9 --- /dev/null +++ b/src/amd/vulkan/00-radv-defaults.conf @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/amd/vulkan/meson.build b/src/amd/vulkan/meson.build index 1f88a232d07..4d8681779fc 100644 --- a/src/amd/vulkan/meson.build +++ b/src/amd/vulkan/meson.build @@ -92,6 +92,10 @@ libradv_files = files( 'vk_format.h', ) +files_drirc = files('00-radv-defaults.conf') + +install_data(files_drirc, install_dir : join_paths(get_option('datadir'), 'drirc.d')) + if not with_platform_windows libradv_files += files( 'winsys/amdgpu/radv_amdgpu_bo.c', diff --git a/src/util/00-mesa-defaults.conf b/src/util/00-mesa-defaults.conf index 4118264f26f..8fada161005 100644 --- a/src/util/00-mesa-defaults.conf +++ b/src/util/00-mesa-defaults.conf @@ -882,113 +882,6 @@ TODO: document the other workarounds.