mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-16 21:04:33 +00:00
recipes-graphics: add Khronos OpenGL ES and Vulkan CTS recipes
Add recipes packaging OpenGL ES and Vulkan conformance test suite recipes. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
3063ae3b14
commit
a5449a234a
@ -0,0 +1,15 @@
|
|||||||
|
Index: git/external/glslang/src/glslang/Include/PoolAlloc.h
|
||||||
|
===================================================================
|
||||||
|
--- git.orig/external/glslang/src/glslang/Include/PoolAlloc.h
|
||||||
|
+++ git/external/glslang/src/glslang/Include/PoolAlloc.h
|
||||||
|
@@ -240,8 +240,9 @@ protected:
|
||||||
|
|
||||||
|
int numCalls; // just an interesting statistic
|
||||||
|
size_t totalBytes; // just an interesting statistic
|
||||||
|
-private:
|
||||||
|
+public:
|
||||||
|
TPoolAllocator& operator=(const TPoolAllocator&); // don't allow assignment operator
|
||||||
|
+private:
|
||||||
|
TPoolAllocator(const TPoolAllocator&); // don't allow default copy constructor
|
||||||
|
};
|
||||||
|
|
||||||
24
meta-oe/recipes-graphics/vk-gl-cts/files/fix-musl.patch
Normal file
24
meta-oe/recipes-graphics/vk-gl-cts/files/fix-musl.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
Index: git/framework/delibs/dethread/CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- git.orig/framework/delibs/dethread/CMakeLists.txt
|
||||||
|
+++ git/framework/delibs/dethread/CMakeLists.txt
|
||||||
|
@@ -39,6 +39,7 @@ include_directories(
|
||||||
|
|
||||||
|
if (DE_OS_IS_UNIX)
|
||||||
|
add_definitions(-D_GNU_SOURCE)
|
||||||
|
+ add_definitions(-D_XOPEN_SOURCE=600)
|
||||||
|
set(DETHREAD_LIBS ${DETHREAD_LIBS} pthread)
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
Index: git/framework/qphelper/CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- git.orig/framework/qphelper/CMakeLists.txt
|
||||||
|
+++ git/framework/qphelper/CMakeLists.txt
|
||||||
|
@@ -28,6 +28,7 @@ set(QPHELPER_LIBS
|
||||||
|
if (DE_OS_IS_UNIX OR DE_OS_IS_QNX)
|
||||||
|
# For vsnprintf()
|
||||||
|
add_definitions(-D_XOPEN_SOURCE=600)
|
||||||
|
+ set(QPHELPER_LIBS ${QPHELPER_LIBS} execinfo)
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
if (DE_OS_IS_WIN32 AND DE_COMPILER_IS_MSC)
|
||||||
36
meta-oe/recipes-graphics/vk-gl-cts/khronos-cts.inc
Normal file
36
meta-oe/recipes-graphics/vk-gl-cts/khronos-cts.inc
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
LICENSE = "Apache-2.0"
|
||||||
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
||||||
|
|
||||||
|
SRC_URI = "\
|
||||||
|
git://github.com/KhronosGroup/VK-GL-CTS.git;protocol=https;tag=${BPN}-${PV};name=vk-gl-cts \
|
||||||
|
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 \
|
||||||
|
git://github.com/KhronosGroup/SPIRV-Headers.git;protocol=https;destsuffix=git/external/spirv-headers/src;name=spirv-headers \
|
||||||
|
git://github.com/KhronosGroup/SPIRV-Tools.git;protocol=https;destsuffix=git/external/spirv-tools/src;name=spirv-tools \
|
||||||
|
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"
|
||||||
|
|
||||||
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
inherit pkgconfig cmake
|
||||||
|
|
||||||
|
DEPENDS += "libpng zlib virtual/libgles2 virtual/egl"
|
||||||
|
|
||||||
|
SRC_URI_append_libc-musl = "\
|
||||||
|
file://fix-musl.patch \
|
||||||
|
"
|
||||||
|
DEPENDS_append_libc-musl = " libexecinfo"
|
||||||
|
|
||||||
|
SRC_URI_append_toolchain-clang = "\
|
||||||
|
file://fix-clang-private-operator.patch \
|
||||||
|
"
|
||||||
|
|
||||||
|
EXTRA_OECMAKE_append = " -DDEQP_TARGET=surfaceless"
|
||||||
|
|
||||||
|
CTSDIR = "/usr/lib/${BPN}"
|
||||||
|
|
||||||
|
FILES_${PN} += "${CTSDIR}"
|
||||||
19
meta-oe/recipes-graphics/vk-gl-cts/opengl-es-cts_3.2.6.1.bb
Normal file
19
meta-oe/recipes-graphics/vk-gl-cts/opengl-es-cts_3.2.6.1.bb
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
DESCRIPTION = "OpenGL CTS"
|
||||||
|
|
||||||
|
require khronos-cts.inc
|
||||||
|
|
||||||
|
SRCREV_amber = "d26ee22dd7faab1845a531d410f7ec1db407402a"
|
||||||
|
SRCREV_glslang = "c538b5d796fb24dd418fdd650c7f76e56bcc3dd8"
|
||||||
|
SRCREV_spirv-headers = "e4322e3be589e1ddd44afb20ea842a977c1319b8"
|
||||||
|
SRCREV_spirv-tools = "1eb89172a82b436d8037e8a8c29c80f7e1f7df74"
|
||||||
|
SRC_URI[renderdoc.sha256sum] = "e7b5f0aa5b1b0eadc63a1c624c0ca7f5af133aa857d6a4271b0ef3d0bdb6868e"
|
||||||
|
|
||||||
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
install -d ${D}/${CTSDIR}
|
||||||
|
cp -r ${B}/external/openglcts/modules/* ${D}/${CTSDIR}
|
||||||
|
rm -r ${D}/${CTSDIR}/*.a ${D}/${CTSDIR}/cmake_install.cmake ${D}/${CTSDIR}/CMakeFiles
|
||||||
|
rm -r ${D}/${CTSDIR}/*/*.a ${D}/${CTSDIR}/*/cmake_install.cmake ${D}/${CTSDIR}/*/CMakeFiles
|
||||||
|
rm -r ${D}/${CTSDIR}/common/subgroups/*.a ${D}/${CTSDIR}/common/subgroups/cmake_install.cmake ${D}/${CTSDIR}/common/subgroups/CMakeFiles
|
||||||
|
}
|
||||||
23
meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts_1.2.3.0.bb
Normal file
23
meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts_1.2.3.0.bb
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
DESCRIPTION = "Vulkan CTS"
|
||||||
|
|
||||||
|
require khronos-cts.inc
|
||||||
|
|
||||||
|
SRCREV_amber = "a40bef4dba98d2d80b48e5a940d8574fbfceb197"
|
||||||
|
SRCREV_glslang = "b5f003d7a3ece37db45578a8a3140b370036fc64"
|
||||||
|
SRCREV_spirv-headers = "f8bf11a0253a32375c32cad92c841237b96696c0"
|
||||||
|
SRCREV_spirv-tools = "d2b486219495594f2e5d0e8d457fc234a3460b3b"
|
||||||
|
SRC_URI[renderdoc.sha256sum] = "e7b5f0aa5b1b0eadc63a1c624c0ca7f5af133aa857d6a4271b0ef3d0bdb6868e"
|
||||||
|
|
||||||
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
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 -r ${D}/${CTSDIR}/*.a ${D}/${CTSDIR}/cmake_install.cmake ${D}/${CTSDIR}/CMakeFiles
|
||||||
|
rm -r ${D}/${CTSDIR}/*/*.a ${D}/${CTSDIR}/*/cmake_install.cmake ${D}/${CTSDIR}/*/CMakeFiles
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user