diff options
Diffstat (limited to 'recipes-graphics/vulkan')
3 files changed, 66 insertions, 9 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 | |||
diff --git a/recipes-graphics/vulkan/vulkan-loader_1.3.261.1.imx.bbappend b/recipes-graphics/vulkan/vulkan-loader_1.3.261.1.imx.bbappend deleted file mode 100644 index c1a9902b7..000000000 --- a/recipes-graphics/vulkan/vulkan-loader_1.3.261.1.imx.bbappend +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | # libvulkan.so is loaded dynamically, so put it in the main package | ||
2 | SOLIBS = ".so*" | ||
3 | FILES_SOLIBSDEV = "" | ||
4 | INSANE_SKIP:${PN} += "dev-so" | ||
5 | |||
6 | # Override default mesa drivers with i.MX GPU drivers | ||
7 | RRECOMMENDS:${PN}:imxvulkan = "libvulkan-imx" | ||
8 | # Override default mesa drivers with i.MX GPU drivers | ||
9 | RRECOMMENDS:${PN}:mx95-nxp-bsp = "mali-imx-libvulkan" | ||
diff --git a/recipes-graphics/vulkan/vulkan-loader_1.3.275.0.imx.bbappend b/recipes-graphics/vulkan/vulkan-loader_1.3.275.0.imx.bbappend new file mode 100644 index 000000000..f46249215 --- /dev/null +++ b/recipes-graphics/vulkan/vulkan-loader_1.3.275.0.imx.bbappend | |||
@@ -0,0 +1,14 @@ | |||
1 | FILESEXTRAPATHS:prepend:imx-nxp-bsp := "${THISDIR}/${PN}:" | ||
2 | |||
3 | SRC_URI:append:imx-nxp-bsp = " \ | ||
4 | file://0001-LF-11869-change-mali-wsi-layer-activating-order.patch \ | ||
5 | " | ||
6 | |||
7 | # libvulkan.so is loaded dynamically, so put it in the main package | ||
8 | SOLIBS = ".so*" | ||
9 | FILES_SOLIBSDEV = "" | ||
10 | INSANE_SKIP:${PN} += "dev-so" | ||
11 | |||
12 | # Override default mesa drivers with i.MX GPU drivers | ||
13 | RRECOMMENDS:${PN}:imxviv = "libvulkan-imx" | ||
14 | RRECOMMENDS:${PN}:imxmali = "mali-imx-libvulkan" | ||