diff options
author | Tim Rowley <[email protected]> | 2017-05-18 11:35:58 -0500 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2017-05-30 17:21:52 -0500 |
commit | 3b76dea5d1f40fb83f8047f1fcf4ca8260f9c245 (patch) | |
tree | 6df878b44aa9a3e32d61f9a97000631fec045fff /src/gallium | |
parent | d91402fefaf3640959301bfb4ff285d91f05f072 (diff) |
swr/rast: remove unused functions
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/core/frontend.h | 28 |
1 files changed, 0 insertions, 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 @@ -63,21 +63,6 @@ void triangleSetupAB(const __m128 vX, const __m128 vY, __m128 & vA, __m128 & vB) } 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) { // generate edge equations @@ -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) |