Skip to content

Commit

Permalink
Add missing ifdef.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfpld committed May 27, 2020
1 parent fe38bab commit f0444dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ProcessDxtc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,7 @@ static etcpak_force_inline uint64_t ProcessAlpha( const uint8_t* src )
return max | ( min << 8 ) | ( data << 16 );
}

#ifdef __SSE4_1__
static etcpak_force_inline uint64_t ProcessRGB_SSE( __m128i px0, __m128i px1, __m128i px2, __m128i px3 )
{
__m128i smask = _mm_set1_epi32( 0xF8FCF8 );
Expand Down Expand Up @@ -799,6 +800,7 @@ static etcpak_force_inline uint64_t ProcessAlpha_SSE( __m128i px0, __m128i px1,
}
return (uint64_t)(uint16_t)_mm_cvtsi128_si32( minmax ) | ( data << 16 );
}
#endif

void CompressDxt1( const uint32_t* src, uint64_t* dst, uint32_t blocks, size_t width )
{
Expand Down

0 comments on commit f0444dc

Please sign in to comment.