diff options
author | Tim Rowley <[email protected]> | 2017-03-28 15:32:04 -0500 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2017-04-05 18:19:25 -0500 |
commit | 117fc582f86564b4c37db248b3231b8d86da0039 (patch) | |
tree | 4a2160554f25ac2e966880be2273203a92b687bd /src/gallium/drivers/swr/rasterizer/common | |
parent | 3c52a7316a1b968a780f387b70a17183d5bc9054 (diff) |
swr: [rasterizer core] Programmable sample position support
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/rasterizer/common')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/common/simdintrin.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/common/simdintrin.h b/src/gallium/drivers/swr/rasterizer/common/simdintrin.h index 3cf3b180200..1e3f14ce59a 100644 --- a/src/gallium/drivers/swr/rasterizer/common/simdintrin.h +++ b/src/gallium/drivers/swr/rasterizer/common/simdintrin.h @@ -648,6 +648,13 @@ simdscalari _simd_blendv_epi32(simdscalari a, simdscalari b, simdscalari mask) return _simd_castps_si(_simd_blendv_ps(_simd_castsi_ps(a), _simd_castsi_ps(b), _simd_castsi_ps(mask))); } +template<int mask> +INLINE +__m128i _simd_blend4_epi32(__m128i a, __m128i b) +{ + return _mm_castps_si128(_mm_blend_ps(_mm_castsi128_ps(a), _mm_castsi128_ps(b), mask)); +} + // convert bitmask to vector mask INLINE simdscalar vMask(int32_t mask) |