swr/rast: remove unused functions
authorTim Rowley <timothy.o.rowley@intel.com>
Thu, 18 May 2017 16:35:58 +0000 (11:35 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Tue, 30 May 2017 22:21:52 +0000 (17:21 -0500)
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/core/frontend.h

index 9f347e1e46beccc0aae3a9857d4fb7fcc7ce1b12..a2ce3a1204129bcdc8f073818ad33377489db63c 100644 (file)
@@ -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<uint32_t NumVerts>
 INLINE
 void viewportTransform(simdvector *v, const SWR_VIEWPORT_MATRICES & vpMatrices)