Skip to content

Commit

Permalink
depth: fix clamping of negative pixels inn AVX-512 dither
Browse files Browse the repository at this point in the history
sekrit-twc committed Oct 19, 2017
1 parent 4166d55 commit ecceaa7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/zimg/depth/x86/dither_avx512.cpp
Original file line number Diff line number Diff line change
@@ -75,6 +75,7 @@ inline FORCE_INLINE __m512i ordered_dither_avx512_xiter(__m512 x, unsigned j, co
x = _mm512_add_ps(x, dith);
out = _mm512_cvtps_epi32(x);
out = _mm512_min_epi32(out, out_max);
out = _mm512_max_epi32(out, _mm512_setzero_si512());

return out;
}

0 comments on commit ecceaa7

Please sign in to comment.