From 3b76dea5d1f40fb83f8047f1fcf4ca8260f9c245 Mon Sep 17 00:00:00 2001 From: Tim Rowley Date: Thu, 18 May 2017 11:35:58 -0500 Subject: [PATCH] swr/rast: remove unused functions Reviewed-by: Bruce Cherniak --- .../drivers/swr/rasterizer/core/frontend.h | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/src/gallium/drivers/swr/rasterizer/core/frontend.h b/src/gallium/drivers/swr/rasterizer/core/frontend.h index 9f347e1e46b..a2ce3a12041 100644 --- a/src/gallium/drivers/swr/rasterizer/core/frontend.h +++ b/src/gallium/drivers/swr/rasterizer/core/frontend.h @@ -62,21 +62,6 @@ void triangleSetupAB(const __m128 vX, const __m128 vY, __m128 & vA, __m128 & vB) // B[2] = x0 - x2 } -INLINE -void triangleSetupABVertical(const simdscalar vX[3], const simdscalar vY[3], simdscalar (&vA)[3], simdscalar (&vB)[3]) -{ - // generate edge equations - // A = y0 - y1 - // B = x1 - x0 - vA[0] = _simd_sub_ps(vY[0], vY[1]); - vA[1] = _simd_sub_ps(vY[1], vY[2]); - vA[2] = _simd_sub_ps(vY[2], vY[0]); - - vB[0] = _simd_sub_ps(vX[1], vX[0]); - vB[1] = _simd_sub_ps(vX[2], vX[1]); - vB[2] = _simd_sub_ps(vX[0], vX[2]); -} - INLINE void triangleSetupABInt(const __m128i vX, const __m128i vY, __m128i & vA, __m128i & vB) { @@ -239,19 +224,6 @@ void triangleSetupC(const __m128 vX, const __m128 vY, const __m128 vA, const __m vC = _mm_sub_ps(vC, vCy); } -INLINE -void viewportTransform(__m128 &vX, __m128 &vY, __m128 &vZ, const SWR_VIEWPORT_MATRIX &vpMatrix) -{ - vX = _mm_mul_ps(vX, _mm_set1_ps(vpMatrix.m00)); - vX = _mm_add_ps(vX, _mm_set1_ps(vpMatrix.m30)); - - vY = _mm_mul_ps(vY, _mm_set1_ps(vpMatrix.m11)); - vY = _mm_add_ps(vY, _mm_set1_ps(vpMatrix.m31)); - - vZ = _mm_mul_ps(vZ, _mm_set1_ps(vpMatrix.m22)); - vZ = _mm_add_ps(vZ, _mm_set1_ps(vpMatrix.m32)); -} - template INLINE void viewportTransform(simdvector *v, const SWR_VIEWPORT_MATRICES & vpMatrices) -- 2.30.2