summaryrefslogtreecommitdiffstats
path: root/recipes-graphics
diff options
context:
space:
mode:
authorErnest Van Hoecke <ernest.vanhoecke@toradex.com>2026-08-03 18:49:02 +0200
committerErnest Van Hoecke <ernest.vanhoecke@toradex.com>2026-08-03 18:49:51 +0200
commit608710ccff3e37934cfb5cd01e29726c468190d3 (patch)
tree9caa452f96746987dc831916f214a699c22c63e9 /recipes-graphics
parent5233438b40d8b9f45c559062d5a992f8448ecf25 (diff)
downloadmeta-freescale-608710ccff3e37934cfb5cd01e29726c468190d3.tar.gz
vulkan-loader: Refresh LF-11869 patch
The Vulkan Loader source changed add_data_files() to consume a string list for manifest search paths, so the LF-11869 patch no longer applies to the current oe-core recipe. Refresh 0001-LF-11869-change-mali-wsi-layer-activating-order.patch against the current loader code while keeping the downstream ordering change intact. Signed-off-by: Ernest Van Hoecke <ernest.vanhoecke@toradex.com>
Diffstat (limited to 'recipes-graphics')
-rw-r--r--recipes-graphics/vulkan/vulkan-loader/0001-LF-11869-change-mali-wsi-layer-activating-order.patch65
1 files changed, 31 insertions, 34 deletions
diff --git a/recipes-graphics/vulkan/vulkan-loader/0001-LF-11869-change-mali-wsi-layer-activating-order.patch b/recipes-graphics/vulkan/vulkan-loader/0001-LF-11869-change-mali-wsi-layer-activating-order.patch
index 01f1c947a..993423973 100644
--- a/recipes-graphics/vulkan/vulkan-loader/0001-LF-11869-change-mali-wsi-layer-activating-order.patch
+++ b/recipes-graphics/vulkan/vulkan-loader/0001-LF-11869-change-mali-wsi-layer-activating-order.patch
@@ -1,4 +1,4 @@
1From 91aff12a127428ff558d57d93b91b0b909321c35 Mon Sep 17 00:00:00 2001 1From dc513031b3f39538cfe1d235f95e47b6778cbc20 Mon Sep 17 00:00:00 2001
2From: Yuan Tian <yuan.tian@nxp.com> 2From: Yuan Tian <yuan.tian@nxp.com>
3Date: Sat, 27 Apr 2024 06:06:54 +0800 3Date: Sat, 27 Apr 2024 06:06:54 +0800
4Subject: [PATCH] LF-11869 change mali wsi layer activating order 4Subject: [PATCH] LF-11869 change mali wsi layer activating order
@@ -7,43 +7,40 @@ Upstream-Status: Inappropriate [embedded specific]
7 7
8Signed-off-by: Yuan Tian <yuan.tian@nxp.com> 8Signed-off-by: Yuan Tian <yuan.tian@nxp.com>
9--- 9---
10 loader/loader.c | 12 ++++++++++++ 10 loader/loader.c | 9 +++++++++
11 1 file changed, 12 insertions(+) 11 1 file changed, 9 insertions(+)
12 12
13diff --git a/loader/loader.c b/loader/loader.c 13diff --git a/loader/loader.c b/loader/loader.c
14index 9064cd633..5b00870a4 100644 14index 53c8be0e586d..b5e7fd6915c2 100644
15--- a/loader/loader.c 15--- a/loader/loader.c
16+++ b/loader/loader.c 16+++ b/loader/loader.c
17@@ -3034,6 +3034,7 @@ VkResult add_data_files(const struct loader_instance *inst, char *search_path, s 17@@ -3441,6 +3441,7 @@ VkResult add_data_files(const struct loader_instance *inst, struct loader_string
18 #if !defined(_WIN32) 18 if (NULL == dir_stream) {
19 char temp_path[2048]; 19 continue;
20 #endif 20 }
21+ bool has_wsi_layer = false; 21+ bool has_wsi_layer = false;
22 22 while (1) {
23 // Now, parse the paths 23 errno = 0;
24 char *next_file = search_path; 24 struct dirent *dir_entry = readdir(dir_stream);
25@@ -3100,6 +3101,10 @@ VkResult add_data_files(const struct loader_instance *inst, char *search_path, s 25@@ -3459,6 +3460,10 @@ VkResult add_data_files(const struct loader_instance *inst, struct loader_string
26 name = full_path; 26 name = full_path;
27 27
28 VkResult local_res; 28 VkResult local_res;
29+ if(!strcmp(name,"/etc/vulkan/implicit_layer.d/VkLayer_window_system_integration.json")) { 29+ if (!strcmp(name, "/etc/vulkan/implicit_layer.d/VkLayer_window_system_integration.json")) {
30+ has_wsi_layer = true; 30+ has_wsi_layer = true;
31+ continue; 31+ continue;
32+ } 32+ }
33 local_res = add_if_manifest_file(inst, name, out_files); 33 local_res = add_if_manifest_file(inst, name, out_files);
34 34
35 // Incomplete means this was not a valid data file. 35 // Incomplete means this was not a valid data file.
36@@ -3110,6 +3115,13 @@ VkResult add_data_files(const struct loader_instance *inst, char *search_path, s 36@@ -3469,6 +3474,10 @@ VkResult add_data_files(const struct loader_instance *inst, struct loader_string
37 break; 37 break;
38 }
38 } 39 }
39 } 40+ if (has_wsi_layer) {
40+ 41+ name = "/etc/vulkan/implicit_layer.d/VkLayer_window_system_integration.json";
41+ if(has_wsi_layer) { 42+ vk_result = add_if_manifest_file(inst, name, out_files);
42+ name = "/etc/vulkan/implicit_layer.d/VkLayer_window_system_integration.json"; 43+ }
43+ vk_result = add_if_manifest_file(inst, name, out_files); 44 loader_closedir(inst, dir_stream);
44+ has_wsi_layer = false; 45 if (vk_result != VK_SUCCESS) {
45+ } 46 goto out;
46+
47 loader_closedir(inst, dir_stream);
48 if (vk_result != VK_SUCCESS) {
49 goto out;