All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-arago][scarthgap/master][PATCH] vulkan-cts: add workaround for createMeshShaderMiscTestsEXT
@ 2024-06-21 21:49 rs
  0 siblings, 0 replies; 2+ messages in thread
From: rs @ 2024-06-21 21:49 UTC (permalink / raw)
  To: denis, reatmon; +Cc: detheridge, meta-arago

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>
---

Taking too long for this to hit master so the backport probably won't come in
time for scarthgap. Submitting this in the meantime.

 .../recipes-graphics/vk-gl-cts/vulkan-cts_1.3.7.3.bbappend      | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 meta-arago-distro/recipes-graphics/vk-gl-cts/vulkan-cts_1.3.7.3.bbappend

diff --git a/meta-arago-distro/recipes-graphics/vk-gl-cts/vulkan-cts_1.3.7.3.bbappend b/meta-arago-distro/recipes-graphics/vk-gl-cts/vulkan-cts_1.3.7.3.bbappend
new file mode 100644
index 00000000..7af2057f
--- /dev/null
+++ b/meta-arago-distro/recipes-graphics/vk-gl-cts/vulkan-cts_1.3.7.3.bbappend
@@ -0,0 +1,2 @@
+# Workaround an optimization bug that breaks createMeshShaderMiscTestsEXT
+OECMAKE_CXX_FLAGS:remove:toolchain-gcc:aarch64 = "-O2"
-- 
2.45.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-06-28 16:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <17DB236B4EF787C6.28936@lists.yoctoproject.org>
2024-06-28 16:41 ` [meta-arago][scarthgap/master][PATCH] vulkan-cts: add workaround for createMeshShaderMiscTestsEXT Randolph Sapp
2024-06-21 21:49 rs

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.