Skip to content

Commit

Permalink
deps/etcpak: Fixed compilation without AVX2
Browse files Browse the repository at this point in the history
- SSE4 code was relying on an AVX2 intrinsic
  • Loading branch information
jerstlouis committed Dec 9, 2023
1 parent 15367c5 commit 01e5a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deps/etcpak/QuickETC2Pak.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ) )
{
Expand Down

0 comments on commit 01e5a72

Please sign in to comment.