opengl-es-cts,vulkan-cts: Upgrade recipes to 3.2.11.0 and 1.3.9.2
PATCH 1/1 opengl-es-cts,vulkan-cts: Upgrade recipes to 3.2.11.0 and 1.3.9.2
- Drop patches which are upstreamed.
- Move common patches to files/ dir
- Use gcc to compile for now as it does not work with clang+libc++
Signed-off-by Khem Raj <[email protected]>
---
...LAND_SCANNER-and-WAYLAND_PROTOCOLS_D.patch | 22 ++--
...0001-use-library-sonames-for-linking.patch | 123 ++++++++++++++++++
...1-vulkan-cts-include-missing-cstdint.patch | 34 -----
...01-vulkancts-Include-missing-cstdint.patch | 32 -----
.../files/fix-clang-private-operator.patch | 2 +-
.../vk-gl-cts/files/fix-musl.patch | 4 +-
.../vk-gl-cts/files/gen-framework-path.patch | 20 ---
.../vk-gl-cts/khronos-cts.inc | 29 +++--
...0001-use-library-sonames-for-linking.patch | 114 ----------------
...s_3.2.9.3.bb => opengl-es-cts_3.2.11.0.bb} | 24 ++--
...0001-use-library-sonames-for-linking.patch | 114 ----------------
.../vk-gl-cts/vulkan-cts_1.3.7.3.bb | 41 ------
.../vk-gl-cts/vulkan-cts_1.3.9.2.bb | 32 +++++
13 files changed, 194 insertions(+), 397 deletions(-)
create mode 100644 meta-oe/recipes-graphics/vk-gl-cts/files/0001-use-library-sonames-for-linking.patch
delete mode 100644 meta-oe/recipes-graphics/vk-gl-cts/files/0001-vulkan-cts-include-missing-cstdint.patch
delete mode 100644 meta-oe/recipes-graphics/vk-gl-cts/files/0001-vulkancts-Include-missing-cstdint.patch
delete mode 100644 meta-oe/recipes-graphics/vk-gl-cts/files/gen-framework-path.patch
delete mode 100644 meta-oe/recipes-graphics/vk-gl-cts/opengl-es-cts/0001-use-library-sonames-for-linking.patch
rename meta-oe/recipes-graphics/vk-gl-cts/{opengl-es-cts_3.2.9.3.bb => opengl-es-cts_3.2.11.0.bb} (61%)
delete mode 100644 meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts/0001-use-library-sonames-for-linking.patch
delete mode 100644 meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts_1.3.7.3.bb
create mode 100644 meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts_1.3.9.2.bbmeta-oe/recipes-graphics/vk-gl-cts/files/0001-cmake-Define-WAYLAND_SCANNER-and-WAYLAND_PROTOCOLS_D.patch +11 -11
@@ -15,15 +15,15 @@ Signed-off-by: Khem Raj <[email protected]> --- a/framework/platform/CMakeLists.txt +++ b/framework/platform/CMakeLists.txt -@@ -73,8 +73,9 @@ if (NOT DEFINED TCUTIL_PLATFORM_SRCS) - add_definitions(-DDEQP_SUPPORT_WAYLAND=1) - include_directories(lnx/wayland) - -- pkg_get_variable(WAYLAND_PROTOCOLS_DIR wayland-protocols pkgdatadir) +@@ -83,8 +83,9 @@ if (NOT DEFINED TCUTIL_PLATFORM_SRCS) + configure_file(${WAYLAND_XDG_SHELL_SRC_DIR}/xdg-shell.c ${DEQP_XDG_SHELL_GEN_OUTPUTS_DIR}/xdg-shell.c COPYONLY) + configure_file(${WAYLAND_XDG_SHELL_SRC_DIR}/xdg-shell.h ${DEQP_XDG_SHELL_GEN_OUTPUTS_DIR}/xdg-shell.h COPYONLY) + else () +- pkg_get_variable(WAYLAND_PROTOCOLS_DIR wayland-protocols pkgdatadir) - -+ if (NOT WAYLAND_PROTOCOLS_DIR) -+ pkg_get_variable(WAYLAND_PROTOCOLS_DIR wayland-protocols pkgdatadir) -+ endif() - if (NOT WAYLAND_SCANNER) - pkg_get_variable(WAYLAND_SCANNER wayland-scanner wayland_scanner) - endif() ++ if (NOT WAYLAND_PROTOCOL_DIR) ++ pkg_get_variable(WAYLAND_PROTOCOLS_DIR wayland-protocols pkgdatadir) ++ endif() + if (NOT WAYLAND_SCANNER) + pkg_get_variable(WAYLAND_SCANNER wayland-scanner wayland_scanner) + endif()
meta-oe/recipes-graphics/vk-gl-cts/files/0001-use-library-sonames-for-linking.patch new file +123 -0
123 lines not on this page · raw message
meta-oe/recipes-graphics/vk-gl-cts/files/0001-vulkan-cts-include-missing-cstdint.patch deleted +0 -34
@@ -1,34 +0,0 @@ -From b07f6ecd6ab83b788301a555dc546b9a5c9dd8a2 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Wed, 25 Jan 2023 19:19:34 -0800 -Subject: [PATCH] Include missing <cstdint> - -This error is seen with gcc-13 where include headers are not implicitly -included [1] - -Fixes errors e.g. -error: 'uint32_t' does not name a type - -[1] https://www.gnu.org/software/gcc/gcc-13/porting_to.html - -Upstream-Status: Submitted [https://github.com/KhronosGroup/VK-GL-CTS/pull/378] -Signed-off-by: Khem Raj <[email protected]> ---- - framework/common/tcuDefs.hpp | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/framework/common/tcuDefs.hpp b/framework/common/tcuDefs.hpp -index ad3d0736d..6dfac10fb 100644 ---- a/framework/common/tcuDefs.hpp -+++ b/framework/common/tcuDefs.hpp -@@ -26,6 +26,7 @@ - #include "deDefs.hpp" - #include "qpTestLog.h" - -+#include <cstdint> - #include <string> - #include <stdexcept> - --- -2.39.1 -
meta-oe/recipes-graphics/vk-gl-cts/files/0001-vulkancts-Include-missing-cstdint.patch deleted +0 -32
@@ -1,32 +0,0 @@ -From 1b7646ced0f0b969f818084887885827ed1a4244 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Mon, 31 May 2021 17:31:33 -0700 -Subject: [PATCH] vulkancts: Include missing <cstdint> - -Fixes build with gcc-13 - -../git/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmFloatControlsTests.cpp:2798:102: error: 'uintptr_t' in namespace 'std' does not name a type - 2798 | BufferDataType type = static_cast<BufferDataType>(reinterpret_cast<std::uintptr_t>(expectedOutputs[resultIndex].getUserData())); - | ^~~~~~~~~ - -Upstream-Status: Submitted [https://github.com/KhronosGroup/VK-GL-CTS/pull/378] -Signed-off-by: Khem Raj <[email protected]> ---- - .../vulkan/spirv_assembly/vktSpvAsmFloatControlsTests.cpp | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmFloatControlsTests.cpp b/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmFloatControlsTests.cpp -index ab02be1dc..3d3ee4829 100644 ---- a/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmFloatControlsTests.cpp -+++ b/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmFloatControlsTests.cpp -@@ -33,6 +33,7 @@ - #include "deFloat16.h" - #include "vkQueryUtil.hpp" - #include "vkRefUtil.hpp" -+#include <cstdint> - #include <cstring> - #include <vector> - #include <limits> --- -2.39.1 -
meta-oe/recipes-graphics/vk-gl-cts/files/fix-clang-private-operator.patch +1 -1
@@ -2,7 +2,7 @@ Upstream-Status: Pending --- a/external/glslang/src/glslang/Include/PoolAlloc.h +++ b/external/glslang/src/glslang/Include/PoolAlloc.h -@@ -240,8 +240,9 @@ protected: +@@ -245,8 +245,9 @@ protected: int numCalls; // just an interesting statistic size_t totalBytes; // just an interesting statistic
meta-oe/recipes-graphics/vk-gl-cts/files/fix-musl.patch +2 -2
@@ -2,9 +2,9 @@ Upstream-Status: Pending --- a/framework/delibs/dethread/CMakeLists.txt +++ b/framework/delibs/dethread/CMakeLists.txt -@@ -42,6 +42,7 @@ if (DE_OS_IS_UNIX) +@@ -41,6 +41,7 @@ if (DE_OS_IS_UNIX) + if (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") add_definitions(-D__BSD_VISIBLE) - add_definitions(-D_XOPEN_SOURCE=600) endif () + add_definitions(-D_XOPEN_SOURCE=600) add_definitions(-D_GNU_SOURCE)
meta-oe/recipes-graphics/vk-gl-cts/files/gen-framework-path.patch deleted +0 -20
@@ -1,20 +0,0 @@ -Prepend instead of append to the module search path, as this script needs to use -the local module build, not the host module build. - -Upstream-Status: Submitted -Signed-off-by: Ross Burton <[email protected]> - -diff --git a/external/vulkancts/scripts/gen_framework.py b/external/vulkancts/scripts/gen_framework.py -index 83c5329ce..10e720910 100755 ---- a/external/vulkancts/scripts/gen_framework.py -+++ b/external/vulkancts/scripts/gen_framework.py -@@ -33 +33 @@ from collections import OrderedDict --sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts")) -+sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts")) -diff --git a/external/vulkancts/scripts/gen_framework_c.py b/external/vulkancts/scripts/gen_framework_c.py -index 95587e642..84b878cb2 100644 ---- a/external/vulkancts/scripts/gen_framework_c.py -+++ b/external/vulkancts/scripts/gen_framework_c.py -@@ -28 +28 @@ import re --sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts")) -+sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts"))
meta-oe/recipes-graphics/vk-gl-cts/khronos-cts.inc +16 -13
@@ -3,20 +3,19 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" SRC_URI = "\ git://github.com/KhronosGroup/VK-GL-CTS.git;protocol=https;name=vk-gl-cts;nobranch=1 \ - git://github.com/google/amber;protocol=https;destsuffix=git/external/amber/src;name=amber;branch=main \ - git://github.com/KhronosGroup/glslang.git;protocol=https;destsuffix=git/external/glslang/src;name=glslang;branch=main \ - git://github.com/KhronosGroup/SPIRV-Headers.git;protocol=https;destsuffix=git/external/spirv-headers/src;name=spirv-headers;branch=main \ - git://github.com/KhronosGroup/SPIRV-Tools.git;protocol=https;destsuffix=git/external/spirv-tools/src;name=spirv-tools;branch=main \ - git://github.com/open-source-parsers/jsoncpp.git;protocol=https;destsuffix=git/external/jsoncpp/src;name=jsoncpp;branch=master \ - git://github.com/KhronosGroup/Vulkan-Docs.git;protocol=https;destsuffix=git/external/vulkan-docs/src;name=vulkan-docs;branch=main \ - https://raw.githubusercontent.com/baldurk/renderdoc/v1.1/renderdoc/api/app/renderdoc_app.h;subdir=git/external/renderdoc/src;name=renderdoc \ - git://github.com/Igalia/ESExtractor.git;protocol=https;destsuffix=git/external/ESExtractor/src;name=ESExtractor;branch=main \ - git://github.com/Igalia/vk_video_samples.git;protocol=https;destsuffix=git/external/nvidia-video-samples/src;name=video-parser;nobranch=1 \ + git://github.com/google/amber;protocol=https;destsuffix=git/external/amber/src;name=amber;nobranch=1 \ + git://github.com/KhronosGroup/glslang.git;protocol=https;destsuffix=git/external/glslang/src;name=glslang;nobranch=1 \ + git://github.com/KhronosGroup/SPIRV-Headers.git;protocol=https;destsuffix=git/external/spirv-headers/src;name=spirv-headers;nobranch=1 \ + git://github.com/KhronosGroup/SPIRV-Tools.git;protocol=https;destsuffix=git/external/spirv-tools/src;name=spirv-tools;nobranch=1 \ + git://github.com/open-source-parsers/jsoncpp.git;protocol=https;destsuffix=git/external/jsoncpp/src;name=jsoncpp;nobranch=1 \ + git://github.com/KhronosGroup/Vulkan-Docs.git;protocol=https;destsuffix=git/external/vulkan-docs/src;name=vulkan-docs;nobranch=1 \ + git://github.com/KhronosGroup/Vulkan-ValidationLayers.git;protocol=https;destsuffix=git/external/vulkan-validationlayers/src;name=vulkan-validationlayers;nobranch=1 \ + git://github.com/Igalia/ESExtractor.git;protocol=https;destsuffix=git/external/ESExtractor/src;name=ESExtractor;nobranch=1 \ + git://github.com/Igalia/vk_video_samples.git;protocol=https;destsuffix=git/external/nvidia-video-samples/src;name=video-parser;nobranch=1 \ + https://raw.githubusercontent.com/baldurk/renderdoc/v1.1/renderdoc/api/app/renderdoc_app.h;subdir=git/external/renderdoc/src;name=renderdoc \ " -S = "${WORKDIR}/git" - -SRCREV_FORMAT = "vk-gl-cts_amber_glslang_spirv-headers_spirv-tools_jsoncpp_vulkan-docs" +SRCREV_FORMAT = "vk-gl-cts_amber_glslang_spirv-headers_spirv-tools_jsoncpp_video-parser_vulkan-docs_vulkan-validationlayers" S = "${WORKDIR}/git"
@@ -27,7 +26,7 @@ ANY_OF_DISTRO_FEATURES += "opengl vulkan" DEPENDS += "python3-lxml-native libpng zlib virtual/libgles2 qemu-native" SRC_URI += " \ - file://0001-vulkancts-Include-missing-cstdint.patch \ + file://0001-cmake-Define-WAYLAND_SCANNER-and-WAYLAND_PROTOCOLS_D.patch \ file://0001-use-library-sonames-for-linking.patch \ "
@@ -81,3 +80,7 @@ python __anonymous() { CTSDIR = "/usr/lib/${BPN}" FILES:${PN} += "${CTSDIR}" + +# does not work with libc++-19 due +# error: implicit instantiation of undefined template 'std::char_traits<unsigned int>' +TOOLCHAIN = "gcc"
meta-oe/recipes-graphics/vk-gl-cts/opengl-es-cts/0001-use-library-sonames-for-linking.patch deleted +0 -114
114 lines not on this page · raw message
meta-oe/recipes-graphics/vk-gl-cts/opengl-es-cts_3.2.11.0.bb renamed from meta-oe/recipes-graphics/vk-gl-cts/opengl-es-cts_3.2.9.3.bb +9 -15
@@ -1,25 +1,20 @@ DESCRIPTION = "OpenGL CTS" require khronos-cts.inc -# opengl-es-cts-3.2.9.3 -SRCREV_vk-gl-cts = "7f5fb62245d535a1fc0bf50b2c7e5a342dc551fe" -SRCREV_amber = "933ecb4d6288675a92eb1650e0f52b1d7afe8273" -SRCREV_glslang = "a0ad0d7067521fff880e36acfb8ce453421c3f25" -SRCREV_spirv-headers = "87d5b782bec60822aa878941e6b13c0a9a954c9b" -SRCREV_spirv-tools = "f98473ceeb1d33700d01e20910433583e5256030" +# opengl-es-cts-3.2.11.0 +SRCREV_vk-gl-cts = "66956d195169596472e956e3aebf2df8e3bd960d" +SRCREV_amber = "0f003c2785489f59cd01bb2440fcf303149100f2" +SRCREV_glslang = "4da479aa6afa43e5a2ce4c4148c572a03123faf3" +SRCREV_spirv-headers = "ff2afc3afc48dff4eec2a10f0212402a80708e38" +SRCREV_spirv-tools = "148c97f6876e427efd76d2328122c3075eab4b8f" SRCREV_ESExtractor = "ce5d7ebcf0ebb0d78385ee4cc34653eb6764bfc4" # Not yet needed SRCREV_jsoncpp = "9059f5cad030ba11d37818847443a53918c327b1" -SRCREV_vulkan-docs = "9a2e576a052a1e65a5d41b593e693ff02745604b" -SRCREV_video-parser = "7d68747d3524842afaf050c5e00a10f5b8c07904" +SRCREV_vulkan-docs = "ed4ba0242beb89a1795d6084709fa9e713559c94" +SRCREV_vulkan-validationlayers = "a92629196a4fed15e59c74aa965dd47bd5ece3b7" +SRCREV_video-parser = "6821adf11eb4f84a2168264b954c170d03237699" SRC_URI[renderdoc.sha256sum] = "e7b5f0aa5b1b0eadc63a1c624c0ca7f5af133aa857d6a4271b0ef3d0bdb6868e" -SRC_URI += "\ - git://github.com/nvpro-samples/vk_video_samples.git;protocol=https;destsuffix=git/external/video-parser/src;name=video-parser;branch=main \ - file://gen-framework-path.patch \ - " -S = "${WORKDIR}/git" - do_install() { install -d ${D}/${CTSDIR} cp -r ${B}/external/openglcts/modules/* ${D}/${CTSDIR}
@@ -37,4 +32,3 @@ do_install() { SECURITY_CFLAGS:riscv64 = "${SECURITY_NOPIE_CFLAGS}" LTO = "" -
meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts/0001-use-library-sonames-for-linking.patch deleted +0 -114
114 lines not on this page · raw message
meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts_1.3.7.3.bb deleted +0 -41
41 lines not on this page · raw message
meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts_1.3.9.2.bb new file +32 -0
@@ -0,0 +1,32 @@ +DESCRIPTION = "Vulkan CTS" + +require khronos-cts.inc + +# vulkan-cts-1.3.9.2 +SRCREV_vk-gl-cts = "24c1b1498ba4f05777f47541968ffe686265c645" +SRCREV_amber = "0f003c2785489f59cd01bb2440fcf303149100f2" +SRCREV_glslang = "2b19bf7e1bc0b60cf2fe9d33e5ba6b37dfc1cc83" +SRCREV_spirv-headers = "db5a00f8cebe81146cafabf89019674a3c4bf03d" +SRCREV_spirv-tools = "4c7e1fa5c3d988cca0e626d359d30b117b9c2822" +SRCREV_jsoncpp = "9059f5cad030ba11d37818847443a53918c327b1" +SRCREV_vulkan-docs = "7bb606eb87cde1d34f65f36f4d4c6f2c78f072c8" +SRCREV_vulkan-validationlayers = "a92629196a4fed15e59c74aa965dd47bd5ece3b7" +SRC_URI[renderdoc.sha256sum] = "e7b5f0aa5b1b0eadc63a1c624c0ca7f5af133aa857d6a4271b0ef3d0bdb6868e" +# Not yet needed +SRCREV_ESExtractor = "75ffcaf55bb069f7a23764194742d2fb78c7f71f" +SRCREV_video-parser = "6821adf11eb4f84a2168264b954c170d03237699" + +# Workaround an optimization bug that breaks createMeshShaderMiscTestsEXT +OECMAKE_CXX_FLAGS:remove:toolchain-gcc = "-O2" + +REQUIRED_DISTRO_FEATURES = "vulkan" +inherit features_check + +DEPENDS += " vulkan-loader" + +do_install() { + install -d ${D}/${CTSDIR} + cp -r ${B}/external/vulkancts/modules/vulkan/* ${D}/${CTSDIR}/ + rm -rf ${D}/${CTSDIR}/*.a ${D}/${CTSDIR}/cmake_install.cmake ${D}/${CTSDIR}/CMakeFiles + rm -rf ${D}/${CTSDIR}/*/*.a ${D}/${CTSDIR}/*/cmake_install.cmake ${D}/${CTSDIR}/*/CMakeFiles +}