diff mbox series

[meta-oe,master,PATCHv2] vulkan-cts: add workaround for createMeshShaderMiscTestsEXT

Message ID 20240618181745.3889828-1-rs@ti.com
State New
Headers show
Series [meta-oe,master,PATCHv2] vulkan-cts: add workaround for createMeshShaderMiscTestsEXT | expand

Commit Message

Randolph Sapp June 18, 2024, 6:17 p.m. UTC
From: Randolph Sapp <rs@ti.com>

Remove the CXX flag "-O2" for GCC 13 and 14 on aarch64 platforms.
There's a bug with ARM GCC that breaks the iteration of "types" in the
createMeshShaderMiscTestsEXT function. This issue is not present for
clang or x86_64 GCC 14.

It seems that the array is not initialized before the first iteration.
In testing this can result in a random value being used. This can
manifest in LINES type being processed twice, resulting in the following
error:

FATAL ERROR: Failed to initialize dEQP: Test case with non-unique name
'no_lines' added to group 'misc'.

Signed-off-by: Randolph Sapp <rs@ti.com>
---

v2: Apply this specifically to aarch64 platforms since armv7 doesn't seem to
have this issue...

 meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts_1.3.7.3.bb | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts_1.3.7.3.bb b/meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts_1.3.7.3.bb
index 1008a5fd4..78492e21b 100644
--- a/meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts_1.3.7.3.bb
+++ b/meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts_1.3.7.3.bb
@@ -23,6 +23,9 @@  SRC_URI += "file://0001-cmake-Define-WAYLAND_SCANNER-and-WAYLAND_PROTOCOLS_D.pat
 
 TOOLCHAIN = "gcc"
 
+# Workaround an optimization bug that breaks createMeshShaderMiscTestsEXT
+OECMAKE_CXX_FLAGS:remove:toolchain-gcc:aarch64 = "-O2"
+
 S = "${WORKDIR}/git"
 
 REQUIRED_DISTRO_FEATURES = "vulkan"