contrib: libplacebo: try to use the NDK vulkan registry

This commit is contained in:
Steve Lhomme 2024-04-12 08:14:31 +02:00
parent c86ce345ef
commit b0d6f9ad54
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,25 @@
From 5acce05c63c7b0f4a952d1258153da283b95bf8a Mon Sep 17 00:00:00 2001
From: Steve Lhomme <robux4@ycbcr.xyz>
Date: Fri, 12 Apr 2024 08:12:45 +0200
Subject: [PATCH 4/4] vulkan/utils_gen: try to locate the vulkan registry in
the Android NDK
---
src/vulkan/utils_gen.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/vulkan/utils_gen.py b/src/vulkan/utils_gen.py
index 4bbe185b..4fe4a2d6 100644
--- a/src/vulkan/utils_gen.py
+++ b/src/vulkan/utils_gen.py
@@ -215,6 +215,7 @@ def find_registry_xml(datadir):
'$MINGW_PREFIX/share/vulkan/registry/vk.xml',
'%VULKAN_SDK%/share/vulkan/registry/vk.xml',
'$VULKAN_SDK/share/vulkan/registry/vk.xml',
+ '$ANDROID_NDK/sources/third_party/vulkan/src/registry/vk.xml',
'/usr/share/vulkan/registry/vk.xml',
]
--
2.37.3.windows.1

View File

@ -40,6 +40,7 @@ libplacebo: $(PLACEBO_ARCHIVE) .sum-libplacebo
$(APPLY) $(SRC)/libplacebo/0001-vulkan-meson-add-the-clang-gcc-C-runtime.patch
$(APPLY) $(SRC)/libplacebo/0001-meson-allow-overriding-python3-path.patch
$(APPLY) $(SRC)/libplacebo/0001-meson-allow-forcing-the-path-to-look-for-libraries.patch
$(APPLY) $(SRC)/libplacebo/0004-vulkan-utils_gen-try-to-locate-the-vulkan-registry-i.patch
$(MOVE)
.libplacebo: libplacebo crossfile.meson .python-venv