From 1a8e6bff78d10183fc3a3305e7c1970dcfa65688 Mon Sep 17 00:00:00 2001 From: Peter Harris Date: Sat, 10 Aug 2024 09:32:13 +0100 Subject: [PATCH] Fix Neon test failure --- Source/astcenc_vecmathlib_neon_4.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Source/astcenc_vecmathlib_neon_4.h b/Source/astcenc_vecmathlib_neon_4.h index 9be70d4e..c7ff0128 100644 --- a/Source/astcenc_vecmathlib_neon_4.h +++ b/Source/astcenc_vecmathlib_neon_4.h @@ -977,7 +977,10 @@ ASTCENC_SIMD_INLINE void vtable_prepare( vtable4_32x8& table, const uint8_t* data ) { - table.t01 = vld2q_u8(data); + table.t01 = uint8x16x2_t { + vld1q_u8(data), + vld1q_u8(data + 16) + }; } /** @@ -987,7 +990,12 @@ ASTCENC_SIMD_INLINE void vtable_prepare( vtable4_64x8& table, const uint8_t* data ) { - table.t0123 = vld4q_u8(data); + table.t0123 = uint8x16x4_t { + vld1q_u8(data), + vld1q_u8(data + 16), + vld1q_u8(data + 32), + vld1q_u8(data + 48) + }; } /**