mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
vulkan-cts,opengl-es-cts: Fix build with gcc-13
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
From b07f6ecd6ab83b788301a555dc546b9a5c9dd8a2 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
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 <raj.khem@gmail.com>
|
||||
---
|
||||
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
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
From 74cf53d89529902ecdef5b230421bc4d30fd089b Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Wed, 25 Jan 2023 15:36:14 -0800
|
||||
Subject: [PATCH] include missing <cstdint>
|
||||
|
||||
gcc-13 exposed errors like below due to it removing indirect includes of
|
||||
these headers in libstdc++ [1]
|
||||
|
||||
../git/external/amber/src/include/amber/shader_info.h:60:15: error: 'uint32_t' was not declared in this scope
|
||||
60 | std::vector<uint32_t> shader_data;
|
||||
| ^~~~~~~~
|
||||
|
||||
[1] https://www.gnu.org/software/gcc/gcc-13/porting_to.html
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/google/amber/pull/1016]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
include/amber/recipe.h | 1 +
|
||||
include/amber/shader_info.h | 1 +
|
||||
src/descriptor_set_and_binding_parser.h | 1 +
|
||||
3 files changed, 3 insertions(+)
|
||||
|
||||
diff --git a/include/amber/recipe.h b/include/amber/recipe.h
|
||||
index 310a86a..1b83213 100644
|
||||
--- a/include/amber/recipe.h
|
||||
+++ b/include/amber/recipe.h
|
||||
@@ -15,6 +15,7 @@
|
||||
#ifndef AMBER_RECIPE_H_
|
||||
#define AMBER_RECIPE_H_
|
||||
|
||||
+#include <cstdint>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
diff --git a/include/amber/shader_info.h b/include/amber/shader_info.h
|
||||
index 6c9126a..b5ce751 100644
|
||||
--- a/include/amber/shader_info.h
|
||||
+++ b/include/amber/shader_info.h
|
||||
@@ -15,6 +15,7 @@
|
||||
#ifndef AMBER_SHADER_INFO_H_
|
||||
#define AMBER_SHADER_INFO_H_
|
||||
|
||||
+#include <cstdint>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
diff --git a/src/descriptor_set_and_binding_parser.h b/src/descriptor_set_and_binding_parser.h
|
||||
index 145aa42..4b0d774 100644
|
||||
--- a/src/descriptor_set_and_binding_parser.h
|
||||
+++ b/src/descriptor_set_and_binding_parser.h
|
||||
@@ -15,6 +15,7 @@
|
||||
#ifndef SRC_DESCRIPTOR_SET_AND_BINDING_PARSER_H_
|
||||
#define SRC_DESCRIPTOR_SET_AND_BINDING_PARSER_H_
|
||||
|
||||
+#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
#include "amber/result.h"
|
||||
--
|
||||
2.39.1
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
From 1b7646ced0f0b969f818084887885827ed1a4244 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
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 <raj.khem@gmail.com>
|
||||
---
|
||||
.../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
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
From 273df2423d9226093310cbcaa8b924bb6b5d6586 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Mon, 31 May 2021 17:31:33 -0700
|
||||
Subject: [PATCH] vulkancts:
|
||||
|
||||
O_TRUNC value in OperationId enum collides with the macro O_TRUNC
|
||||
defined in the POSIX header fnctl.h. To avoid the collision undefine
|
||||
O_TRUNC in this particular sourcefile before its is used in enums
|
||||
down below.
|
||||
|
||||
This is fixed upstream differently
|
||||
https://github.com/KhronosGroup/VK-GL-CTS/commit/564c6062f72fe7ecd92b4aea1558c441e651c76b
|
||||
|
||||
But until we get this module uprev'ed to that, lets use a simpler
|
||||
workaround
|
||||
|
||||
Upstream-Status: Inappropriate [Fixed Differently]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
.../vulkan/spirv_assembly/vktSpvAsmFloatControlsTests.cpp | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmFloatControlsTests.cpp b/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmFloatControlsTests.cpp
|
||||
index 22e6c75fa..db7f4b54a 100644
|
||||
--- a/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmFloatControlsTests.cpp
|
||||
+++ b/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmFloatControlsTests.cpp
|
||||
@@ -38,6 +38,10 @@
|
||||
#include <limits>
|
||||
#include <fenv.h>
|
||||
|
||||
+#ifdef O_TRUNC
|
||||
+#undef O_TRUNC
|
||||
+#endif
|
||||
+
|
||||
namespace vkt
|
||||
{
|
||||
namespace SpirVAssembly
|
||||
--
|
||||
2.31.1
|
||||
|
||||
@@ -26,7 +26,7 @@ ANY_OF_DISTRO_FEATURES += "opengl wayland"
|
||||
DEPENDS += "python3-lxml-native libpng zlib virtual/libgles2 qemu-native"
|
||||
|
||||
SRC_URI += " \
|
||||
file://0001-vulkancts.patch \
|
||||
file://0001-vulkancts-Include-missing-cstdint.patch \
|
||||
file://0001-use-library-sonames-for-linking.patch \
|
||||
"
|
||||
|
||||
|
||||
@@ -12,7 +12,8 @@ SRCREV_jsoncpp = "9059f5cad030ba11d37818847443a53918c327b1"
|
||||
SRCREV_vulkan-docs = "d70e01c0be7b8a7d20b186b30b29a75b18bba75d"
|
||||
SRC_URI[renderdoc.sha256sum] = "e7b5f0aa5b1b0eadc63a1c624c0ca7f5af133aa857d6a4271b0ef3d0bdb6868e"
|
||||
|
||||
SRC_URI += "file://0001-Remove-dead-variable-984.patch;patchdir=external/amber/src"
|
||||
SRC_URI += "file://0001-Remove-dead-variable-984.patch;patchdir=external/amber/src \
|
||||
file://0001-include-missing-cstdint.patch;patchdir=external/amber/src"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
|
||||
@@ -11,7 +11,10 @@ SRCREV_jsoncpp = "9059f5cad030ba11d37818847443a53918c327b1"
|
||||
SRCREV_vulkan-docs = "9b5562187a8ad72c171410b036ceedbc450153ba"
|
||||
SRC_URI[renderdoc.sha256sum] = "e7b5f0aa5b1b0eadc63a1c624c0ca7f5af133aa857d6a4271b0ef3d0bdb6868e"
|
||||
|
||||
SRC_URI += "file://0001-cmake-Define-WAYLAND_SCANNER-and-WAYLAND_PROTOCOLS_D.patch"
|
||||
SRC_URI += "file://0001-cmake-Define-WAYLAND_SCANNER-and-WAYLAND_PROTOCOLS_D.patch \
|
||||
file://0001-Include-missing-cstdint.patch \
|
||||
file://0001-include-missing-cstdint.patch;patchdir=external/amber/src \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user