From 01e5a7263586ca8a54ea74ff7ccbe9cb86aa1de4 Mon Sep 17 00:00:00 2001 From: Jerome St-Louis Date: Fri, 8 Dec 2023 22:17:58 -0500 Subject: [PATCH] deps/etcpak: Fixed compilation without AVX2 - SSE4 code was relying on an AVX2 intrinsic --- deps/etcpak/QuickETC2Pak.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/etcpak/QuickETC2Pak.c b/deps/etcpak/QuickETC2Pak.c index 728c90d96e..d96d10f019 100644 --- a/deps/etcpak/QuickETC2Pak.c +++ b/deps/etcpak/QuickETC2Pak.c @@ -5226,7 +5226,7 @@ static etcpak_force_inline uint64_t ProcessAlpha_SSE( __m128i px0, __m128i px1, __m128i m5 = _mm_or_si128( m2, m3 ); __m128i a = _mm_or_si128( m4, m5 ); - __m128i solidCmp = _mm_broadcastb_epi8( a ); + __m128i solidCmp = _mm_shuffle_epi8( a, _mm_setzero_si128() ); __m128i cmpRes = _mm_cmpeq_epi8( a, solidCmp ); if( _mm_testc_si128( cmpRes, _mm_set1_epi32( -1 ) ) ) {