Lines Matching refs:deInt64
31 inline deInt64 toSubpixelCoord (float v, int bits) in toSubpixelCoord()
33 return (deInt64)(v * (float)(1 << bits) + (v < 0.f ? -0.5f : 0.5f)); in toSubpixelCoord()
36 inline deInt64 toSubpixelCoord (deInt32 v, int bits) in toSubpixelCoord()
41 inline deInt32 ceilSubpixelToPixelCoord (deInt64 coord, int bits, bool fillEdge) in ceilSubpixelToPixelCoord()
49 inline deInt32 floorSubpixelToPixelCoord (deInt64 coord, int bits, bool fillEdge) in floorSubpixelToPixelCoord()
57 …lFill, const VerticalFill verticalFill, const deInt64 x0, const deInt64 y0, const deInt64 x1, cons… in initEdgeCCW()
61 const deInt64 xd = x1-x0; in initEdgeCCW()
62 const deInt64 yd = y1-y0; in initEdgeCCW()
84 static inline deInt64 evaluateEdge (const EdgeFunction& edge, const deInt64 x, const deInt64 y) in evaluateEdge()
89 static inline bool isInsideCCW (const EdgeFunction& edge, const deInt64 edgeVal) in isInsideCCW()
99 const tcu::Vector<deInt64,2> m_v0;
100 const tcu::Vector<deInt64,2> m_v1;
102 SubpixelLineSegment (const tcu::Vector<deInt64,2>& v0, const tcu::Vector<deInt64,2>& v1) in SubpixelLineSegment()
108 tcu::Vector<deInt64,2> direction (void) const in direction()
121 static tcu::Vector<deInt64,2> toSubpixelVector (const tcu::Vec2& v, int bits) in toSubpixelVector()
123 return tcu::Vector<deInt64,2>(toSubpixelCoord(v.x(), bits), toSubpixelCoord(v.y(), bits)); in toSubpixelVector()
126 static tcu::Vector<deInt64,2> toSubpixelVector (const tcu::IVec2& v, int bits) in toSubpixelVector()
128 return tcu::Vector<deInt64,2>(toSubpixelCoord(v.x(), bits), toSubpixelCoord(v.y(), bits)); in toSubpixelVector()
132 static bool isTheCenterOfTheFragment (const tcu::Vector<deInt64,2>& a, int bits) in isTheCenterOfTheFragment() argument
150 static bool vertexOnLeftSideOfLine (const tcu::Vector<deInt64,2>& p, const SubpixelLineSegment& l) in vertexOnLeftSideOfLine() argument
152 const tcu::Vector<deInt64,2> u = l.direction(); in vertexOnLeftSideOfLine()
153 const tcu::Vector<deInt64,2> v = ( p - l.m_v0); in vertexOnLeftSideOfLine()
154 const deInt64 crossProduct = (u.x() * v.y() - u.y() * v.x()); in vertexOnLeftSideOfLine()
159 static bool vertexOnRightSideOfLine (const tcu::Vector<deInt64,2>& p, const SubpixelLineSegment& l) in vertexOnRightSideOfLine() argument
161 const tcu::Vector<deInt64,2> u = l.direction(); in vertexOnRightSideOfLine()
162 const tcu::Vector<deInt64,2> v = ( p - l.m_v0); in vertexOnRightSideOfLine()
163 const deInt64 crossProduct = (u.x() * v.y() - u.y() * v.x()); in vertexOnRightSideOfLine()
168 static bool vertexOnLine (const tcu::Vector<deInt64,2>& p, const SubpixelLineSegment& l) in vertexOnLine() argument
170 const tcu::Vector<deInt64,2> u = l.direction(); in vertexOnLine()
171 const tcu::Vector<deInt64,2> v = ( p - l.m_v0); in vertexOnLine()
172 const deInt64 crossProduct = (u.x() * v.y() - u.y() * v.x()); in vertexOnLine()
177 static bool vertexOnLineSegment (const tcu::Vector<deInt64,2>& p, const SubpixelLineSegment& l) in vertexOnLineSegment() argument
182 const tcu::Vector<deInt64,2> v = l.direction(); in vertexOnLineSegment()
183 const tcu::Vector<deInt64,2> u1 = ( p - l.m_v0); in vertexOnLineSegment()
184 const tcu::Vector<deInt64,2> u2 = ( p - l.m_v1); in vertexOnLineSegment()
193 static LINE_SIDE getVertexSide (const tcu::Vector<deInt64,2>& v, const SubpixelLineSegment& l) in getVertexSide() argument
209 bool lineInCornerAngleRange (const SubpixelLineSegment& line, const tcu::Vector<deInt64,2>& cornerE… in lineInCornerAngleRange() argument
212 const tcu::Vector<deInt64,2> v = line.direction(); in lineInCornerAngleRange()
213 const deInt64 dotProduct = dot(v, cornerExitNormal); in lineInCornerAngleRange()
222 bool lineInCornerOutsideAngleRange (const SubpixelLineSegment& line, const tcu::Vector<deInt64,2>& … in lineInCornerOutsideAngleRange() argument
225 const tcu::Vector<deInt64,2> v = line.direction(); in lineInCornerOutsideAngleRange()
226 const deInt64 dotProduct = dot(v, cornerExitNormal); in lineInCornerOutsideAngleRange()
234 bool doesLineSegmentExitDiamond (const SubpixelLineSegment& line, const tcu::Vector<deInt64,2>& dia… in doesLineSegmentExitDiamond() argument
240 const deInt64 halfPixel = 1ll << (bits - 1); in doesLineSegmentExitDiamond()
244 const tcu::Vector<deInt64,2> u = line.direction(); in doesLineSegmentExitDiamond()
245 const tcu::Vector<deInt64,2> v = (diamondCenter - line.m_v0); in doesLineSegmentExitDiamond()
246 const deInt64 crossProduct = (u.x() * v.y() - u.y() * v.x()); in doesLineSegmentExitDiamond()
257 const deInt64 floorSqrtMaxInt64 = 3037000499LL; //!< floor(sqrt(MAX_INT64)) in doesLineSegmentExitDiamond()
259 const deInt64 broadRejectDistance = 2 * halfPixel; in doesLineSegmentExitDiamond()
260 const deInt64 broadRejectDistanceSquared = broadRejectDistance * broadRejectDistance; in doesLineSegmentExitDiamond()
262 …const deInt64 crossProductSquared = (crossProductOverflows) ? (0) : (crossProduct * crossProduct… in doesLineSegmentExitDiamond()
263 const deInt64 lineLengthSquared = tcu::lengthSquared(u); in doesLineSegmentExitDiamond()
265 …const deInt64 limitValue = (limitValueCouldOverflow) ? (0) : (lineLengthSquared * broadRejectD… in doesLineSegmentExitDiamond()
281 tcu::Vector<deInt64,2> p0; in doesLineSegmentExitDiamond()
282 tcu::Vector<deInt64,2> p1; in doesLineSegmentExitDiamond()
286 …{ diamondCenter + tcu::Vector<deInt64,2>(0, -halfPixel), diamondCenter + tcu::Vector<deInt64,2>… in doesLineSegmentExitDiamond()
287 …{ diamondCenter + tcu::Vector<deInt64,2>(-halfPixel, 0), diamondCenter + tcu::Vector<deInt64,2>… in doesLineSegmentExitDiamond()
288 …{ diamondCenter + tcu::Vector<deInt64,2>(0, halfPixel), diamondCenter + tcu::Vector<deInt64,2>… in doesLineSegmentExitDiamond()
289 …{ diamondCenter + tcu::Vector<deInt64,2>(halfPixel, 0), diamondCenter + tcu::Vector<deInt64,2>… in doesLineSegmentExitDiamond()
316 tcu::Vector<deInt64,2> dp; in doesLineSegmentExitDiamond()
323 …{ tcu::Vector<deInt64,2>(0, -halfPixel), false, DiamondCorners::CORNER_EDGE_CASE_HIT_SECOND_QUA… in doesLineSegmentExitDiamond()
324 …{ tcu::Vector<deInt64,2>(-halfPixel, 0), false, DiamondCorners::CORNER_EDGE_CASE_NONE, Diam… in doesLineSegmentExitDiamond()
325 …{ tcu::Vector<deInt64,2>(0, halfPixel), false, DiamondCorners::CORNER_EDGE_CASE_HIT_FIRST_QUAR… in doesLineSegmentExitDiamond()
326 …{ tcu::Vector<deInt64,2>(halfPixel, 0), true, DiamondCorners::CORNER_EDGE_CASE_HIT, Diamon… in doesLineSegmentExitDiamond()
332 const tcu::Vector<deInt64,2> p = diamondCenter + corners[ndx].dp; in doesLineSegmentExitDiamond()
473 const deInt64 x0 = toSubpixelCoord(v0.x(), m_subpixelBits); in init()
474 const deInt64 y0 = toSubpixelCoord(v0.y(), m_subpixelBits); in init()
475 const deInt64 x1 = toSubpixelCoord(v1.x(), m_subpixelBits); in init()
476 const deInt64 y1 = toSubpixelCoord(v1.y(), m_subpixelBits); in init()
477 const deInt64 x2 = toSubpixelCoord(v2.x(), m_subpixelBits); in init()
478 const deInt64 y2 = toSubpixelCoord(v2.y(), m_subpixelBits); in init()
496 const deInt64 s = evaluateEdge(m_edge01, x2, y2); in init()
513 const deInt64 xMin = de::min(de::min(x0, x1), x2); in init()
514 const deInt64 xMax = de::max(de::max(x0, x1), x2); in init()
515 const deInt64 yMin = de::min(de::min(y0, y1), y2); in init()
516 const deInt64 yMax = de::max(de::max(y0, y1), y2); in init()
557 const deInt64 sx0 = toSubpixelCoord(x0, m_subpixelBits) + halfPixel; in rasterizeSingleSample()
558 const deInt64 sx1 = toSubpixelCoord(x0+1, m_subpixelBits) + halfPixel; in rasterizeSingleSample()
559 const deInt64 sy0 = toSubpixelCoord(y0, m_subpixelBits) + halfPixel; in rasterizeSingleSample()
560 const deInt64 sy1 = toSubpixelCoord(y0+1, m_subpixelBits) + halfPixel; in rasterizeSingleSample()
562 const deInt64 sx[4] = { sx0, sx1, sx0, sx1 }; in rasterizeSingleSample()
563 const deInt64 sy[4] = { sy0, sy0, sy1, sy1 }; in rasterizeSingleSample()
573 tcu::Vector<deInt64, 4> e01; in rasterizeSingleSample()
574 tcu::Vector<deInt64, 4> e12; in rasterizeSingleSample()
575 tcu::Vector<deInt64, 4> e20; in rasterizeSingleSample()
699 deInt64 samplePos[DE_LENGTH_OF_ARRAY(s_samplePts16)]; in rasterizeMultiSample()
728 const deInt64 sx0 = toSubpixelCoord(x0, m_subpixelBits); in rasterizeMultiSample()
729 const deInt64 sx1 = toSubpixelCoord(x0+1, m_subpixelBits); in rasterizeMultiSample()
730 const deInt64 sy0 = toSubpixelCoord(y0, m_subpixelBits); in rasterizeMultiSample()
731 const deInt64 sy1 = toSubpixelCoord(y0+1, m_subpixelBits); in rasterizeMultiSample()
733 const deInt64 sx[4] = { sx0, sx1, sx0, sx1 }; in rasterizeMultiSample()
734 const deInt64 sy[4] = { sy0, sy0, sy1, sy1 }; in rasterizeMultiSample()
744 tcu::Vector<deInt64, 4> e01[NumSamples]; in rasterizeMultiSample()
745 tcu::Vector<deInt64, 4> e12[NumSamples]; in rasterizeMultiSample()
746 tcu::Vector<deInt64, 4> e20[NumSamples]; in rasterizeMultiSample()
754 const deInt64 ox = samplePos[sampleNdx*2 + 0]; in rasterizeMultiSample()
755 const deInt64 oy = samplePos[sampleNdx*2 + 1]; in rasterizeMultiSample()
878 …const tcu::Vector<deInt64,2> widthOffset = (isXMajor ? tcu::Vector<deInt64,2>(0, -1) : tcu::Vecto… in init()
880 const deInt64 x0 = toSubpixelCoord(v0.x(), m_subpixelBits) + widthOffset.x(); in init()
881 const deInt64 y0 = toSubpixelCoord(v0.y(), m_subpixelBits) + widthOffset.y(); in init()
882 const deInt64 x1 = toSubpixelCoord(v1.x(), m_subpixelBits) + widthOffset.x(); in init()
883 const deInt64 y1 = toSubpixelCoord(v1.y(), m_subpixelBits) + widthOffset.y(); in init()
886 const deInt64 xMin = de::min(x0, x1) - toSubpixelCoord(1, m_subpixelBits); in init()
887 const deInt64 xMax = de::max(x0, x1) + toSubpixelCoord(1, m_subpixelBits); in init()
888 const deInt64 yMin = de::min(y0, y1) - toSubpixelCoord(1, m_subpixelBits); in init()
889 const deInt64 yMax = de::max(y0, y1) + toSubpixelCoord(1, m_subpixelBits); in init()
936 const deInt64 halfPixel = 1ll << (m_subpixelBits - 1); in rasterize()
942 …const tcu::Vector<deInt64,2> widthOffset = -minorDirection.cast<deInt64>() * (toSubpixelCoord… in rasterize()
943 …const tcu::Vector<deInt64,2> pa = LineRasterUtil::toSubpixelVector(m_v0.xy(), m_subpixelBit… in rasterize()
944 …const tcu::Vector<deInt64,2> pb = LineRasterUtil::toSubpixelVector(m_v1.xy(), m_subpixelBit… in rasterize()
953 …const tcu::Vector<deInt64,2> diamondPosition = LineRasterUtil::toSubpixelVector(m_curPos, m_subpix… in rasterize()
958 const tcu::Vector<deInt64,2> pr = diamondPosition; in rasterize()
1120 const deInt64 x0 = toSubpixelCoord(v0.x(), m_subpixelBits); in init()
1121 const deInt64 y0 = toSubpixelCoord(v0.y(), m_subpixelBits); in init()
1122 const deInt64 x1 = toSubpixelCoord(v1.x(), m_subpixelBits); in init()
1123 const deInt64 y1 = toSubpixelCoord(v1.y(), m_subpixelBits); in init()
1126 const deInt64 xMin = de::min(x0, x1) - toSubpixelCoord(1, m_subpixelBits); in init()
1127 const deInt64 xMax = de::max(x0, x1) + toSubpixelCoord(1, m_subpixelBits); in init()
1128 const deInt64 yMin = de::min(y0, y1) - toSubpixelCoord(1, m_subpixelBits); in init()
1129 const deInt64 yMax = de::max(y0, y1) + toSubpixelCoord(1, m_subpixelBits); in init()
1146 const deInt64 halfPixel = 1ll << (m_subpixelBits - 1); in rasterize()
1147 …const tcu::Vector<deInt64,2> pa = LineRasterUtil::toSubpixelVector(m_v0.xy(), m_subpixelBit… in rasterize()
1148 …const tcu::Vector<deInt64,2> pb = LineRasterUtil::toSubpixelVector(m_v1.xy(), m_subpixelBit… in rasterize()
1155 …const tcu::Vector<deInt64,2> diamondPosition = LineRasterUtil::toSubpixelVector(m_curPos, m_subpix… in rasterize()