From f1fbeb1a530f46402b201756b3e76a9b4ef0739b Mon Sep 17 00:00:00 2001 From: George Kyriazis Date: Tue, 13 Feb 2018 10:41:48 -0600 Subject: [PATCH] swr/rast: blend_epi32() should return Integer, not Float fix gcc8 compiler error for KNL. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105029 Reviewed-by: Bruce Cherniak --- .../drivers/swr/rasterizer/common/simdlib_512_avx512.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/swr/rasterizer/common/simdlib_512_avx512.inl b/src/gallium/drivers/swr/rasterizer/common/simdlib_512_avx512.inl index 8de62f2a7e4..f3a58f9e1cb 100644 --- a/src/gallium/drivers/swr/rasterizer/common/simdlib_512_avx512.inl +++ b/src/gallium/drivers/swr/rasterizer/common/simdlib_512_avx512.inl @@ -366,7 +366,7 @@ static SIMDINLINE Float blend_ps(Float a, Float b) // return ImmT ? b : a (floa } template -static SIMDINLINE Float blend_epi32(Integer a, Integer b) // return ImmT ? b : a (int32) +static SIMDINLINE Integer blend_epi32(Integer a, Integer b) // return ImmT ? b : a (int32) { return _mm512_mask_blend_epi32(__mmask16(ImmT), a, b); } -- 2.30.2