diff options
Diffstat (limited to 'recipes-graphics/vulkan/vulkan-loader/0001-LF-11869-change-mali-wsi-layer-activating-order.patch')
-rw-r--r-- | recipes-graphics/vulkan/vulkan-loader/0001-LF-11869-change-mali-wsi-layer-activating-order.patch | 52 |
1 files changed, 52 insertions, 0 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 new file mode 100644 index 000000000..da738aabe --- /dev/null +++ b/recipes-graphics/vulkan/vulkan-loader/0001-LF-11869-change-mali-wsi-layer-activating-order.patch | |||
@@ -0,0 +1,52 @@ | |||
1 | From 3448c245b15928aa5a5a3695d9271fb201eb2e3b Mon Sep 17 00:00:00 2001 | ||
2 | From: Yuan Tian <yuan.tian@nxp.com> | ||
3 | Date: Sat, 27 Apr 2024 06:06:54 +0800 | ||
4 | Subject: [PATCH] LF-11869 change mali wsi layer activating order | ||
5 | |||
6 | Upstream-Status: Inappropriate [i.MX specific] | ||
7 | |||
8 | Signed-off-by: Yuan Tian <yuan.tian@nxp.com> | ||
9 | --- | ||
10 | loader/loader.c | 12 ++++++++++++ | ||
11 | 1 file changed, 12 insertions(+) | ||
12 | |||
13 | diff --git a/loader/loader.c b/loader/loader.c | ||
14 | index e646b28b4..55912c178 100644 | ||
15 | --- a/loader/loader.c | ||
16 | +++ b/loader/loader.c | ||
17 | @@ -2906,6 +2906,7 @@ VkResult add_data_files(const struct loader_instance *inst, char *search_path, s | ||
18 | #if !defined(_WIN32) | ||
19 | char temp_path[2048]; | ||
20 | #endif | ||
21 | + bool has_wsi_layer = false; | ||
22 | |||
23 | // Now, parse the paths | ||
24 | next_file = search_path; | ||
25 | @@ -2965,6 +2966,10 @@ VkResult add_data_files(const struct loader_instance *inst, char *search_path, s | ||
26 | name = full_path; | ||
27 | |||
28 | VkResult local_res; | ||
29 | + if(!strcmp(name,"/etc/vulkan/implicit_layer.d/VkLayer_window_system_integration.json")) { | ||
30 | + has_wsi_layer = true; | ||
31 | + continue; | ||
32 | + } | ||
33 | local_res = add_if_manifest_file(inst, name, out_files); | ||
34 | |||
35 | // Incomplete means this was not a valid data file. | ||
36 | @@ -2975,6 +2980,13 @@ VkResult add_data_files(const struct loader_instance *inst, char *search_path, s | ||
37 | break; | ||
38 | } | ||
39 | } | ||
40 | + | ||
41 | + if(has_wsi_layer) { | ||
42 | + name = "/etc/vulkan/implicit_layer.d/VkLayer_window_system_integration.json"; | ||
43 | + vk_result = add_if_manifest_file(inst, name, out_files); | ||
44 | + has_wsi_layer = false; | ||
45 | + } | ||
46 | + | ||
47 | loader_closedir(inst, dir_stream); | ||
48 | if (vk_result != VK_SUCCESS) { | ||
49 | goto out; | ||
50 | -- | ||
51 | 2.34.1 | ||
52 | |||