summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2022-02-17 17:09:21 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-02-18 11:37:11 +0000
commitd2ef9a0874ea4bf052dec2b82eddd749373a7aa8 (patch)
tree655a0570a3c90171aaf5590bcec5e6f3bf4b9f5c /meta
parentafa80c20141a3ac9292ade69e4befb8ba71a381e (diff)
downloadpoky-d2ef9a0874ea4bf052dec2b82eddd749373a7aa8.tar.gz
vulkan-samples: update to latest revision
(From OE-Core rev: ea18d074a89f22460fb4e943df652e668a03a792) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-graphics/vulkan/vulkan-samples/0001-framework-core-Add-explicit-static_cast-from-vk-Buff.patch35
-rw-r--r--meta/recipes-graphics/vulkan/vulkan-samples/0001-framework-do-not-mix-plain-and-keyword-target_link_l.patch38
-rw-r--r--meta/recipes-graphics/vulkan/vulkan-samples_git.bb4
3 files changed, 1 insertions, 76 deletions
diff --git a/meta/recipes-graphics/vulkan/vulkan-samples/0001-framework-core-Add-explicit-static_cast-from-vk-Buff.patch b/meta/recipes-graphics/vulkan/vulkan-samples/0001-framework-core-Add-explicit-static_cast-from-vk-Buff.patch
deleted file mode 100644
index b0e7cdabe4..0000000000
--- a/meta/recipes-graphics/vulkan/vulkan-samples/0001-framework-core-Add-explicit-static_cast-from-vk-Buff.patch
+++ /dev/null
@@ -1,35 +0,0 @@
1From f88fd472e57b59013570f08949dbbc0875c1bae4 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 13 Nov 2021 18:37:13 -0800
4Subject: [PATCH] framework/core: Add explicit static_cast from vk::Buffer to
5 VkBuffer
6
7This fixes errors like
8framework/core/hpp_buffer.cpp:149:3: error: no matching function for call to 'vmaDestroyBuffer'
9| vmaDestroyBuffer(vmaAllocator, handle, vmaAllocation);
10| ^~~~~~~~~~~~~~~~
11| /mnt/b/yoe/master/build/tmp/work/riscv32-yoe-linux-musl/vulkan-samples/git-r0/git/third_party/vma/src/vk_mem_alloc.h:3803:33: note: candidate function not viable: no known conversion from 'vk::Buffer' to 'V
12kBuffer' (aka 'unsigned long long') for 2nd argument
13
14Upstream-Status: Submitted [https://github.com/KhronosGroup/Vulkan-Samples/pull/395]
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16---
17 framework/core/hpp_buffer.cpp | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/framework/core/hpp_buffer.cpp b/framework/core/hpp_buffer.cpp
21index c1f5649..2609e4e 100644
22--- a/framework/core/hpp_buffer.cpp
23+++ b/framework/core/hpp_buffer.cpp
24@@ -146,7 +146,7 @@ void HPPBuffer::destroy()
25 {
26 assert(vmaAllocation != VK_NULL_HANDLE);
27 unmap();
28- vmaDestroyBuffer(vmaAllocator, handle, vmaAllocation);
29+ vmaDestroyBuffer(vmaAllocator, static_cast<VkBuffer>(handle), vmaAllocation);
30 }
31 }
32
33--
342.33.1
35
diff --git a/meta/recipes-graphics/vulkan/vulkan-samples/0001-framework-do-not-mix-plain-and-keyword-target_link_l.patch b/meta/recipes-graphics/vulkan/vulkan-samples/0001-framework-do-not-mix-plain-and-keyword-target_link_l.patch
deleted file mode 100644
index 66ed8bb47d..0000000000
--- a/meta/recipes-graphics/vulkan/vulkan-samples/0001-framework-do-not-mix-plain-and-keyword-target_link_l.patch
+++ /dev/null
@@ -1,38 +0,0 @@
1From 64b806ab702a6f445fd84aca5f03bb85b86a66e3 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 11 Nov 2021 18:37:09 -0800
4Subject: [PATCH] framework: do not mix plain and keyword
5 target_link_libraries() signatures
6
7Fixes
8| CMake Error at framework/CMakeLists.txt:461 (target_link_libraries):
9| The plain signature for target_link_libraries has already been used with
10| the target "framework". All uses of target_link_libraries with a target | must be either all-keyword or all-plain.
11|
12| The uses of the plain signature are here:
13| | * framework/CMakeLists.txt:453 (target_link_libraries)
14|
15
16Upstream-Status: Submitted [https://github.com/KhronosGroup/Vulkan-Samples/pull/395]
17
18Signed-off-by: Khem Raj <raj.khem@gmail.com>
19---
20 framework/CMakeLists.txt | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23diff --git a/framework/CMakeLists.txt b/framework/CMakeLists.txt
24index 948c796..13d3324 100644
25--- a/framework/CMakeLists.txt
26+++ b/framework/CMakeLists.txt
27@@ -450,7 +450,7 @@ target_link_libraries(${PROJECT_NAME} PUBLIC
28 plugins)
29
30 if(${NEED_LINK_ATOMIC})
31- target_link_libraries(${PROJECT_NAME} atomic)
32+ target_link_libraries(${PROJECT_NAME} PUBLIC atomic)
33 endif()
34
35 # Link platform specific libraries
36--
372.33.1
38
diff --git a/meta/recipes-graphics/vulkan/vulkan-samples_git.bb b/meta/recipes-graphics/vulkan/vulkan-samples_git.bb
index 1e45e9f04b..53c7254ce7 100644
--- a/meta/recipes-graphics/vulkan/vulkan-samples_git.bb
+++ b/meta/recipes-graphics/vulkan/vulkan-samples_git.bb
@@ -7,13 +7,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=48aa35cefb768436223a6e7f18dc2a2a"
7 7
8SRC_URI = "gitsm://github.com/KhronosGroup/Vulkan-Samples.git;branch=master;protocol=https \ 8SRC_URI = "gitsm://github.com/KhronosGroup/Vulkan-Samples.git;branch=master;protocol=https \
9 file://0001-CMakeLists.txt-do-not-hardcode-lib-as-installation-t.patch \ 9 file://0001-CMakeLists.txt-do-not-hardcode-lib-as-installation-t.patch \
10 file://0001-framework-do-not-mix-plain-and-keyword-target_link_l.patch \
11 file://0001-framework-core-Add-explicit-static_cast-from-vk-Buff.patch \
12 file://debugfix.patch \ 10 file://debugfix.patch \
13 " 11 "
14 12
15UPSTREAM_CHECK_COMMITS = "1" 13UPSTREAM_CHECK_COMMITS = "1"
16SRCREV = "ae6e4a3712cebde49a29e5996a3bd2f403566890" 14SRCREV = "28ca2dad83ceb157386e0708f5151ae89c177ad4"
17 15
18UPSTREAM_CHECK_GITTAGREGEX = "These are not the releases you're looking for" 16UPSTREAM_CHECK_GITTAGREGEX = "These are not the releases you're looking for"
19S = "${WORKDIR}/git" 17S = "${WORKDIR}/git"