Home | History | Annotate | Download | only in core

Lines Matching refs:tri

62 /// @param tri: simdvector[3] of FP triangle verts
63 /// @param vXi: fixed point X coords of tri verts
64 /// @param vYi: fixed point Y coords of tri verts
65 INLINE static void FPToFixedPoint(const simdvector * const tri, simdscalari(&vXi)[3], simdscalari(&vYi)[3])
67 vXi[0] = fpToFixedPointVertical(tri[0].x);
68 vYi[0] = fpToFixedPointVertical(tri[0].y);
69 vXi[1] = fpToFixedPointVertical(tri[1].x);
70 vYi[1] = fpToFixedPointVertical(tri[1].y);
71 vXi[2] = fpToFixedPointVertical(tri[2].x);
72 vYi[2] = fpToFixedPointVertical(tri[2].y);
84 INLINE void calcBoundingBoxIntVertical(const simdvector * const tri, simdscalari(&vX)[3], simdscalari(&vY)[3], simdBBox &bbox)
112 INLINE void calcBoundingBoxIntVertical<FEConservativeRastT>(const simdvector * const tri, simdscalari(&vX)[3], simdscalari(&vY)[3], simdBBox &bbox)
253 // 3 topologies - point, line, tri. This effectively zeros out the
430 /// @param tri - Contains triangle position data for SIMDs worth of triangles.
439 simdvector tri[3],
461 vRecipW0 = tri[0].v[3];
462 vRecipW1 = tri[1].v[3];
463 vRecipW2 = tri[2].v[3];
468 vRecipW0 = _simd_div_ps(_simd_set1_ps(1.0f), tri[0].w);
469 vRecipW1 = _simd_div_ps(_simd_set1_ps(1.0f), tri[1].w);
470 vRecipW2 = _simd_div_ps(_simd_set1_ps(1.0f), tri[2].w);
472 tri[0].v[0] = _simd_mul_ps(tri[0].v[0], vRecipW0);
473 tri[1].v[0] = _simd_mul_ps(tri[1].v[0], vRecipW1);
474 tri[2].v[0] = _simd_mul_ps(tri[2].v[0], vRecipW2);
476 tri[0].v[1] = _simd_mul_ps(tri[0].v[1], vRecipW0);
477 tri[1].v[1] = _simd_mul_ps(tri[1].v[1], vRecipW1);
478 tri[2].v[1] = _simd_mul_ps(tri[2].v[1], vRecipW2);
480 tri[0].v[2] = _simd_mul_ps(tri[0].v[2], vRecipW0);
481 tri[1].v[2] = _simd_mul_ps(tri[1].v[2], vRecipW1);
482 tri[2].v[2] = _simd_mul_ps(tri[2].v[2], vRecipW2);
487 viewportTransform<3>(tri, state.vpMatrices, viewportIdx);
491 viewportTransform<3>(tri, state.vpMatrices);
497 tri[0].x = _simd_add_ps(tri[0].x, offset);
498 tri[0].y = _simd_add_ps(tri[0].y, offset);
500 tri[1].x = _simd_add_ps(tri[1].x, offset);
501 tri[1].y = _simd_add_ps(tri[1].y, offset);
503 tri[2].x = _simd_add_ps(tri[2].x, offset);
504 tri[2].y = _simd_add_ps(tri[2].y, offset);
508 FPToFixedPoint(tri, vXi, vYi);
574 line[0] = tri[0];
575 line[1] = tri[1];
580 line[0] = tri[1];
581 line[1] = tri[2];
586 line[0] = tri[2];
587 line[1] = tri[0];
597 // compute per tri backface
609 // determine which edges of the degenerate tri, if any, are valid to rasterize.
658 calcBoundingBoxIntVertical<CT>(tri, vXi, vYi, bbox);
756 vTranspose3x8(vHorizX, tri[0].x, tri[1].x, tri[2].x);
757 vTranspose3x8(vHorizY, tri[0].y, tri[1].y, tri[2].y);
758 vTranspose3x8(vHorizZ, tri[0].z, tri[1].z, tri[2].z);
809 TRIANGLE_WORK_DESC &desc = work.desc.tri;
882 /// @param tri - Contains point position data for SIMDs worth of points.
1008 TRIANGLE_WORK_DESC &desc = work.desc.tri;
1040 work.desc.tri.triFlags.coverageMask = tX | (tY << 4);
1159 TRIANGLE_WORK_DESC &desc = work.desc.tri;
1225 /// @param tri - Contains line position data for SIMDs worth of points.
1377 TRIANGLE_WORK_DESC &desc = work.desc.tri;
1437 /// @param tri - Contains line position data for SIMDs worth of points.