diff options
7 files changed, 134 insertions, 43 deletions
diff --git a/meta-oe/recipes-graphics/vk-gl-cts/files/0001-Include-missing-cstdint.patch b/meta-oe/recipes-graphics/vk-gl-cts/files/0001-Include-missing-cstdint.patch new file mode 100644 index 0000000000..0dd59713a1 --- /dev/null +++ b/meta-oe/recipes-graphics/vk-gl-cts/files/0001-Include-missing-cstdint.patch | |||
@@ -0,0 +1,34 @@ | |||
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-include-missing-cstdint.patch b/meta-oe/recipes-graphics/vk-gl-cts/files/0001-include-missing-cstdint.patch new file mode 100644 index 0000000000..47d9fc748a --- /dev/null +++ b/meta-oe/recipes-graphics/vk-gl-cts/files/0001-include-missing-cstdint.patch | |||
@@ -0,0 +1,61 @@ | |||
1 | From 74cf53d89529902ecdef5b230421bc4d30fd089b Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 25 Jan 2023 15:36:14 -0800 | ||
4 | Subject: [PATCH] include missing <cstdint> | ||
5 | |||
6 | gcc-13 exposed errors like below due to it removing indirect includes of | ||
7 | these headers in libstdc++ [1] | ||
8 | |||
9 | ../git/external/amber/src/include/amber/shader_info.h:60:15: error: 'uint32_t' was not declared in this scope | ||
10 | 60 | std::vector<uint32_t> shader_data; | ||
11 | | ^~~~~~~~ | ||
12 | |||
13 | [1] https://www.gnu.org/software/gcc/gcc-13/porting_to.html | ||
14 | |||
15 | Upstream-Status: Submitted [https://github.com/google/amber/pull/1016] | ||
16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
17 | --- | ||
18 | include/amber/recipe.h | 1 + | ||
19 | include/amber/shader_info.h | 1 + | ||
20 | src/descriptor_set_and_binding_parser.h | 1 + | ||
21 | 3 files changed, 3 insertions(+) | ||
22 | |||
23 | diff --git a/include/amber/recipe.h b/include/amber/recipe.h | ||
24 | index 310a86a..1b83213 100644 | ||
25 | --- a/include/amber/recipe.h | ||
26 | +++ b/include/amber/recipe.h | ||
27 | @@ -15,6 +15,7 @@ | ||
28 | #ifndef AMBER_RECIPE_H_ | ||
29 | #define AMBER_RECIPE_H_ | ||
30 | |||
31 | +#include <cstdint> | ||
32 | #include <string> | ||
33 | #include <utility> | ||
34 | #include <vector> | ||
35 | diff --git a/include/amber/shader_info.h b/include/amber/shader_info.h | ||
36 | index 6c9126a..b5ce751 100644 | ||
37 | --- a/include/amber/shader_info.h | ||
38 | +++ b/include/amber/shader_info.h | ||
39 | @@ -15,6 +15,7 @@ | ||
40 | #ifndef AMBER_SHADER_INFO_H_ | ||
41 | #define AMBER_SHADER_INFO_H_ | ||
42 | |||
43 | +#include <cstdint> | ||
44 | #include <string> | ||
45 | #include <vector> | ||
46 | |||
47 | diff --git a/src/descriptor_set_and_binding_parser.h b/src/descriptor_set_and_binding_parser.h | ||
48 | index 145aa42..4b0d774 100644 | ||
49 | --- a/src/descriptor_set_and_binding_parser.h | ||
50 | +++ b/src/descriptor_set_and_binding_parser.h | ||
51 | @@ -15,6 +15,7 @@ | ||
52 | #ifndef SRC_DESCRIPTOR_SET_AND_BINDING_PARSER_H_ | ||
53 | #define SRC_DESCRIPTOR_SET_AND_BINDING_PARSER_H_ | ||
54 | |||
55 | +#include <cstdint> | ||
56 | #include <string> | ||
57 | |||
58 | #include "amber/result.h" | ||
59 | -- | ||
60 | 2.39.1 | ||
61 | |||
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 new file mode 100644 index 0000000000..40aea8f203 --- /dev/null +++ b/meta-oe/recipes-graphics/vk-gl-cts/files/0001-vulkancts-Include-missing-cstdint.patch | |||
@@ -0,0 +1,32 @@ | |||
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/0001-vulkancts.patch b/meta-oe/recipes-graphics/vk-gl-cts/files/0001-vulkancts.patch deleted file mode 100644 index 2fd1d7123a..0000000000 --- a/meta-oe/recipes-graphics/vk-gl-cts/files/0001-vulkancts.patch +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | From 273df2423d9226093310cbcaa8b924bb6b5d6586 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: | ||
5 | |||
6 | O_TRUNC value in OperationId enum collides with the macro O_TRUNC | ||
7 | defined in the POSIX header fnctl.h. To avoid the collision undefine | ||
8 | O_TRUNC in this particular sourcefile before its is used in enums | ||
9 | down below. | ||
10 | |||
11 | This is fixed upstream differently | ||
12 | https://github.com/KhronosGroup/VK-GL-CTS/commit/564c6062f72fe7ecd92b4aea1558c441e651c76b | ||
13 | |||
14 | But until we get this module uprev'ed to that, lets use a simpler | ||
15 | workaround | ||
16 | |||
17 | Upstream-Status: Inappropriate [Fixed Differently] | ||
18 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
19 | --- | ||
20 | .../vulkan/spirv_assembly/vktSpvAsmFloatControlsTests.cpp | 4 ++++ | ||
21 | 1 file changed, 4 insertions(+) | ||
22 | |||
23 | diff --git a/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmFloatControlsTests.cpp b/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmFloatControlsTests.cpp | ||
24 | index 22e6c75fa..db7f4b54a 100644 | ||
25 | --- a/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmFloatControlsTests.cpp | ||
26 | +++ b/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmFloatControlsTests.cpp | ||
27 | @@ -38,6 +38,10 @@ | ||
28 | #include <limits> | ||
29 | #include <fenv.h> | ||
30 | |||
31 | +#ifdef O_TRUNC | ||
32 | +#undef O_TRUNC | ||
33 | +#endif | ||
34 | + | ||
35 | namespace vkt | ||
36 | { | ||
37 | namespace SpirVAssembly | ||
38 | -- | ||
39 | 2.31.1 | ||
40 | |||
diff --git a/meta-oe/recipes-graphics/vk-gl-cts/khronos-cts.inc b/meta-oe/recipes-graphics/vk-gl-cts/khronos-cts.inc index c7535405b0..01f4a572f8 100644 --- a/meta-oe/recipes-graphics/vk-gl-cts/khronos-cts.inc +++ b/meta-oe/recipes-graphics/vk-gl-cts/khronos-cts.inc | |||
@@ -26,7 +26,7 @@ ANY_OF_DISTRO_FEATURES += "opengl wayland" | |||
26 | DEPENDS += "python3-lxml-native libpng zlib virtual/libgles2 qemu-native" | 26 | DEPENDS += "python3-lxml-native libpng zlib virtual/libgles2 qemu-native" |
27 | 27 | ||
28 | SRC_URI += " \ | 28 | SRC_URI += " \ |
29 | file://0001-vulkancts.patch \ | 29 | file://0001-vulkancts-Include-missing-cstdint.patch \ |
30 | file://0001-use-library-sonames-for-linking.patch \ | 30 | file://0001-use-library-sonames-for-linking.patch \ |
31 | " | 31 | " |
32 | 32 | ||
diff --git a/meta-oe/recipes-graphics/vk-gl-cts/opengl-es-cts_3.2.8.0.bb b/meta-oe/recipes-graphics/vk-gl-cts/opengl-es-cts_3.2.8.0.bb index 024a1719d0..edfeda2bef 100644 --- a/meta-oe/recipes-graphics/vk-gl-cts/opengl-es-cts_3.2.8.0.bb +++ b/meta-oe/recipes-graphics/vk-gl-cts/opengl-es-cts_3.2.8.0.bb | |||
@@ -12,7 +12,8 @@ SRCREV_jsoncpp = "9059f5cad030ba11d37818847443a53918c327b1" | |||
12 | SRCREV_vulkan-docs = "d70e01c0be7b8a7d20b186b30b29a75b18bba75d" | 12 | SRCREV_vulkan-docs = "d70e01c0be7b8a7d20b186b30b29a75b18bba75d" |
13 | SRC_URI[renderdoc.sha256sum] = "e7b5f0aa5b1b0eadc63a1c624c0ca7f5af133aa857d6a4271b0ef3d0bdb6868e" | 13 | SRC_URI[renderdoc.sha256sum] = "e7b5f0aa5b1b0eadc63a1c624c0ca7f5af133aa857d6a4271b0ef3d0bdb6868e" |
14 | 14 | ||
15 | SRC_URI += "file://0001-Remove-dead-variable-984.patch;patchdir=external/amber/src" | 15 | SRC_URI += "file://0001-Remove-dead-variable-984.patch;patchdir=external/amber/src \ |
16 | file://0001-include-missing-cstdint.patch;patchdir=external/amber/src" | ||
16 | 17 | ||
17 | S = "${WORKDIR}/git" | 18 | S = "${WORKDIR}/git" |
18 | 19 | ||
diff --git a/meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts_1.3.3.1.bb b/meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts_1.3.3.1.bb index c996eb1f76..862963dd0d 100644 --- a/meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts_1.3.3.1.bb +++ b/meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts_1.3.3.1.bb | |||
@@ -11,7 +11,10 @@ SRCREV_jsoncpp = "9059f5cad030ba11d37818847443a53918c327b1" | |||
11 | SRCREV_vulkan-docs = "9b5562187a8ad72c171410b036ceedbc450153ba" | 11 | SRCREV_vulkan-docs = "9b5562187a8ad72c171410b036ceedbc450153ba" |
12 | SRC_URI[renderdoc.sha256sum] = "e7b5f0aa5b1b0eadc63a1c624c0ca7f5af133aa857d6a4271b0ef3d0bdb6868e" | 12 | SRC_URI[renderdoc.sha256sum] = "e7b5f0aa5b1b0eadc63a1c624c0ca7f5af133aa857d6a4271b0ef3d0bdb6868e" |
13 | 13 | ||
14 | SRC_URI += "file://0001-cmake-Define-WAYLAND_SCANNER-and-WAYLAND_PROTOCOLS_D.patch" | 14 | SRC_URI += "file://0001-cmake-Define-WAYLAND_SCANNER-and-WAYLAND_PROTOCOLS_D.patch \ |
15 | file://0001-Include-missing-cstdint.patch \ | ||
16 | file://0001-include-missing-cstdint.patch;patchdir=external/amber/src \ | ||
17 | " | ||
15 | 18 | ||
16 | S = "${WORKDIR}/git" | 19 | S = "${WORKDIR}/git" |
17 | 20 | ||