diff options
| author | Khem Raj <raj.khem@gmail.com> | 2024-09-07 13:39:13 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-09-09 18:23:01 -0700 |
| commit | f8ea49d484958d2a267e4eb9440069ab5797cf93 (patch) | |
| tree | abb82d93fc810974c9a7559ac5f0894e4dce379b /meta-oe/recipes-graphics/vk-gl-cts/files | |
| parent | 9afc79f3a78df10352f4adfbfa8ae7750ef80076 (diff) | |
| download | meta-openembedded-f8ea49d484958d2a267e4eb9440069ab5797cf93.tar.gz | |
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 <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-graphics/vk-gl-cts/files')
7 files changed, 137 insertions, 100 deletions
diff --git a/meta-oe/recipes-graphics/vk-gl-cts/files/0001-cmake-Define-WAYLAND_SCANNER-and-WAYLAND_PROTOCOLS_D.patch b/meta-oe/recipes-graphics/vk-gl-cts/files/0001-cmake-Define-WAYLAND_SCANNER-and-WAYLAND_PROTOCOLS_D.patch index f659e36066..9eef9a702e 100644 --- a/meta-oe/recipes-graphics/vk-gl-cts/files/0001-cmake-Define-WAYLAND_SCANNER-and-WAYLAND_PROTOCOLS_D.patch +++ b/meta-oe/recipes-graphics/vk-gl-cts/files/0001-cmake-Define-WAYLAND_SCANNER-and-WAYLAND_PROTOCOLS_D.patch | |||
| @@ -15,15 +15,15 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 15 | 15 | ||
| 16 | --- a/framework/platform/CMakeLists.txt | 16 | --- a/framework/platform/CMakeLists.txt |
| 17 | +++ b/framework/platform/CMakeLists.txt | 17 | +++ b/framework/platform/CMakeLists.txt |
| 18 | @@ -73,8 +73,9 @@ if (NOT DEFINED TCUTIL_PLATFORM_SRCS) | 18 | @@ -83,8 +83,9 @@ if (NOT DEFINED TCUTIL_PLATFORM_SRCS) |
| 19 | add_definitions(-DDEQP_SUPPORT_WAYLAND=1) | 19 | configure_file(${WAYLAND_XDG_SHELL_SRC_DIR}/xdg-shell.c ${DEQP_XDG_SHELL_GEN_OUTPUTS_DIR}/xdg-shell.c COPYONLY) |
| 20 | include_directories(lnx/wayland) | 20 | configure_file(${WAYLAND_XDG_SHELL_SRC_DIR}/xdg-shell.h ${DEQP_XDG_SHELL_GEN_OUTPUTS_DIR}/xdg-shell.h COPYONLY) |
| 21 | 21 | else () | |
| 22 | - pkg_get_variable(WAYLAND_PROTOCOLS_DIR wayland-protocols pkgdatadir) | 22 | - pkg_get_variable(WAYLAND_PROTOCOLS_DIR wayland-protocols pkgdatadir) |
| 23 | - | 23 | - |
| 24 | + if (NOT WAYLAND_PROTOCOLS_DIR) | 24 | + if (NOT WAYLAND_PROTOCOL_DIR) |
| 25 | + pkg_get_variable(WAYLAND_PROTOCOLS_DIR wayland-protocols pkgdatadir) | 25 | + pkg_get_variable(WAYLAND_PROTOCOLS_DIR wayland-protocols pkgdatadir) |
| 26 | + endif() | 26 | + endif() |
| 27 | if (NOT WAYLAND_SCANNER) | 27 | if (NOT WAYLAND_SCANNER) |
| 28 | pkg_get_variable(WAYLAND_SCANNER wayland-scanner wayland_scanner) | 28 | pkg_get_variable(WAYLAND_SCANNER wayland-scanner wayland_scanner) |
| 29 | endif() | 29 | endif() |
diff --git a/meta-oe/recipes-graphics/vk-gl-cts/files/0001-use-library-sonames-for-linking.patch b/meta-oe/recipes-graphics/vk-gl-cts/files/0001-use-library-sonames-for-linking.patch new file mode 100644 index 0000000000..774b7aefee --- /dev/null +++ b/meta-oe/recipes-graphics/vk-gl-cts/files/0001-use-library-sonames-for-linking.patch | |||
| @@ -0,0 +1,123 @@ | |||
| 1 | From acd25c4b8d5b7e420a7a89bdfd6551c70de828b3 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Trevor Woerner <twoerner@gmail.com> | ||
| 3 | Date: Thu, 23 Sep 2021 19:36:43 -0400 | ||
| 4 | Subject: [PATCH] use library sonames for linking | ||
| 5 | |||
| 6 | The recommended "best practices" for applications is to link to library | ||
| 7 | sonames (e.g. libGL.so.1) instead of library names (e.g. libGL.so). This | ||
| 8 | ensures that applications don't try to use libraries if an incompatible ABI | ||
| 9 | change occurs. | ||
| 10 | |||
| 11 | Upstream-Status: Denied [https://github.com/KhronosGroup/VK-GL-CTS/pull/288] | ||
| 12 | Signed-off-by: Trevor Woerner <twoerner@gmail.com> | ||
| 13 | --- | ||
| 14 | framework/egl/egluGLContextFactory.cpp | 4 ++-- | ||
| 15 | framework/egl/wrapper/eglwLibrary.cpp | 2 +- | ||
| 16 | framework/platform/android/tcuAndroidPlatform.cpp | 2 +- | ||
| 17 | framework/platform/lnx/X11/tcuLnxX11EglDisplayFactory.cpp | 2 +- | ||
| 18 | .../platform/lnx/wayland/tcuLnxWaylandEglDisplayFactory.cpp | 2 +- | ||
| 19 | framework/platform/surfaceless/tcuSurfacelessPlatform.cpp | 6 +++--- | ||
| 20 | 6 files changed, 9 insertions(+), 9 deletions(-) | ||
| 21 | |||
| 22 | --- a/framework/egl/egluGLContextFactory.cpp | ||
| 23 | +++ b/framework/egl/egluGLContextFactory.cpp | ||
| 24 | @@ -63,7 +63,7 @@ using std::vector; | ||
| 25 | #if (DE_OS == DE_OS_WIN32) | ||
| 26 | #define DEQP_GLES2_LIBRARY_PATH "libGLESv2.dll" | ||
| 27 | #else | ||
| 28 | -#define DEQP_GLES2_LIBRARY_PATH "libGLESv2.so" | ||
| 29 | +#define DEQP_GLES2_LIBRARY_PATH "libGLESv2.so.2" | ||
| 30 | #endif | ||
| 31 | #endif | ||
| 32 | |||
| 33 | @@ -75,7 +75,7 @@ using std::vector; | ||
| 34 | #if (DE_OS == DE_OS_WIN32) | ||
| 35 | #define DEQP_OPENGL_LIBRARY_PATH "opengl32.dll" | ||
| 36 | #else | ||
| 37 | -#define DEQP_OPENGL_LIBRARY_PATH "libGL.so" | ||
| 38 | +#define DEQP_OPENGL_LIBRARY_PATH "libGL.so.1" | ||
| 39 | #endif | ||
| 40 | #endif | ||
| 41 | |||
| 42 | --- a/framework/egl/wrapper/eglwLibrary.cpp | ||
| 43 | +++ b/framework/egl/wrapper/eglwLibrary.cpp | ||
| 44 | @@ -145,7 +145,7 @@ DefaultLibrary::~DefaultLibrary(void) | ||
| 45 | const char *DefaultLibrary::getLibraryFileName(void) | ||
| 46 | { | ||
| 47 | #if (DE_OS == DE_OS_ANDROID) || (DE_OS == DE_OS_UNIX) | ||
| 48 | - return "libEGL.so"; | ||
| 49 | + return "libEGL.so.1"; | ||
| 50 | #elif (DE_OS == DE_OS_WIN32) | ||
| 51 | return "libEGL.dll"; | ||
| 52 | #else | ||
| 53 | --- a/framework/platform/android/tcuAndroidPlatform.cpp | ||
| 54 | +++ b/framework/platform/android/tcuAndroidPlatform.cpp | ||
| 55 | @@ -56,7 +56,7 @@ static const eglu::NativeWindow::Capabil | ||
| 56 | class NativeDisplay : public eglu::NativeDisplay | ||
| 57 | { | ||
| 58 | public: | ||
| 59 | - NativeDisplay(void) : eglu::NativeDisplay(DISPLAY_CAPABILITIES), m_library("libEGL.so") | ||
| 60 | + NativeDisplay(void) : eglu::NativeDisplay(DISPLAY_CAPABILITIES), m_library("libEGL.so.1") | ||
| 61 | { | ||
| 62 | } | ||
| 63 | virtual ~NativeDisplay(void) | ||
| 64 | @@ -223,7 +223,7 @@ class VulkanLibrary : public vk::Library | ||
| 65 | { | ||
| 66 | public: | ||
| 67 | VulkanLibrary(const char *libraryPath) | ||
| 68 | - : m_library(libraryPath != DE_NULL ? libraryPath : "libvulkan.so") | ||
| 69 | + : m_library(libraryPath != DE_NULL ? libraryPath : "libvulkan.so.1") | ||
| 70 | , m_driver(m_library) | ||
| 71 | { | ||
| 72 | } | ||
| 73 | --- a/framework/platform/lnx/X11/tcuLnxX11EglDisplayFactory.cpp | ||
| 74 | +++ b/framework/platform/lnx/X11/tcuLnxX11EglDisplayFactory.cpp | ||
| 75 | @@ -77,7 +77,7 @@ using tcu::TextureLevel; | ||
| 76 | class Library : public eglw::DefaultLibrary | ||
| 77 | { | ||
| 78 | public: | ||
| 79 | - Library(void) : eglw::DefaultLibrary("libEGL.so") | ||
| 80 | + Library(void) : eglw::DefaultLibrary("libEGL.so.1") | ||
| 81 | { | ||
| 82 | } | ||
| 83 | |||
| 84 | --- a/framework/platform/lnx/wayland/tcuLnxWaylandEglDisplayFactory.cpp | ||
| 85 | +++ b/framework/platform/lnx/wayland/tcuLnxWaylandEglDisplayFactory.cpp | ||
| 86 | @@ -64,7 +64,7 @@ public: | ||
| 87 | Display(MovePtr<wayland::Display> waylandDisplay) | ||
| 88 | : NativeDisplay(CAPABILITIES, EGL_PLATFORM_WAYLAND_KHR, "EGL_KHR_platform_wayland") | ||
| 89 | , m_display(waylandDisplay) | ||
| 90 | - , m_library("libEGL.so") | ||
| 91 | + , m_library("libEGL.so.1") | ||
| 92 | { | ||
| 93 | } | ||
| 94 | |||
| 95 | --- a/framework/platform/surfaceless/tcuSurfacelessPlatform.cpp | ||
| 96 | +++ b/framework/platform/surfaceless/tcuSurfacelessPlatform.cpp | ||
| 97 | @@ -69,7 +69,7 @@ using std::vector; | ||
| 98 | |||
| 99 | // Default library names | ||
| 100 | #if !defined(DEQP_GLES2_LIBRARY_PATH) | ||
| 101 | -#define DEQP_GLES2_LIBRARY_PATH "libGLESv2.so" | ||
| 102 | +#define DEQP_GLES2_LIBRARY_PATH "libGLESv2.so.2" | ||
| 103 | #endif | ||
| 104 | |||
| 105 | #if !defined(DEQP_GLES3_LIBRARY_PATH) | ||
| 106 | @@ -77,7 +77,7 @@ using std::vector; | ||
| 107 | #endif | ||
| 108 | |||
| 109 | #if !defined(DEQP_OPENGL_LIBRARY_PATH) | ||
| 110 | -#define DEQP_OPENGL_LIBRARY_PATH "libGL.so" | ||
| 111 | +#define DEQP_OPENGL_LIBRARY_PATH "libGL.so.1" | ||
| 112 | #endif | ||
| 113 | |||
| 114 | #if !defined(DEQP_VULKAN_LIBRARY_PATH) | ||
| 115 | @@ -258,7 +258,7 @@ glu::RenderContext *ContextFactory::crea | ||
| 116 | |||
| 117 | EglRenderContext::EglRenderContext(const glu::RenderConfig &config, const tcu::CommandLine &cmdLine, | ||
| 118 | const glu::RenderContext *sharedContext) | ||
| 119 | - : m_egl("libEGL.so") | ||
| 120 | + : m_egl("libEGL.so.1") | ||
| 121 | , m_contextType(config.type) | ||
| 122 | , m_eglDisplay(EGL_NO_DISPLAY) | ||
| 123 | , m_eglContext(EGL_NO_CONTEXT) | ||
diff --git a/meta-oe/recipes-graphics/vk-gl-cts/files/0001-vulkan-cts-include-missing-cstdint.patch b/meta-oe/recipes-graphics/vk-gl-cts/files/0001-vulkan-cts-include-missing-cstdint.patch deleted file mode 100644 index 0dd59713a1..0000000000 --- a/meta-oe/recipes-graphics/vk-gl-cts/files/0001-vulkan-cts-include-missing-cstdint.patch +++ /dev/null | |||
| @@ -1,34 +0,0 @@ | |||
| 1 | From b07f6ecd6ab83b788301a555dc546b9a5c9dd8a2 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Wed, 25 Jan 2023 19:19:34 -0800 | ||
| 4 | Subject: [PATCH] Include missing <cstdint> | ||
| 5 | |||
| 6 | This error is seen with gcc-13 where include headers are not implicitly | ||
| 7 | included [1] | ||
| 8 | |||
| 9 | Fixes errors e.g. | ||
| 10 | error: 'uint32_t' does not name a type | ||
| 11 | |||
| 12 | [1] https://www.gnu.org/software/gcc/gcc-13/porting_to.html | ||
| 13 | |||
| 14 | Upstream-Status: Submitted [https://github.com/KhronosGroup/VK-GL-CTS/pull/378] | ||
| 15 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 16 | --- | ||
| 17 | framework/common/tcuDefs.hpp | 1 + | ||
| 18 | 1 file changed, 1 insertion(+) | ||
| 19 | |||
| 20 | diff --git a/framework/common/tcuDefs.hpp b/framework/common/tcuDefs.hpp | ||
| 21 | index ad3d0736d..6dfac10fb 100644 | ||
| 22 | --- a/framework/common/tcuDefs.hpp | ||
| 23 | +++ b/framework/common/tcuDefs.hpp | ||
| 24 | @@ -26,6 +26,7 @@ | ||
| 25 | #include "deDefs.hpp" | ||
| 26 | #include "qpTestLog.h" | ||
| 27 | |||
| 28 | +#include <cstdint> | ||
| 29 | #include <string> | ||
| 30 | #include <stdexcept> | ||
| 31 | |||
| 32 | -- | ||
| 33 | 2.39.1 | ||
| 34 | |||
diff --git a/meta-oe/recipes-graphics/vk-gl-cts/files/0001-vulkancts-Include-missing-cstdint.patch b/meta-oe/recipes-graphics/vk-gl-cts/files/0001-vulkancts-Include-missing-cstdint.patch deleted file mode 100644 index 40aea8f203..0000000000 --- a/meta-oe/recipes-graphics/vk-gl-cts/files/0001-vulkancts-Include-missing-cstdint.patch +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | From 1b7646ced0f0b969f818084887885827ed1a4244 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Mon, 31 May 2021 17:31:33 -0700 | ||
| 4 | Subject: [PATCH] vulkancts: Include missing <cstdint> | ||
| 5 | |||
| 6 | Fixes build with gcc-13 | ||
| 7 | |||
| 8 | ../git/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmFloatControlsTests.cpp:2798:102: error: 'uintptr_t' in namespace 'std' does not name a type | ||
| 9 | 2798 | BufferDataType type = static_cast<BufferDataType>(reinterpret_cast<std::uintptr_t>(expectedOutputs[resultIndex].getUserData())); | ||
| 10 | | ^~~~~~~~~ | ||
| 11 | |||
| 12 | Upstream-Status: Submitted [https://github.com/KhronosGroup/VK-GL-CTS/pull/378] | ||
| 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 14 | --- | ||
| 15 | .../vulkan/spirv_assembly/vktSpvAsmFloatControlsTests.cpp | 1 + | ||
| 16 | 1 file changed, 1 insertion(+) | ||
| 17 | |||
| 18 | diff --git a/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmFloatControlsTests.cpp b/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmFloatControlsTests.cpp | ||
| 19 | index ab02be1dc..3d3ee4829 100644 | ||
| 20 | --- a/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmFloatControlsTests.cpp | ||
| 21 | +++ b/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmFloatControlsTests.cpp | ||
| 22 | @@ -33,6 +33,7 @@ | ||
| 23 | #include "deFloat16.h" | ||
| 24 | #include "vkQueryUtil.hpp" | ||
| 25 | #include "vkRefUtil.hpp" | ||
| 26 | +#include <cstdint> | ||
| 27 | #include <cstring> | ||
| 28 | #include <vector> | ||
| 29 | #include <limits> | ||
| 30 | -- | ||
| 31 | 2.39.1 | ||
| 32 | |||
diff --git a/meta-oe/recipes-graphics/vk-gl-cts/files/fix-clang-private-operator.patch b/meta-oe/recipes-graphics/vk-gl-cts/files/fix-clang-private-operator.patch index 4ecc371ca4..af59dd3e61 100644 --- a/meta-oe/recipes-graphics/vk-gl-cts/files/fix-clang-private-operator.patch +++ b/meta-oe/recipes-graphics/vk-gl-cts/files/fix-clang-private-operator.patch | |||
| @@ -2,7 +2,7 @@ Upstream-Status: Pending | |||
| 2 | 2 | ||
| 3 | --- a/external/glslang/src/glslang/Include/PoolAlloc.h | 3 | --- a/external/glslang/src/glslang/Include/PoolAlloc.h |
| 4 | +++ b/external/glslang/src/glslang/Include/PoolAlloc.h | 4 | +++ b/external/glslang/src/glslang/Include/PoolAlloc.h |
| 5 | @@ -240,8 +240,9 @@ protected: | 5 | @@ -245,8 +245,9 @@ protected: |
| 6 | 6 | ||
| 7 | int numCalls; // just an interesting statistic | 7 | int numCalls; // just an interesting statistic |
| 8 | size_t totalBytes; // just an interesting statistic | 8 | size_t totalBytes; // just an interesting statistic |
diff --git a/meta-oe/recipes-graphics/vk-gl-cts/files/fix-musl.patch b/meta-oe/recipes-graphics/vk-gl-cts/files/fix-musl.patch index 58dc1f24dd..717d489786 100644 --- a/meta-oe/recipes-graphics/vk-gl-cts/files/fix-musl.patch +++ b/meta-oe/recipes-graphics/vk-gl-cts/files/fix-musl.patch | |||
| @@ -2,9 +2,9 @@ Upstream-Status: Pending | |||
| 2 | 2 | ||
| 3 | --- a/framework/delibs/dethread/CMakeLists.txt | 3 | --- a/framework/delibs/dethread/CMakeLists.txt |
| 4 | +++ b/framework/delibs/dethread/CMakeLists.txt | 4 | +++ b/framework/delibs/dethread/CMakeLists.txt |
| 5 | @@ -42,6 +42,7 @@ if (DE_OS_IS_UNIX) | 5 | @@ -41,6 +41,7 @@ if (DE_OS_IS_UNIX) |
| 6 | if (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") | ||
| 6 | add_definitions(-D__BSD_VISIBLE) | 7 | add_definitions(-D__BSD_VISIBLE) |
| 7 | add_definitions(-D_XOPEN_SOURCE=600) | ||
| 8 | endif () | 8 | endif () |
| 9 | + add_definitions(-D_XOPEN_SOURCE=600) | 9 | + add_definitions(-D_XOPEN_SOURCE=600) |
| 10 | add_definitions(-D_GNU_SOURCE) | 10 | add_definitions(-D_GNU_SOURCE) |
diff --git a/meta-oe/recipes-graphics/vk-gl-cts/files/gen-framework-path.patch b/meta-oe/recipes-graphics/vk-gl-cts/files/gen-framework-path.patch deleted file mode 100644 index 8a8d8d2c32..0000000000 --- a/meta-oe/recipes-graphics/vk-gl-cts/files/gen-framework-path.patch +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | Prepend instead of append to the module search path, as this script needs to use | ||
| 2 | the local module build, not the host module build. | ||
| 3 | |||
| 4 | Upstream-Status: Submitted | ||
| 5 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
| 6 | |||
| 7 | diff --git a/external/vulkancts/scripts/gen_framework.py b/external/vulkancts/scripts/gen_framework.py | ||
| 8 | index 83c5329ce..10e720910 100755 | ||
| 9 | --- a/external/vulkancts/scripts/gen_framework.py | ||
| 10 | +++ b/external/vulkancts/scripts/gen_framework.py | ||
| 11 | @@ -33 +33 @@ from collections import OrderedDict | ||
| 12 | -sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts")) | ||
| 13 | +sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts")) | ||
| 14 | diff --git a/external/vulkancts/scripts/gen_framework_c.py b/external/vulkancts/scripts/gen_framework_c.py | ||
| 15 | index 95587e642..84b878cb2 100644 | ||
| 16 | --- a/external/vulkancts/scripts/gen_framework_c.py | ||
| 17 | +++ b/external/vulkancts/scripts/gen_framework_c.py | ||
| 18 | @@ -28 +28 @@ import re | ||
| 19 | -sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts")) | ||
| 20 | +sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts")) | ||
