Lines Matching refs:deInt64
31 inline deInt64 toSubpixelCoord (float v) in toSubpixelCoord()
33 return (deInt64)(v * (1<<RASTERIZER_SUBPIXEL_BITS) + (v < 0.f ? -0.5f : 0.5f)); in toSubpixelCoord()
36 inline deInt64 toSubpixelCoord (deInt32 v) in toSubpixelCoord()
41 inline deInt32 ceilSubpixelToPixelCoord (deInt64 coord, bool fillEdge) in ceilSubpixelToPixelCoord()
49 inline deInt32 floorSubpixelToPixelCoord (deInt64 coord, 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) in toSubpixelVector()
123 return tcu::Vector<deInt64,2>(toSubpixelCoord(v.x()), toSubpixelCoord(v.y())); in toSubpixelVector()
126 static tcu::Vector<deInt64,2> toSubpixelVector (const tcu::IVec2& v) in toSubpixelVector()
128 return tcu::Vector<deInt64,2>(toSubpixelCoord(v.x()), toSubpixelCoord(v.y())); in toSubpixelVector()
132 static bool isTheCenterOfTheFragment (const tcu::Vector<deInt64,2>& a) 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 << (RASTERIZER_SUBPIXEL_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()
471 const deInt64 x0 = toSubpixelCoord(v0.x()); in init()
472 const deInt64 y0 = toSubpixelCoord(v0.y()); in init()
473 const deInt64 x1 = toSubpixelCoord(v1.x()); in init()
474 const deInt64 y1 = toSubpixelCoord(v1.y()); in init()
475 const deInt64 x2 = toSubpixelCoord(v2.x()); in init()
476 const deInt64 y2 = toSubpixelCoord(v2.y()); in init()
494 const deInt64 s = evaluateEdge(m_edge01, x2, y2); in init()
507 const deInt64 xMin = de::min(de::min(x0, x1), x2); in init()
508 const deInt64 xMax = de::max(de::max(x0, x1), x2); in init()
509 const deInt64 yMin = de::min(de::min(y0, y1), y2); in init()
510 const deInt64 yMax = de::max(de::max(y0, y1), y2); in init()
551 const deInt64 sx0 = toSubpixelCoord(x0) + halfPixel; in rasterizeSingleSample()
552 const deInt64 sx1 = toSubpixelCoord(x0+1) + halfPixel; in rasterizeSingleSample()
553 const deInt64 sy0 = toSubpixelCoord(y0) + halfPixel; in rasterizeSingleSample()
554 const deInt64 sy1 = toSubpixelCoord(y0+1) + halfPixel; in rasterizeSingleSample()
556 const deInt64 sx[4] = { sx0, sx1, sx0, sx1 }; in rasterizeSingleSample()
557 const deInt64 sy[4] = { sy0, sy0, sy1, sy1 }; in rasterizeSingleSample()
567 tcu::Vector<deInt64, 4> e01; in rasterizeSingleSample()
568 tcu::Vector<deInt64, 4> e12; in rasterizeSingleSample()
569 tcu::Vector<deInt64, 4> e20; in rasterizeSingleSample()
644 (deInt64)((POS) * (1<<RASTERIZER_SUBPIXEL_BITS) + 0.5f)
649 static const deInt64 s_samplePos2[] =
655 static const deInt64 s_samplePos4[] =
664 static const deInt64 s_samplePos8[] =
677 static const deInt64 s_samplePos16[] =
706 const deInt64* samplePos = DE_NULL; in rasterizeMultiSample()
731 const deInt64 sx0 = toSubpixelCoord(x0); in rasterizeMultiSample()
732 const deInt64 sx1 = toSubpixelCoord(x0+1); in rasterizeMultiSample()
733 const deInt64 sy0 = toSubpixelCoord(y0); in rasterizeMultiSample()
734 const deInt64 sy1 = toSubpixelCoord(y0+1); in rasterizeMultiSample()
736 const deInt64 sx[4] = { sx0, sx1, sx0, sx1 }; in rasterizeMultiSample()
737 const deInt64 sy[4] = { sy0, sy0, sy1, sy1 }; in rasterizeMultiSample()
747 tcu::Vector<deInt64, 4> e01[NumSamples]; in rasterizeMultiSample()
748 tcu::Vector<deInt64, 4> e12[NumSamples]; in rasterizeMultiSample()
749 tcu::Vector<deInt64, 4> e20[NumSamples]; in rasterizeMultiSample()
757 const deInt64 ox = samplePos[sampleNdx*2 + 0]; in rasterizeMultiSample()
758 const deInt64 oy = samplePos[sampleNdx*2 + 1]; in rasterizeMultiSample()
879 …const tcu::Vector<deInt64,2> widthOffset = (isXMajor ? tcu::Vector<deInt64,2>(0, -1) : tcu::Vecto… in init()
881 const deInt64 x0 = toSubpixelCoord(v0.x()) + widthOffset.x(); in init()
882 const deInt64 y0 = toSubpixelCoord(v0.y()) + widthOffset.y(); in init()
883 const deInt64 x1 = toSubpixelCoord(v1.x()) + widthOffset.x(); in init()
884 const deInt64 y1 = toSubpixelCoord(v1.y()) + widthOffset.y(); in init()
887 const deInt64 xMin = de::min(x0, x1) - toSubpixelCoord(1); in init()
888 const deInt64 xMax = de::max(x0, x1) + toSubpixelCoord(1); in init()
889 const deInt64 yMin = de::min(y0, y1) - toSubpixelCoord(1); in init()
890 const deInt64 yMax = de::max(y0, y1) + toSubpixelCoord(1); in init()
928 const deInt64 halfPixel = 1ll << (RASTERIZER_SUBPIXEL_BITS-1); in rasterize()
934 …const tcu::Vector<deInt64,2> widthOffset = -minorDirection.cast<deInt64>() * (toSubpixelCoord… in rasterize()
935 const tcu::Vector<deInt64,2> pa = LineRasterUtil::toSubpixelVector(m_v0.xy()) + widthOffset; in rasterize()
936 const tcu::Vector<deInt64,2> pb = LineRasterUtil::toSubpixelVector(m_v1.xy()) + widthOffset; in rasterize()
943 …const tcu::Vector<deInt64,2> diamondPosition = LineRasterUtil::toSubpixelVector(m_curPos) + tcu::V… in rasterize()
948 const tcu::Vector<deInt64,2> pr = diamondPosition; in rasterize()
1101 const deInt64 x0 = toSubpixelCoord(v0.x()); in init()
1102 const deInt64 y0 = toSubpixelCoord(v0.y()); in init()
1103 const deInt64 x1 = toSubpixelCoord(v1.x()); in init()
1104 const deInt64 y1 = toSubpixelCoord(v1.y()); in init()
1107 const deInt64 xMin = de::min(x0, x1) - toSubpixelCoord(1); in init()
1108 const deInt64 xMax = de::max(x0, x1) + toSubpixelCoord(1); in init()
1109 const deInt64 yMin = de::min(y0, y1) - toSubpixelCoord(1); in init()
1110 const deInt64 yMax = de::max(y0, y1) + toSubpixelCoord(1); in init()
1127 const deInt64 halfPixel = 1ll << (RASTERIZER_SUBPIXEL_BITS-1); in rasterize()
1128 const tcu::Vector<deInt64,2> pa = LineRasterUtil::toSubpixelVector(m_v0.xy()); in rasterize()
1129 const tcu::Vector<deInt64,2> pb = LineRasterUtil::toSubpixelVector(m_v1.xy()); in rasterize()
1136 …const tcu::Vector<deInt64,2> diamondPosition = LineRasterUtil::toSubpixelVector(m_curPos) + tcu::V… in rasterize()