diff options
author | Maxin B. John <maxin.john@intel.com> | 2018-07-31 13:53:31 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-01 10:07:22 +0100 |
commit | 6049b9b19bdf8980f2de6670b03715ad00b9737f (patch) | |
tree | 372cc47641593d4f54204b7181c8a6f693965c98 /meta/recipes-graphics | |
parent | b5dbf20ce6d508fc89646a343d34cb255c7d37fc (diff) | |
download | poky-6049b9b19bdf8980f2de6670b03715ad00b9737f.tar.gz |
vulkan-demos: upgrade to latest commit
Remove upstreamed patches:
1. 0001-Fix-build-on-x86.patch
2. 0001-Support-installing-demos-support-out-of-tree-builds.patch
Updated the following patch:
1. 0001-Don-t-build-demos-with-questionably-licensed-data.patch
Update subcomponents gli and glm based on the new structure of
repository.
License-Update: Update in location of file. No change in checksum
(From OE-Core rev: c9e12bc8872710ca7f788d3709c42425872fd033)
Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
4 files changed, 36 insertions, 152 deletions
diff --git a/meta/recipes-graphics/vulkan/vulkan-demos/0001-Don-t-build-demos-with-questionably-licensed-data.patch b/meta/recipes-graphics/vulkan/vulkan-demos/0001-Don-t-build-demos-with-questionably-licensed-data.patch index d32c8f2803..93bcfbf851 100644 --- a/meta/recipes-graphics/vulkan/vulkan-demos/0001-Don-t-build-demos-with-questionably-licensed-data.patch +++ b/meta/recipes-graphics/vulkan/vulkan-demos/0001-Don-t-build-demos-with-questionably-licensed-data.patch | |||
@@ -1,6 +1,6 @@ | |||
1 | From 55770fb07c42fe410cf8d09f8f5976babc89b9ef Mon Sep 17 00:00:00 2001 | 1 | From 0a27144d43b70121f57f6036514d069ca9d2b971 Mon Sep 17 00:00:00 2001 |
2 | From: Jussi Kukkonen <jussi.kukkonen@intel.com> | 2 | From: "Maxin B. John" <maxin.john@intel.com> |
3 | Date: Tue, 4 Jul 2017 17:13:45 +0300 | 3 | Date: Mon, 30 Jul 2018 17:23:29 +0300 |
4 | Subject: [PATCH] Don't build demos with questionably licensed data | 4 | Subject: [PATCH] Don't build demos with questionably licensed data |
5 | 5 | ||
6 | Some of the models don't have open source compatible licenses: | 6 | Some of the models don't have open source compatible licenses: |
@@ -9,43 +9,46 @@ resources that are not included. | |||
9 | 9 | ||
10 | ssao: | 10 | ssao: |
11 | scenerendering: | 11 | scenerendering: |
12 | Sibenik model, no license found | 12 | Sibenik model, no license found |
13 | 13 | ||
14 | deferred: | 14 | deferred: |
15 | deferredmultisampling: | 15 | deferredmultisampling: |
16 | deferredshadows: | 16 | deferredshadows: |
17 | armor model, CC-BY-3.0 | 17 | armor model, CC-BY-3.0 |
18 | 18 | ||
19 | vulkanscene: | 19 | vulkanscene: |
20 | imgui: | 20 | imgui: |
21 | shadowmapping: | 21 | shadowmapping: |
22 | vulkanscene model, no license found | 22 | vulkanscene model, no license found |
23 | 23 | ||
24 | indirectdraw: | 24 | indirectdraw: |
25 | plant model, no license found | 25 | plant model, no license found |
26 | 26 | ||
27 | hdr: | 27 | hdr: |
28 | pbribl: | 28 | pbribl: |
29 | pbrtexture: | 29 | pbrtexture: |
30 | Require external Vulkan Asset Pack | 30 | Require external Vulkan Asset Pack |
31 | 31 | ||
32 | Upstream-Status: Inappropriate [configuration] | 32 | Upstream-Status: Inappropriate [configuration] |
33 | |||
33 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> | 34 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> |
35 | Signed-off-by: Maxin B. John <maxin.john@intel.com> | ||
34 | --- | 36 | --- |
35 | CMakeLists.txt | 13 ------------- | 37 | examples/CMakeLists.txt | 14 -------------- |
36 | 1 file changed, 13 deletions(-) | 38 | 1 file changed, 14 deletions(-) |
37 | 39 | ||
38 | diff --git a/CMakeLists.txt b/CMakeLists.txt | 40 | diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt |
39 | index 4958fff..0f9d3e4 100644 | 41 | index 8eee3a4..698d3b3 100644 |
40 | --- a/CMakeLists.txt | 42 | --- a/examples/CMakeLists.txt |
41 | +++ b/CMakeLists.txt | 43 | +++ b/examples/CMakeLists.txt |
42 | @@ -150,17 +150,11 @@ set(EXAMPLES | 44 | @@ -47,18 +47,12 @@ set(EXAMPLES |
43 | computeparticles | ||
44 | computeshader | 45 | computeshader |
46 | conservativeraster | ||
45 | debugmarker | 47 | debugmarker |
46 | - deferred | 48 | - deferred |
47 | - deferredmultisampling | 49 | - deferredmultisampling |
48 | - deferredshadows | 50 | - deferredshadows |
51 | descriptorsets | ||
49 | displacement | 52 | displacement |
50 | distancefieldfonts | 53 | distancefieldfonts |
51 | dynamicuniformbuffer | 54 | dynamicuniformbuffer |
@@ -53,32 +56,36 @@ index 4958fff..0f9d3e4 100644 | |||
53 | geometryshader | 56 | geometryshader |
54 | - hdr | 57 | - hdr |
55 | - imgui | 58 | - imgui |
56 | - indirectdraw | 59 | - indirectdraw |
60 | inputattachments | ||
57 | instancing | 61 | instancing |
58 | mesh | 62 | mesh |
59 | multisampling | 63 | @@ -70,8 +64,6 @@ set(EXAMPLES |
60 | @@ -170,20 +164,14 @@ set(EXAMPLES | ||
61 | parallaxmapping | 64 | parallaxmapping |
62 | particlefire | 65 | particlefire |
63 | pbrbasic | 66 | pbrbasic |
64 | - pbribl | 67 | - pbribl |
65 | - pbrtexture | 68 | - pbrtexture |
66 | pipelines | 69 | pipelines |
70 | pipelinestatistics | ||
67 | pushconstants | 71 | pushconstants |
72 | @@ -79,15 +71,10 @@ set(EXAMPLES | ||
68 | radialblur | 73 | radialblur |
69 | raytracing | 74 | raytracing |
75 | renderheadless | ||
70 | - scenerendering | 76 | - scenerendering |
71 | screenshot | 77 | screenshot |
72 | - shadowmapping | 78 | - shadowmapping |
73 | - shadowmappingomni | 79 | - shadowmappingomni |
80 | - shadowmappingcascade | ||
74 | skeletalanimation | 81 | skeletalanimation |
75 | specializationconstants | 82 | specializationconstants |
76 | sphericalenvmapping | 83 | sphericalenvmapping |
77 | - ssao | 84 | - ssao |
85 | stencilbuffer | ||
78 | subpasses | 86 | subpasses |
79 | terraintessellation | 87 | terraintessellation |
80 | tessellation | 88 | @@ -101,7 +88,6 @@ set(EXAMPLES |
81 | @@ -196,7 +184,6 @@ set(EXAMPLES | ||
82 | texturesparseresidency | 89 | texturesparseresidency |
83 | triangle | 90 | triangle |
84 | viewportarray | 91 | viewportarray |
@@ -87,5 +94,5 @@ index 4958fff..0f9d3e4 100644 | |||
87 | 94 | ||
88 | buildExamples() | 95 | buildExamples() |
89 | -- | 96 | -- |
90 | 2.13.2 | 97 | 2.4.0 |
91 | 98 | ||
diff --git a/meta/recipes-graphics/vulkan/vulkan-demos/0001-Fix-build-on-x86.patch b/meta/recipes-graphics/vulkan/vulkan-demos/0001-Fix-build-on-x86.patch deleted file mode 100644 index 681b3422d9..0000000000 --- a/meta/recipes-graphics/vulkan/vulkan-demos/0001-Fix-build-on-x86.patch +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | From b0495efb6c3ea3a530fcbaddac86da57ecce5a66 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jussi Kukkonen <jussi.kukkonen@intel.com> | ||
3 | Date: Mon, 10 Jul 2017 13:11:12 +0300 | ||
4 | Subject: [PATCH] Fix build on x86 | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | | func_common.inl:193:51: error: wrong number of template arguments | ||
10 | | (5, should be 6) struct compute_sign<T, P, vecType, false, Aligned> | ||
11 | |||
12 | The fix is backported from the upstream glm project. | ||
13 | |||
14 | Upstream-Status: Pending [https://github.com/SaschaWillems/Vulkan/issues/356] | ||
15 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> | ||
16 | --- | ||
17 | external/glm/glm/detail/func_common.inl | 4 ++-- | ||
18 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
19 | |||
20 | diff --git a/external/glm/glm/detail/func_common.inl b/external/glm/glm/detail/func_common.inl | ||
21 | index cafaed5..2dd94e1 100644 | ||
22 | --- a/external/glm/glm/detail/func_common.inl | ||
23 | +++ b/external/glm/glm/detail/func_common.inl | ||
24 | @@ -190,12 +190,12 @@ namespace detail | ||
25 | |||
26 | # if GLM_ARCH == GLM_ARCH_X86 | ||
27 | template<length_t L, typename T, precision P, template<length_t, typename, precision> class vecType, bool Aligned> | ||
28 | - struct compute_sign<T, P, vecType, false, Aligned> | ||
29 | + struct compute_sign<L, T, P, vecType, false, Aligned> | ||
30 | { | ||
31 | GLM_FUNC_QUALIFIER static vecType<L, T, P> call(vecType<L, T, P> const & x) | ||
32 | { | ||
33 | T const Shift(static_cast<T>(sizeof(T) * 8 - 1)); | ||
34 | - vecType<L, T, P> const y(vecType<typename make_unsigned<T>::type, P>(-x) >> typename make_unsigned<T>::type(Shift)); | ||
35 | + vecType<L, T, P> const y(vecType<L, typename make_unsigned<T>::type, P>(-x) >> typename make_unsigned<T>::type(Shift)); | ||
36 | |||
37 | return (x >> Shift) | y; | ||
38 | } | ||
39 | -- | ||
40 | 2.1.4 | ||
41 | |||
diff --git a/meta/recipes-graphics/vulkan/vulkan-demos/0001-Support-installing-demos-support-out-of-tree-builds.patch b/meta/recipes-graphics/vulkan/vulkan-demos/0001-Support-installing-demos-support-out-of-tree-builds.patch deleted file mode 100644 index 4addea3bf1..0000000000 --- a/meta/recipes-graphics/vulkan/vulkan-demos/0001-Support-installing-demos-support-out-of-tree-builds.patch +++ /dev/null | |||
@@ -1,85 +0,0 @@ | |||
1 | From edca667684764cfcc0460e448e834fadf623a887 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jussi Kukkonen <jussi.kukkonen@intel.com> | ||
3 | Date: Mon, 3 Jul 2017 14:49:18 +0300 | ||
4 | Subject: [PATCH] Support installing demos, support out-of-tree builds | ||
5 | |||
6 | This is especially useful for cross-compile situation where testing | ||
7 | happens on target. | ||
8 | |||
9 | -DRESOURCE_INSTALL_DIR=<path> decides where data is installed (and | ||
10 | where the binaries will load the data from): if it's left empty, | ||
11 | then nothing will be installed and binaries will load the data from | ||
12 | CMAKE_SOURCE_DIR. | ||
13 | |||
14 | Binaries are now correctly built in CMAKE_BINARY_DIR. | ||
15 | |||
16 | Upstream-Status: Submitted [https://github.com/SaschaWillems/Vulkan/pull/352] | ||
17 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> | ||
18 | --- | ||
19 | CMakeLists.txt | 15 ++++++++++++++- | ||
20 | base/vulkanexamplebase.cpp | 2 +- | ||
21 | 2 files changed, 15 insertions(+), 2 deletions(-) | ||
22 | |||
23 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
24 | index b9886bc..4958fff 100644 | ||
25 | --- a/CMakeLists.txt | ||
26 | +++ b/CMakeLists.txt | ||
27 | @@ -16,6 +16,8 @@ include_directories(base) | ||
28 | OPTION(USE_D2D_WSI "Build the project using Direct to Display swapchain" OFF) | ||
29 | OPTION(USE_WAYLAND_WSI "Build the project using Wayland swapchain" OFF) | ||
30 | |||
31 | +set(RESOURCE_INSTALL_DIR "" CACHE PATH "Path to install resources to (leave empty for running uninstalled)") | ||
32 | + | ||
33 | # Use FindVulkan module added with CMAKE 3.7 | ||
34 | if (NOT CMAKE_VERSION VERSION_LESS 3.7.0) | ||
35 | message(STATUS "Using module to find Vulkan") | ||
36 | @@ -108,6 +110,10 @@ function(buildExample EXAMPLE_NAME) | ||
37 | add_executable(${EXAMPLE_NAME} ${MAIN_CPP} ${SOURCE} ${SHADERS}) | ||
38 | target_link_libraries(${EXAMPLE_NAME} ${Vulkan_LIBRARY} ${ASSIMP_LIBRARIES} ${WAYLAND_CLIENT_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) | ||
39 | endif(WIN32) | ||
40 | + | ||
41 | + if(RESOURCE_INSTALL_DIR) | ||
42 | + install(TARGETS ${EXAMPLE_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR}) | ||
43 | + endif() | ||
44 | endfunction(buildExample) | ||
45 | |||
46 | # Build all examples | ||
47 | @@ -117,6 +123,13 @@ function(buildExamples) | ||
48 | endforeach(EXAMPLE) | ||
49 | endfunction(buildExamples) | ||
50 | |||
51 | +if(RESOURCE_INSTALL_DIR) | ||
52 | + add_definitions(-DVK_EXAMPLE_DATA_DIR=\"${RESOURCE_INSTALL_DIR}/\") | ||
53 | + install(DIRECTORY data/ DESTINATION ${RESOURCE_INSTALL_DIR}/) | ||
54 | +else() | ||
55 | + add_definitions(-DVK_EXAMPLE_DATA_DIR=\"${CMAKE_SOURCE_DIR}/data/\") | ||
56 | +endif() | ||
57 | + | ||
58 | # Compiler specific stuff | ||
59 | IF(MSVC) | ||
60 | SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc") | ||
61 | @@ -128,7 +141,7 @@ ELSE(WIN32) | ||
62 | link_libraries(${XCB_LIBRARIES} ${Vulkan_LIBRARY}) | ||
63 | ENDIF(WIN32) | ||
64 | |||
65 | -set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin/") | ||
66 | +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/") | ||
67 | |||
68 | set(EXAMPLES | ||
69 | bloom | ||
70 | diff --git a/base/vulkanexamplebase.cpp b/base/vulkanexamplebase.cpp | ||
71 | index 647368a..a0f28a5 100644 | ||
72 | --- a/base/vulkanexamplebase.cpp | ||
73 | +++ b/base/vulkanexamplebase.cpp | ||
74 | @@ -84,7 +84,7 @@ const std::string VulkanExampleBase::getAssetPath() | ||
75 | #if defined(__ANDROID__) | ||
76 | return ""; | ||
77 | #else | ||
78 | - return "./../data/"; | ||
79 | + return VK_EXAMPLE_DATA_DIR; | ||
80 | #endif | ||
81 | } | ||
82 | #endif | ||
83 | -- | ||
84 | 2.13.2 | ||
85 | |||
diff --git a/meta/recipes-graphics/vulkan/vulkan-demos_git.bb b/meta/recipes-graphics/vulkan/vulkan-demos_git.bb index 5fc9c2dba7..bf30c980c0 100644 --- a/meta/recipes-graphics/vulkan/vulkan-demos_git.bb +++ b/meta/recipes-graphics/vulkan/vulkan-demos_git.bb | |||
@@ -3,15 +3,18 @@ LICENSE = "MIT" | |||
3 | DEPENDS = "zlib" | 3 | DEPENDS = "zlib" |
4 | 4 | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=dcf473723faabf17baa9b5f2207599d0 \ | 5 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=dcf473723faabf17baa9b5f2207599d0 \ |
6 | file://triangle/triangle.cpp;endline=12;md5=bccd1bf9cadd9e10086cf7872157e4fa" | 6 | file://examples/triangle/triangle.cpp;endline=12;md5=bccd1bf9cadd9e10086cf7872157e4fa" |
7 | |||
8 | SRCREV_glm = "01f9ab5b6d21e5062ac0f6e0f205c7fa2ca9d769" | ||
9 | SRCREV_gli = "8e43030b3e12bb58a4663d85adc5c752f89099c0" | ||
7 | 10 | ||
8 | SRC_URI = "git://github.com/SaschaWillems/Vulkan.git \ | 11 | SRC_URI = "git://github.com/SaschaWillems/Vulkan.git \ |
9 | file://0001-Support-installing-demos-support-out-of-tree-builds.patch \ | 12 | git://github.com/g-truc/glm;destsuffix=git/external/glm;name=glm \ |
13 | git://github.com/g-truc/gli;destsuffix=git/external/gli;name=gli \ | ||
10 | file://0001-Don-t-build-demos-with-questionably-licensed-data.patch \ | 14 | file://0001-Don-t-build-demos-with-questionably-licensed-data.patch \ |
11 | file://0001-Fix-build-on-x86.patch \ | ||
12 | " | 15 | " |
13 | UPSTREAM_CHECK_COMMITS = "1" | 16 | UPSTREAM_CHECK_COMMITS = "1" |
14 | SRCREV = "18df00c7b4677b0889486e16977857aa987947e2" | 17 | SRCREV = "ae0b59c6e2e8630a2ae26f4a0b7a72cbe7547948" |
15 | UPSTREAM_CHECK_GITTAGREGEX = "These are not the releases you're looking for" | 18 | UPSTREAM_CHECK_GITTAGREGEX = "These are not the releases you're looking for" |
16 | S = "${WORKDIR}/git" | 19 | S = "${WORKDIR}/git" |
17 | 20 | ||