diff mbox series

vulkan-samples: Disable on 32bit ARM

Message ID 20240910005158.1797671-1-raj.khem@gmail.com
State New
Headers show
Series vulkan-samples: Disable on 32bit ARM | expand

Commit Message

Khem Raj Sept. 10, 2024, 12:51 a.m. UTC
vulkan-samples depend on atsc module and this module
only supports x86_64/arm64 as it seems, Neon support check does
not do a good job of detecting 64bit arm + neon to enable it
and it gets enabled for 32bit arm and it uses 64bit neon ISA
ending in build errors e.g.

astc/Source/astcenc_vecmathlib_neon_4.h:420:16: error: 'vaddvq_u32' was not declared in this scope; did you mean 'vaddq_u32'?

if upstream fixes the build for arm we can re-enable it

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-graphics/vulkan/vulkan-samples_git.bb | 2 ++
 1 file changed, 2 insertions(+)

Comments

Ross Burton Sept. 10, 2024, 12:22 p.m. UTC | #1
On 10 Sep 2024, at 01:51, Khem Raj via lists.openembedded.org <raj.khem=gmail.com@lists.openembedded.org> wrote:
> 
> vulkan-samples depend on atsc module and this module
> only supports x86_64/arm64 as it seems,

I’m wondering if we should reverse this logic and just list the platforms that vulkan-samples actually works on.

For example, it also fails on 32-bit ppc:

vulkan-samples/git/git/components/filesystem/src/std_filesystem.cpp:52:13: error: narrowing conversion of 'size' from 'long long unsigned int' to 'size_t' {aka 'unsigned int'} [-Werror=narrowing]

Ross
Khem Raj Sept. 10, 2024, 1:57 p.m. UTC | #2
On Tue, Sep 10, 2024 at 5:22 AM Ross Burton <Ross.Burton@arm.com> wrote:

> On 10 Sep 2024, at 01:51, Khem Raj via lists.openembedded.org <raj.khem=
> gmail.com@lists.openembedded.org> wrote:
> >
> > vulkan-samples depend on atsc module and this module
> > only supports x86_64/arm64 as it seems,
>
> I’m wondering if we should reverse this logic and just list the platforms
> that vulkan-samples actually works on.


Yeah that would be arm64 and x86_64 AFAICT

>
>
> For example, it also fails on 32-bit ppc:
>
> vulkan-samples/git/git/components/filesystem/src/std_filesystem.cpp:52:13:
> error: narrowing conversion of 'size' from 'long long unsigned int' to
> 'size_t' {aka 'unsigned int'} [-Werror=narrowing]
>
> Ross
diff mbox series

Patch

diff --git a/meta/recipes-graphics/vulkan/vulkan-samples_git.bb b/meta/recipes-graphics/vulkan/vulkan-samples_git.bb
index 93d4cdfdd9e..e1a2d13cdff 100644
--- a/meta/recipes-graphics/vulkan/vulkan-samples_git.bb
+++ b/meta/recipes-graphics/vulkan/vulkan-samples_git.bb
@@ -37,3 +37,5 @@  EXTRA_OECMAKE += "-DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON"
 EXTRA_OECMAKE += "-DVKB_WSI_SELECTION=D2D"
 
 COMPATIBLE_HOST:x86 = "null"
+COMPATIBLE_HOST:arm = "null"
+COMPATIBLE_HOST:armv7ve = "null"