summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts/0001-Allow-running-the-CTS-with-unknown-versions-of-Vulka.patch41
-rw-r--r--meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts_1.3.7.3.bb1
2 files changed, 42 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts/0001-Allow-running-the-CTS-with-unknown-versions-of-Vulka.patch b/meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts/0001-Allow-running-the-CTS-with-unknown-versions-of-Vulka.patch
new file mode 100644
index 0000000000..2797acf416
--- /dev/null
+++ b/meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts/0001-Allow-running-the-CTS-with-unknown-versions-of-Vulka.patch
@@ -0,0 +1,41 @@
1From 954b523a998933b1edbe9af3fe7b1c74595cf148 Mon Sep 17 00:00:00 2001
2From: Lorenzo Dal Col <lorenzo@khronosgroup.org>
3Date: Tue, 17 Sep 2024 17:18:20 +0200
4Subject: [PATCH] Allow running the CTS with unknown versions of Vulkan in the
5 driver
6
7This will default to VK_API_MAX_FRAMEWORK_VERSION, which at this time is 1.3.x.
8VK-GL-CTS issue: 5165
9Components: Framework, Vulkan
10Affects: None
11
12Change-Id: I954d0144db9ff5f3848c81df61dd263505b17ac2
13Upstream-Status: Backport [https://github.com/KhronosGroup/VK-GL-CTS/commit/609c09b3163d86d7e4819fbfc00a616e364f14f0]
14Signed-off-by: Randolph Sapp <rs@ti.com>
15---
16 external/vulkancts/framework/vulkan/vkApiVersion.cpp | 9 ++++++++-
17 1 file changed, 8 insertions(+), 1 deletion(-)
18
19diff --git a/external/vulkancts/framework/vulkan/vkApiVersion.cpp b/external/vulkancts/framework/vulkan/vkApiVersion.cpp
20index d996cb0e6..8720df52a 100644
21--- a/external/vulkancts/framework/vulkan/vkApiVersion.cpp
22+++ b/external/vulkancts/framework/vulkan/vkApiVersion.cpp
23@@ -134,7 +134,14 @@ deUint32 minVulkanAPIVersion(deUint32 lhs, deUint32 rhs)
24 for (auto it = begin(commonPredecessors); it != end(commonPredecessors); ++it)
25 if (isApiVersionPredecessor(rhs, *it) && isApiVersionPredecessor(lhs, *it))
26 return *it;
27- return 0;
28+
29+#ifndef CTS_USES_VULKANSC
30+ // If we got to this point, it means we are dealing with an unknown version.
31+ // We assume it to be valid, and we default to VK_API_MAX_FRAMEWORK_VERSION which is generated from the spec.
32+ return VK_API_MAX_FRAMEWORK_VERSION;
33+#else
34+ return VKSC_API_MAX_FRAMEWORK_VERSION;
35+#endif
36 }
37
38 } // vk
39--
402.50.1
41
diff --git a/meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts_1.3.7.3.bb b/meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts_1.3.7.3.bb
index 7492fe9aa4..cc80549eeb 100644
--- a/meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts_1.3.7.3.bb
+++ b/meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts_1.3.7.3.bb
@@ -19,6 +19,7 @@ SRCREV_video-parser = "138bbe048221d315962ddf8413aa6a08cc62a381"
19 19
20SRC_URI += "file://0001-cmake-Define-WAYLAND_SCANNER-and-WAYLAND_PROTOCOLS_D.patch \ 20SRC_URI += "file://0001-cmake-Define-WAYLAND_SCANNER-and-WAYLAND_PROTOCOLS_D.patch \
21 file://0001-vulkan-cts-include-missing-cstdint.patch \ 21 file://0001-vulkan-cts-include-missing-cstdint.patch \
22 file://0001-Allow-running-the-CTS-with-unknown-versions-of-Vulka.patch \
22" 23"
23 24
24TOOLCHAIN = "gcc" 25TOOLCHAIN = "gcc"