• Home
  • Raw
  • Download

Lines Matching refs:tcu

50 using tcu::PixelBufferAccess;
51 using tcu::ConstPixelBufferAccess;
52 using tcu::TestLog;
54 static const tcu::Vec4 MASK_COLOR_OK = tcu::Vec4(0.0f, 0.1f, 0.0f, 1.0f);
55 static const tcu::Vec4 MASK_COLOR_DEV = tcu::Vec4(0.8f, 0.5f, 0.0f, 1.0f);
56 static const tcu::Vec4 MASK_COLOR_FAIL = tcu::Vec4(1.0f, 0.0f, 1.0f, 1.0f);
83 inline bool isBlack (const tcu::IVec4& a) in isBlack()
88 inline bool isHalfFilled (const tcu::IVec4& a) in isHalfFilled()
90 const tcu::IVec4 halfFilled (127, 0, 0, 0); in isHalfFilled()
91 const tcu::IVec4 threshold (20, 256, 256, 256); in isHalfFilled()
93 return tcu::boolAll(tcu::lessThanEqual(tcu::abs(a - halfFilled), threshold)); in isHalfFilled()
96 inline bool isLessThanHalfFilled (const tcu::IVec4& a) in isLessThanHalfFilled()
104 inline bool compareBlackNonBlackPixels (const tcu::IVec4& a, const tcu::IVec4& b) in compareBlackNonBlackPixels()
109 inline bool compareColoredPixels (const tcu::IVec4& a, const tcu::IVec4& b) in compareColoredPixels()
113 const tcu::IVec4 threshold(20, 20, 20, 0); in compareColoredPixels()
120 return tcu::boolAll(tcu::lessThanEqual(tcu::abs(a - b), threshold)); in compareColoredPixels()
131 const tcu::IVec4 cSrc = src.getPixelInt(x, y); in blitImageOnBlackSurface()
132 const tcu::IVec4 cDst = tcu::IVec4(cSrc.x(), cSrc.y(), cSrc.z(), 255); in blitImageOnBlackSurface()
150tcu::TestLog& log, const ConstPixelBufferAccess& test, const ConstPixelBufferAccess& ref, const Pi… in compareImages()
158 tcu::clear(diffMask, MASK_COLOR_OK); in compareImages()
164 const tcu::IVec4 cRef = ref.getPixelInt(x, y); in compareImages()
165 const tcu::IVec4 cTest = test.getPixelInt(x, y); in compareImages()
243 int compareBlackNonBlackImages (tcu::TestLog& log, const ConstPixelBufferAccess& test, const ConstP… in compareBlackNonBlackImages()
260 int compareColoredImages (tcu::TestLog& log, const ConstPixelBufferAccess& test, const ConstPixelBu… in compareColoredImages()
273 bool checkHalfFilledImageOverdraw (tcu::TestLog& log, const tcu::RenderTarget& m_renderTarget, cons… in checkHalfFilledImageOverdraw()
280 tcu::clear(output, MASK_COLOR_OK); in checkHalfFilledImageOverdraw()
286 const tcu::IVec4 cTest = image.getPixelInt(x, y); in checkHalfFilledImageOverdraw()
309 throw tcu::NotSupportedError("Maximum point size is too low for this test"); in checkPointSize()
317 throw tcu::NotSupportedError("Maximum line width is too low for this test"); in checkLineWidth()
320 tcu::Vec3 IVec3ToVec3 (const tcu::IVec3& v) in IVec3ToVec3()
322 return tcu::Vec3((float)v.x(), (float)v.y(), (float)v.z()); in IVec3ToVec3()
325 bool pointOnTriangle (const tcu::IVec3& p, const tcu::IVec3& t0, const tcu::IVec3& t1, const tcu::I… in pointOnTriangle()
328 const tcu::IVec3 n = tcu::cross(t1 - t0, t2 - t0); in pointOnTriangle()
329 const tcu::IVec3 d = (p - t0); in pointOnTriangle()
331 if (tcu::dot(n, d)) in pointOnTriangle()
335 …if (deSign32(tcu::dot(n, tcu::cross(t1 - t0, p - t0))) == deSign32(tcu::dot(n, tcu::cross(t2 - t0,… in pointOnTriangle()
337 …if (deSign32(tcu::dot(n, tcu::cross(t2 - t1, p - t1))) == deSign32(tcu::dot(n, tcu::cross(t0 - t1,… in pointOnTriangle()
339 …if (deSign32(tcu::dot(n, tcu::cross(t0 - t2, p - t2))) == deSign32(tcu::dot(n, tcu::cross(t1 - t2,… in pointOnTriangle()
345 bool pointsOnLine (const tcu::IVec2& t0, const tcu::IVec2& t1, const tcu::IVec2& t2) in pointsOnLine()
352 bool twoPointClippedTriangleInvisible(const tcu::Vec3& p, const tcu::IVec3& dir1, const tcu::IVec3&… in twoPointClippedTriangleInvisible()
357 const tcu::Vector<deInt64, 3> d1 = tcu::Vector<deInt64, 3>(dir1.x(), dir1.y(), dir1.z()); in twoPointClippedTriangleInvisible()
358 const tcu::Vector<deInt64, 3> d2 = tcu::Vector<deInt64, 3>(dir2.x(), dir2.y(), dir2.z()); in twoPointClippedTriangleInvisible()
359 …const tcu::Vector<deInt64, 3> pfixed = tcu::Vector<deInt64, 3>(deFloorFloatToInt32(p.x() * fixedS… in twoPointClippedTriangleInvisible()
360 const tcu::Vector<deInt64, 3> normalDir = tcu::cross(d1*farValue - pfixed, d2*farValue - pfixed); in twoPointClippedTriangleInvisible()
361 const deInt64 normalLen2 = tcu::lengthSquared(normalDir); in twoPointClippedTriangleInvisible()
366 std::string genClippingPointInfoString(const tcu::Vec4& p) in genClippingPointInfoString()
380 std::string genColorString(const tcu::Vec4& p) in genColorString()
382 const tcu::Vec4 white (1.0f, 1.0f, 1.0f, 1.0f); in genColorString()
383 const tcu::Vec4 red (1.0f, 0.0f, 0.0f, 1.0f); in genColorString()
384 const tcu::Vec4 yellow (1.0f, 1.0f, 0.0f, 1.0f); in genColorString()
385 const tcu::Vec4 blue (0.0f, 0.0f, 1.0f, 1.0f); in genColorString()
475 …throw tcu::NotSupportedError(std::string("Render target size must be at least ") + de::toString(TE… in iterate()
486 …& context, const char* name, const char* description, const tcu::Vec4* pointsBegin, const tcu::Vec…
492 const std::vector<tcu::Vec4> m_points;
497 …& context, const char* name, const char* description, const tcu::Vec4* pointsBegin, const tcu::Vec… in PointCase()
513 using tcu::TestLog; in testRender()
517 tcu::TestLog& log = m_testCtx.getLog(); in testRender()
518 …sglr::GLContext glesContext (m_context.getRenderContext(), log, 0, tcu::IVec4(0, 0, TEST_CANVA… in testRender()
523 tcu::Surface testSurface (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in testRender()
524 tcu::Surface refSurface (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in testRender()
526 tcu::Surface* surfaces[2] = {&testSurface, &refSurface}; in testRender()
543 tcu::Surface& dstSurface = *surfaces[contextNdx]; in testRender()
569 tcu::Surface diffMask (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in testRender()
585 …<< tcu::TestLog::Message << "Got " << faultyPixels << " faulty pixel(s)." << tcu::TestLog::EndMess… in testRender()
597 tcu::Vec4 p0;
598 tcu::Vec4 c0;
599 tcu::Vec4 p1;
600 tcu::Vec4 c1;
605 tcu::Vec4 p0;
606 tcu::Vec4 p1;
611 …virtual void verifyImage (const tcu::ConstPixelBufferAccess& testImageAccess, const tcu::C…
649 using tcu::TestLog; in testRender()
654 tcu::TestLog& log = m_testCtx.getLog(); in testRender()
655 …sglr::GLContext glesContext (m_context.getRenderContext(), log, 0, tcu::IVec4(0, 0, TEST_CANVA… in testRender()
660 tcu::Surface testSurface (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in testRender()
661 tcu::Surface refSurface (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in testRender()
663 tcu::Surface* surfaces[2] = {&testSurface, &refSurface}; in testRender()
682 tcu::Surface& dstSurface = *surfaces[contextNdx]; in testRender()
720 r.c0 = tcu::Vec4(1, 1, 1, 1); in convertToColoredLines()
722 r.c1 = tcu::Vec4(1, 1, 1, 1); in convertToColoredLines()
735 …void verifyImage (const tcu::ConstPixelBufferAccess& testImageAccess, const tcu::ConstPixelBuff…
747 void LineCase::verifyImage (const tcu::ConstPixelBufferAccess& testImageAccess, const tcu::ConstPix… in verifyImage()
753 tcu::TestLog& log = m_testCtx.getLog(); in verifyImage()
754 tcu::Surface diffMask (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in verifyImage()
769 …<< tcu::TestLog::Message << "Got " << faultyPixels << " faulty pixel(s)." << tcu::TestLog::EndMess… in verifyImage()
786 …void verifyImage (const tcu::ConstPixelBufferAccess& testImageAccess, const tcu::ConstPixelBufferA…
794 void ColoredLineCase::verifyImage (const tcu::ConstPixelBufferAccess& testImageAccess, const tcu::C… in verifyImage()
797 tcu::TestLog& log = m_testCtx.getLog(); in verifyImage()
805 tcu::Surface diffMask(TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in verifyImage()
820 …<< tcu::TestLog::Message << "Got " << faultyPixels << " faulty pixel(s)." << tcu::TestLog::EndMess… in verifyImage()
828 …if (!tcu::fuzzyCompare(log, "Images", "", referenceImageAccess, testImageAccess, threshold, tcu::C… in verifyImage()
846 tcu::Vec4 p0;
847 tcu::Vec4 c0;
848 tcu::Vec4 p1;
849 tcu::Vec4 c1;
850 tcu::Vec4 p2;
851 tcu::Vec4 c2;
856 …virtual void verifyImage (const tcu::ConstPixelBufferAccess& testImageAccess, const tcu::Co…
873 using tcu::TestLog; in testRender()
878 tcu::TestLog& log = m_testCtx.getLog(); in testRender()
879 …sglr::GLContext glesContext (m_context.getRenderContext(), log, 0, tcu::IVec4(0, 0, TEST_CANVA… in testRender()
884 tcu::Surface testSurface (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in testRender()
885 tcu::Surface refSurface (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in testRender()
887 tcu::Surface* surfaces[2] = {&testSurface, &refSurface}; in testRender()
911 tcu::Surface& dstSurface = *surfaces[contextNdx]; in testRender()
943 …void verifyImage (const tcu::ConstPixelBufferAccess& testImageAccess, const tcu::ConstPixelBuffer…
951 void TriangleCase::verifyImage (const tcu::ConstPixelBufferAccess& testImageAccess, const tcu::Cons… in verifyImage()
955 tcu::TestLog& log = m_testCtx.getLog(); in verifyImage()
956 tcu::Surface diffMask (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in verifyImage()
972 …<< tcu::TestLog::Message << "Got " << faultyPixels << " faulty pixel(s)." << tcu::TestLog::EndMess… in verifyImage()
983 …void verifyImage (const tcu::ConstPixelBufferAccess& testImageAccess, const tcu::ConstPixelBuff…
991 void TriangleAttributeCase::verifyImage (const tcu::ConstPixelBufferAccess& testImageAccess, const in verifyImage()
994 tcu::TestLog& log = m_testCtx.getLog(); in verifyImage()
1001 tcu::Surface diffMask (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in verifyImage()
1015 …<< tcu::TestLog::Message << "Got " << faultyPixels << " faulty pixel(s)." << tcu::TestLog::EndMess… in verifyImage()
1023 …if (!tcu::fuzzyCompare(log, "Images", "", referenceImageAccess, testImageAccess, threshold, tcu::C… in verifyImage()
1048 using tcu::TestLog; in testRender()
1052 tcu::TestLog& log = m_testCtx.getLog(); in testRender()
1053 …sglr::GLContext glesContext (m_context.getRenderContext(), log, 0, tcu::IVec4(0, 0, TEST_CANVA… in testRender()
1057 tcu::Surface testSurface (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in testRender()
1058 tcu::Surface refSurface (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in testRender()
1069 tcu::Surface outputImage(TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in testRender()
1080 << tcu::TestLog::Message << "Got overdraw." << tcu::TestLog::EndMessage; in testRender()
1089 tcu::Surface diffMask (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in testRender()
1106 …<< tcu::TestLog::Message << "Got " << faultyPixels << " faulty pixel(s)." << tcu::TestLog::EndMess… in testRender()
1118 tcu::Vec4 v0;
1119 tcu::Vec4 c0;
1120 tcu::Vec4 v1;
1121 tcu::Vec4 c1;
1122 tcu::Vec4 v2;
1123 tcu::Vec4 c2;
1146 tcu::TestLog& log = m_testCtx.getLog(); in render()
1185 …const rr::WindowRectangle& viewport, const tcu::Vec3& d1, const tcu::Vec3& d2, const tcu::Vec3& ce…
1188 …scription, const rr::WindowRectangle& viewport, const tcu::Vec3& d1, const tcu::Vec3& d2, const tc… in QuadFillTest()
1192 const tcu::Vec4 center = tcu::Vec4(center_.x(), center_.y(), center_.z(), 1.0f); in QuadFillTest()
1193 const tcu::Vec4 halfWhite = tcu::Vec4(0.5f, 0.5f, 0.5f, 0.5f); in QuadFillTest()
1194 const tcu::Vec4 halfRed = tcu::Vec4(0.5f, 0.0f, 0.0f, 0.5f); in QuadFillTest()
1195 const tcu::Vec4 e1 = radius * tcu::Vec4(d1.x(), d1.y(), d1.z(), 0.0f); in QuadFillTest()
1196 const tcu::Vec4 e2 = radius * tcu::Vec4(d2.x(), d2.y(), d2.z(), 0.0f); in QuadFillTest()
1229 const tcu::Vec4 center = tcu::Vec4(0, 0, 0, 1.0f); in TriangleFanFillTest()
1230 const tcu::Vec4 halfWhite = tcu::Vec4(0.5f, 0.5f, 0.5f, 0.5f); in TriangleFanFillTest()
1231 const tcu::Vec4 oddSliceColor = tcu::Vec4(0.0f, 0.0f, 0.5f, 0.0f); in TriangleFanFillTest()
1249 const tcu::Vec3 corner; in TriangleFanFillTest()
1250 const tcu::Vec3 entryPoint; in TriangleFanFillTest()
1251 const tcu::Vec3 exitPoint; in TriangleFanFillTest()
1254 { tcu::Vec3( 1, 1, 1), tcu::Vec3( 0, 1, 1), tcu::Vec3( 1, 0, 1) }, in TriangleFanFillTest()
1255 { tcu::Vec3( 1,-1, 1), tcu::Vec3( 1, 0, 1), tcu::Vec3( 1,-1, 0) }, in TriangleFanFillTest()
1256 { tcu::Vec3( 1,-1,-1), tcu::Vec3( 1,-1, 0), tcu::Vec3( 0,-1,-1) }, in TriangleFanFillTest()
1257 { tcu::Vec3(-1,-1,-1), tcu::Vec3( 0,-1,-1), tcu::Vec3(-1, 0,-1) }, in TriangleFanFillTest()
1258 { tcu::Vec3(-1, 1,-1), tcu::Vec3(-1, 0,-1), tcu::Vec3(-1, 1, 0) }, in TriangleFanFillTest()
1259 { tcu::Vec3(-1, 1, 1), tcu::Vec3(-1, 1, 0), tcu::Vec3( 0, 1, 1) }, in TriangleFanFillTest()
1268 tcu::Vec3 vertex0; in TriangleFanFillTest()
1269 tcu::Vec3 vertex1; in TriangleFanFillTest()
1277 const tcu::Vec3 v1 = visit.entryPoint - visit.corner; in TriangleFanFillTest()
1278 const tcu::Vec3 v2 = visit.exitPoint - visit.corner; in TriangleFanFillTest()
1280 …vertex0 = visit.corner + tcu::normalize(tcu::mix(v1, v2, tcu::Vec3(float(tri)/trianglesPerVisit))); in TriangleFanFillTest()
1289 const tcu::Vec3 v1 = visit.entryPoint - visit.corner; in TriangleFanFillTest()
1290 const tcu::Vec3 v2 = visit.exitPoint - visit.corner; in TriangleFanFillTest()
1292 …vertex1 = visit.corner + tcu::normalize(tcu::mix(v1, v2, tcu::Vec3(float(tri+1)/trianglesPerVisit)… in TriangleFanFillTest()
1303 triangle.v1 = tcu::Vec4(vertex0.x() * radius, vertex0.y() * radius, vertex0.z() * radius, 1.0f); in TriangleFanFillTest()
1304 triangle.v2 = tcu::Vec4(vertex1.x() * radius, vertex1.y() * radius, vertex1.z() * radius, 1.0f); in TriangleFanFillTest()
1330 const tcu::Vec4 viewportTestPoints[] = in init()
1333 tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), in init()
1334 tcu::Vec4( 0.1f, 0.1f, 0.1f, 1.0f), in init()
1335 tcu::Vec4(-0.1f, 0.1f, -0.1f, 1.0f), in init()
1336 tcu::Vec4(-0.1f, -0.1f, 0.1f, 1.0f), in init()
1337 tcu::Vec4( 0.1f, -0.1f, -0.1f, 1.0f), in init()
1340 tcu::Vec4( 2.0f, 2.0f, 2.0f, 3.0f), in init()
1341 tcu::Vec4(-2.0f, -2.0f, 2.0f, 3.0f), in init()
1342 tcu::Vec4( 0.5f, -0.5f, 0.5f, 0.7f), in init()
1343 tcu::Vec4(-0.5f, 0.5f, -0.5f, 0.7f), in init()
1346 tcu::Vec4(-2.0f, -2.0f, 0.0f, 2.2f), in init()
1347 tcu::Vec4( 1.0f, -1.0f, 0.0f, 1.1f), in init()
1348 tcu::Vec4(-1.0f, 1.0f, 0.0f, 1.1f), in init()
1351 tcu::Vec4( 1.3f, 0.0f, 0.0f, 1.0f), in init()
1352 tcu::Vec4(-1.3f, 0.0f, 0.0f, 1.0f), in init()
1353 tcu::Vec4( 0.0f, 1.3f, 0.0f, 1.0f), in init()
1354 tcu::Vec4( 0.0f, -1.3f, 0.0f, 1.0f), in init()
1356 tcu::Vec4(-1.3f, -1.3f, 0.0f, 1.0f), in init()
1357 tcu::Vec4(-1.3f, 1.3f, 0.0f, 1.0f), in init()
1358 tcu::Vec4( 1.3f, 1.3f, 0.0f, 1.0f), in init()
1359 tcu::Vec4( 1.3f, -1.3f, 0.0f, 1.0f), in init()
1362 tcu::Vec4( littleOverViewport, littleOverViewport, 0.0f, 1.0f), in init()
1363 tcu::Vec4( 0.0f, littleOverViewport, 0.0f, 1.0f), in init()
1364 tcu::Vec4( littleOverViewport, 0.0f, 0.0f, 1.0f), in init()
1366 const tcu::Vec4 depthTestPoints[] = in init()
1369 tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), in init()
1370 tcu::Vec4( 0.1f, 0.1f, 0.1f, 1.0f), in init()
1371 tcu::Vec4(-0.1f, 0.1f, -0.1f, 1.0f), in init()
1372 tcu::Vec4(-0.1f, -0.1f, 0.1f, 1.0f), in init()
1373 tcu::Vec4( 0.1f, -0.1f, -0.1f, 1.0f), in init()
1376 tcu::Vec4( 0.1f, 0.0f, 1.1f, 1.0f), in init()
1377 tcu::Vec4(-0.1f, 0.0f, -1.1f, 1.0f), in init()
1378 tcu::Vec4(-0.0f, -0.1f, 1.1f, 1.0f), in init()
1379 tcu::Vec4( 0.0f, 0.1f, -1.1f, 1.0f) in init()
1419 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), tcu::Vec4( 0.0f, 1.5f, 0.0f, 1.0f)}, in init()
1420 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), tcu::Vec4(-1.5f, 1.0f, 0.0f, 1.0f)}, in init()
1421 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), tcu::Vec4(-1.5f, 0.0f, 0.0f, 1.0f)}, in init()
1422 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), tcu::Vec4( 0.2f, 0.4f, 1.5f, 1.0f)}, in init()
1423 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), tcu::Vec4(-2.0f, -1.0f, 0.0f, 1.0f)}, in init()
1424 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), tcu::Vec4( 1.0f, 0.1f, 0.0f, 0.6f)}, in init()
1427 {tcu::Vec4( 1.5f, 0.0f, 0.0f, 1.0f), tcu::Vec4( 0.8f, -0.2f, 0.0f, 1.0f)}, in init()
1428 {tcu::Vec4( 0.0f, -1.5f, 0.0f, 1.0f), tcu::Vec4( 0.9f, -0.7f, 0.0f, 1.0f)}, in init()
1431 {tcu::Vec4( 0.0f, -1.3f, 0.0f, 1.0f), tcu::Vec4( 1.3f, 0.0f, 0.0f, 1.0f)}, in init()
1434 …{tcu::Vec4(-0.8f, -littleOverViewport, 0.0f, 1.0f), tcu::Vec4( 0.0f, -littl… in init()
1435 …{tcu::Vec4(-littleOverViewport - 1.0f, 0.0f, 0.0f, 1.0f), tcu::Vec4( 0.0f, -littl… in init()
1439 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), tcu::Vec4( 1.3f, 1.0f, 2.0f, 1.0f)}, in init()
1440 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), tcu::Vec4( 1.3f, -1.0f, 2.0f, 1.0f)}, in init()
1441 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), tcu::Vec4(-1.0f, -1.1f, -2.0f, 1.0f)}, in init()
1442 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), tcu::Vec4(-1.0f, 1.1f, -2.0f, 1.0f)}, in init()
1443 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), tcu::Vec4( 1.0f, 0.1f, 2.0f, 0.6f)}, in init()
1447 …{tcu::Vec4( -41000.0f, -40000.0f, -1000000.0f, 1.0f), tcu::Vec4( 41000.0f, 40000.0f, 1000000.0… in init()
1448 …{tcu::Vec4( 41000.0f, -40000.0f, 1000000.0f, 1.0f), tcu::Vec4(-41000.0f, 40000.0f, -100000… in init()
1449 …{tcu::Vec4( 0.5f, -40000.0f, 100000.0f, 1.0f), tcu::Vec4( 0.5f, 40000.0f, -100000.0f, 1… in init()
1450 …{tcu::Vec4( -0.5f, 40000.0f, 100000.0f, 1.0f), tcu::Vec4(-0.5f, -40000.0f, -100000.0f… in init()
1454 const tcu::Vec4 red (1.0f, 0.0f, 0.0f, 1.0f); in init()
1455 const tcu::Vec4 yellow (1.0f, 1.0f, 0.0f, 1.0f); in init()
1456 const tcu::Vec4 lightBlue (0.3f, 0.3f, 1.0f, 1.0f); in init()
1459 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), red, tcu::Vec4( 1.3f, 1.0f, 2.0f, 1.0f), yellow }, in init()
1460 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), red, tcu::Vec4( 1.3f, -1.0f, 2.0f, 1.0f), lightBlue }, in init()
1461 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), red, tcu::Vec4(-1.0f, -1.0f, -2.0f, 1.0f), yellow }, in init()
1462 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), red, tcu::Vec4(-1.0f, 1.0f, -2.0f, 1.0f), lightBlue }, in init()
1506 const tcu::Vec4 white (1.0f, 1.0f, 1.0f, 1.0f); in init()
1507 const tcu::Vec4 red (1.0f, 0.0f, 0.0f, 1.0f); in init()
1508 const tcu::Vec4 yellow (1.0f, 1.0f, 0.0f, 1.0f); in init()
1509 const tcu::Vec4 blue (0.0f, 0.0f, 1.0f, 1.0f); in init()
1516 …{tcu::Vec4(-0.8f, -0.2f, 0.0f, 1.0f), white, tcu::Vec4(-0.8f, 0.2f, 0.0f, 1.0f), white, tcu::… in init()
1519 …{tcu::Vec4(-0.6f, -1.2f, 0.0f, 1.0f), white, tcu::Vec4(-1.2f, -0.6f, 0.0f, 1.0f), white, tcu::… in init()
1522 …{tcu::Vec4(-1.1f, 0.6f, 0.0f, 1.0f), white, tcu::Vec4(-1.1f, 1.1f, 0.0f, 1.0f), white, tcu::… in init()
1523 …{tcu::Vec4( 0.8f, 1.1f, 0.0f, 1.0f), white, tcu::Vec4( 0.95f,-1.1f, 0.0f, 1.0f), white, tcu::… in init()
1528 …{tcu::Vec4(-0.2f, 0.7f, 0.0f, 1.0f), white, tcu::Vec4( 0.2f, 0.7f, 0.0f, 1.0f), white, tcu::… in init()
1531 …{tcu::Vec4( 0.9f, 0.4f, -1.5f, 1.0f), white, tcu::Vec4( 0.9f, -0.4f, -1.5f, 1.0f), white, tcu::… in init()
1534 …{tcu::Vec4(-0.9f, 0.6f, -2.0f, 1.0f), white, tcu::Vec4(-0.9f, -0.6f, -2.0f, 1.0f), white, tcu::… in init()
1537 …{tcu::Vec4( 0.0f, -1.2f, 0.0f, 1.0f), white, tcu::Vec4( 0.0f, 0.5f, -1.5f, 1.0f), white, tcu::… in init()
1542 …{tcu::Vec4(-0.2f, -0.3f, 0.0f, 1.0f), white, tcu::Vec4( 0.2f, -0.3f, 0.0f, 1.0f), white, tcu:… in init()
1545 …{tcu::Vec4( 0.5f, 0.5f, 0.0f, 1.0f), white, tcu::Vec4( large, 0.5f, 0.0f, 1.0f), white, tcu::Ve… in init()
1548 …{tcu::Vec4(-0.9f, -large, 0.0f, 1.0f), white, tcu::Vec4(-1.1f, -large, 0.0f, 1.0f), white, tcu::… in init()
1553 …{tcu::Vec4(-0.2f, -0.3f, 0.0f, 1.0f), white, tcu::Vec4( 0.2f, -0.3f, 0.0f, 1.0f), white, tcu:… in init()
1556 …{tcu::Vec4( 0.5f, 0.5f, 0.0f, 1.0f), white, tcu::Vec4( 0.9f, large/2, -large, 1.0f), white, tcu in init()
1559 …{tcu::Vec4(-0.9f, large/4, large, 1.0f), white, tcu::Vec4(-0.5f, -large/4, -large, 1.0f), white,… in init()
1564 …{tcu::Vec4(-0.2f, -0.3f, 0.0f, 1.0f), red, tcu::Vec4( 0.2f, -0.3f, 0.0f, 1.0f), yellow, tcu::… in init()
1567 …{tcu::Vec4( 0.6f, 1.2f, 0.0f, 1.0f), red, tcu::Vec4( 1.2f, 0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1570 …{tcu::Vec4( 0.6f, -1.2f, 0.0f, 1.0f), red, tcu::Vec4( 1.2f, -0.6f, 0.0f, 1.0f), yellow, 16.0f* in init()
1573 …{tcu::Vec4(-0.9f, large/4, large, 1.0f), red, tcu::Vec4(-0.5f, -large/4, -large, 1.0f), yellow, in init()
1601 …{tcu::Vec4(-0.2f, -0.3f, 0.0f, 1.0f), red, tcu::Vec4( 0.2f, -0.3f, 0.0f, 1.0f), yellow, tcu::… in init()
1604 …{tcu::Vec4( 0.6f, 1.2f, 0.0f, 1.0f), red, tcu::Vec4( 1.2f, 0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1607 …{tcu::Vec4( 0.6f, -1.2f, 0.0f, 1.0f), red, tcu::Vec4( 1.2f, -0.6f, 0.0f, 1.0f), yellow, 16.0f* in init()
1608 …{tcu::Vec4( 0.6f, 1.2f, 0.0f, 1.0f), red, tcu::Vec4( 1.2f, 0.6f, 0.0f, 1.0f), yellow, 16.0f* in init()
1609 …{tcu::Vec4(-0.6f, 1.2f, 0.0f, 1.0f), red, tcu::Vec4(-1.2f, 0.6f, 0.0f, 1.0f), yellow, 16.0f* in init()
1610 …{tcu::Vec4(-0.6f, -1.2f, 0.0f, 1.0f), red, tcu::Vec4(-1.2f, -0.6f, 0.0f, 1.0f), yellow, 16.0f* in init()
1613 …{tcu::Vec4(-0.9f, offset/4, offset, 1.0f), red, tcu::Vec4(-0.5f, -offset/4, -offset, 1.0f), yell… in init()
1625 …{tcu::Vec4(-0.2f, -0.3f, 0.0f, 1.0f), red, tcu::Vec4( 0.2f, -0.3f, 0.0f, 1.0f), yellow, tcu::… in init()
1628 …{tcu::Vec4( 0.6f, 1.2f, 0.0f, 1.0f), red, tcu::Vec4( 1.2f, 0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1631 …{tcu::Vec4( 0.6f, -1.2f, 0.0f, 1.0f), red, tcu::Vec4( 1.2f, -0.6f, 0.0f, 1.0f), yellow, 16.0f* in init()
1632 …{tcu::Vec4( 0.6f, 1.2f, 0.0f, 1.0f), red, tcu::Vec4( 1.2f, 0.6f, 0.0f, 1.0f), yellow, 16.0f* in init()
1633 …{tcu::Vec4(-0.6f, 1.2f, 0.0f, 1.0f), red, tcu::Vec4(-1.2f, 0.6f, 0.0f, 1.0f), yellow, 16.0f* in init()
1634 …{tcu::Vec4(-0.6f, -1.2f, 0.0f, 1.0f), red, tcu::Vec4(-1.2f, -0.6f, 0.0f, 1.0f), yellow, 16.0f* in init()
1646 …{tcu::Vec4(-0.2f, -0.3f, 0.0f, 1.0f), red, tcu::Vec4( 0.2f, -0.3f, 0.0f, 1.0f), yellow, tcu::… in init()
1649 …{tcu::Vec4( 0.6f, 1.2f, 0.0f, 1.0f), red, tcu::Vec4( 1.2f, 0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1652 …{tcu::Vec4( 0.6f, -1.2f, 0.0f, 1.0f), red, tcu::Vec4( 1.2f, -0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1653 …{tcu::Vec4( 0.6f, 1.2f, 0.0f, 1.0f), red, tcu::Vec4( 1.2f, 0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1654 …{tcu::Vec4(-0.6f, 1.2f, 0.0f, 1.0f), red, tcu::Vec4(-1.2f, 0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1655 …{tcu::Vec4(-0.6f, -1.2f, 0.0f, 1.0f), red, tcu::Vec4(-1.2f, -0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1667 …{tcu::Vec4(-0.2f, -0.3f, 0.0f, 1.0f), red, tcu::Vec4( 0.2f, -0.3f, 0.0f, 1.0f), yellow, tcu::… in init()
1670 …{tcu::Vec4( 0.6f, -1.2f, 0.0f, 1.0f), red, tcu::Vec4( 1.2f, -0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1671 …{tcu::Vec4( 0.6f, 1.2f, 0.0f, 1.0f), red, tcu::Vec4( 1.2f, 0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1672 …{tcu::Vec4(-0.6f, 1.2f, 0.0f, 1.0f), red, tcu::Vec4(-1.2f, 0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1673 …{tcu::Vec4(-0.6f, -1.2f, 0.0f, 1.0f), red, tcu::Vec4(-1.2f, -0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1685 …{tcu::Vec4(0.3f, 0.2f, 0.0f, 1.0f), red, tcu::Vec4( 0.3f, -0.2f, 0.0f, 1.0f), yellow, tcu::Ve… in init()
1688 …{tcu::Vec4( 0.6f, -1.2f, 0.0f, 1.0f), red, tcu::Vec4( 1.2f, -0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1689 …{tcu::Vec4( 0.6f, 1.2f, 0.0f, 1.0f), red, tcu::Vec4( 1.2f, 0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1690 …{tcu::Vec4(-0.6f, 1.2f, 0.0f, 1.0f), red, tcu::Vec4(-1.2f, 0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1691 …{tcu::Vec4(-0.6f, -1.2f, 0.0f, 1.0f), red, tcu::Vec4(-1.2f, -0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1703 …{tcu::Vec4(-0.3f, 0.2f, 0.0f, 1.0f), red, tcu::Vec4(-0.3f, -0.2f, 0.0f, 1.0f), yellow, tcu::V… in init()
1706 …{tcu::Vec4( 0.6f, -1.2f, 0.0f, 1.0f), red, tcu::Vec4( 1.2f, -0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1707 …{tcu::Vec4( 0.6f, 1.2f, 0.0f, 1.0f), red, tcu::Vec4( 1.2f, 0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1708 …{tcu::Vec4(-0.6f, 1.2f, 0.0f, 1.0f), red, tcu::Vec4(-1.2f, 0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1709 …{tcu::Vec4(-0.6f, -1.2f, 0.0f, 1.0f), red, tcu::Vec4(-1.2f, -0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1721 …{tcu::Vec4(-0.2f, 0.3f, 0.0f, 1.0f), red, tcu::Vec4( 0.2f, 0.3f, 0.0f, 1.0f), yellow, tcu::Ve… in init()
1724 …{tcu::Vec4( 0.6f, -1.2f, 0.0f, 1.0f), red, tcu::Vec4( 1.2f, -0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1725 …{tcu::Vec4( 0.6f, 1.2f, 0.0f, 1.0f), red, tcu::Vec4( 1.2f, 0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1726 …{tcu::Vec4(-0.6f, 1.2f, 0.0f, 1.0f), red, tcu::Vec4(-1.2f, 0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1727 …{tcu::Vec4(-0.6f, -1.2f, 0.0f, 1.0f), red, tcu::Vec4(-1.2f, -0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1739 …{tcu::Vec4( 0.6f, 1.2f, 0.0f, 1.0f), red, tcu::Vec4( 1.2f, 0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1742 …{tcu::Vec4( 0.6f, -1.2f, 0.0f, 1.0f), red, tcu::Vec4( 1.2f, -0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1743 …{tcu::Vec4( 0.6f, 1.2f, 0.0f, 1.0f), red, tcu::Vec4( 1.2f, 0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1744 …{tcu::Vec4(-0.6f, 1.2f, 0.0f, 1.0f), red, tcu::Vec4(-1.2f, 0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1745 …{tcu::Vec4(-0.6f, -1.2f, 0.0f, 1.0f), red, tcu::Vec4(-1.2f, -0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1757 …{tcu::Vec4(-0.2f, -0.3f, 0.0f, 1.0f), red, tcu::Vec4( 0.2f, -0.3f, 0.0f, 1.0f), yellow, tcu::… in init()
1760 …{tcu::Vec4( -1.0f, -1.0f, 0.0f, 1.0f), white, tcu::Vec4( 1.0f, -1.0f, 0.0f, 1.0f), white, tcu:… in init()
1761 …{tcu::Vec4( -1.0f, 1.0f, 0.0f, 1.0f), blue, tcu::Vec4( 1.0f, -1.0f, 0.0f, 1.0f), blue, tcu::V… in init()
1773 …{tcu::Vec4(-0.2f, -0.3f, 0.0f, 1.0f), red, tcu::Vec4( 0.2f, -0.3f, 0.0f, 1.0f), yellow, tcu::… in init()
1776 …{tcu::Vec4( -1.0f, 1.0f, 0.0f, 1.0f), red, tcu::Vec4( 1.0f, -1.0f, 0.0f, 1.0f), red, tcu::V… in init()
1777 …{tcu::Vec4( -1.0f, -1.0f, 0.0f, 1.0f), blue, tcu::Vec4( 1.0f, -1.0f, 0.0f, 1.0f), blue, tcu::V… in init()
1789 …{tcu::Vec4(-0.2f, -0.3f, 0.0f, 1.0f), red, tcu::Vec4( 0.2f, -0.3f, 0.0f, 1.0f), yellow, tcu::… in init()
1792 …{tcu::Vec4( -1.0f, -1.0f, 0.0f, 1.0f), white, tcu::Vec4( 1.0f, -1.0f, 0.0f, 1.0f), white, tcu:… in init()
1793 …{tcu::Vec4( -1.0f, 1.0f, 0.0f, 1.0f), red, tcu::Vec4( 1.0f, -1.0f, 0.0f, 1.0f), red, tcu:… in init()
1794 …{tcu::Vec4( -1.0f, -1.0f, 0.0f, 1.0f), blue, tcu::Vec4( 1.0f, -1.0f, 0.0f, 1.0f), blue, tcu:… in init()
1806 …{tcu::Vec4(-0.2f, -0.3f, 0.0f, 1.0f), red, tcu::Vec4( 0.2f, -0.3f, 0.0f, 1.0f), yellow, tcu::… in init()
1809 …{tcu::Vec4( -1.0f, -1.0f, 0.0f, 1.0f), white, tcu::Vec4( 1.0f, -1.0f, 0.0f, 1.0f), white, tc… in init()
1810 …{tcu::Vec4( -1.0f, 1.0f, 0.0f, 1.0f), red, tcu::Vec4( 1.0f, -1.0f, 0.0f, 1.0f), red, tc… in init()
1811 …{tcu::Vec4( -1.0f, -1.0f, 0.0f, 1.0f), blue, tcu::Vec4( 1.0f, -1.0f, 0.0f, 1.0f), blue, tc… in init()
1812 …{tcu::Vec4( -1.0f, 1.0f, 0.0f, 1.0f), yellow, tcu::Vec4( 1.0f, -1.0f, 0.0f, 1.0f), yellow, tc… in init()
1840 tcu::Vec3 d1; // tangent in init()
1841 tcu::Vec3 d2; // bi-tangent in init()
1844 { tcu::Vec3( 1, 1, 1), tcu::Vec3( 1, -1, 1) }, in init()
1845 { tcu::Vec3( 1, 1, 1), tcu::Vec3(-1, 1.1f, 1) }, in init()
1846 { tcu::Vec3( 1, 1, 0), tcu::Vec3(-1, 1, 0) }, in init()
1847 { tcu::Vec3( 0, 1, 0), tcu::Vec3( 1, 0, 0) }, in init()
1848 { tcu::Vec3( 0, 1, 0), tcu::Vec3( 1, 0.1f, 0) }, in init()
1854 tcu::Vec3 d1; // tangent in init()
1855 tcu::Vec3 d2; // bi-tangent in init()
1856 tcu::Vec3 center; // center in init()
1859 …{ tcu::Vec3( 1, 0.01f, 0 ), tcu::Vec3( 0, 0.01f, 0), tcu::Vec3( 0, 0.99f, 0 )… in init()
1860 …{ tcu::Vec3( 0.01f, 1, 0 ), tcu::Vec3( 0.01f, 0, 0), tcu::Vec3( 0.99f, 0, 0 )… in init()
1861 …{ tcu::Vec3( 1, 1, 0.01f), tcu::Vec3( 0.01f, -0.01f, 0), tcu::Vec3( 0, 0, 0.99f)… in init()
1889 const tcu::IVec3 outside[] = in init()
1892 tcu::IVec3(-1, 0, 0), in init()
1893 tcu::IVec3( 1, 0, 0), in init()
1894 tcu::IVec3( 0, 1, 0), in init()
1895 tcu::IVec3( 0, -1, 0), in init()
1896 tcu::IVec3( 0, 0, 1), in init()
1897 tcu::IVec3( 0, 0, -1), in init()
1900 tcu::IVec3(-1, -1, 0), in init()
1901 tcu::IVec3( 1, -1, 0), in init()
1902 tcu::IVec3( 1, 1, 0), in init()
1903 tcu::IVec3(-1, 1, 0), in init()
1905 tcu::IVec3(-1, 0, -1), in init()
1906 tcu::IVec3( 1, 0, -1), in init()
1907 tcu::IVec3( 1, 0, 1), in init()
1908 tcu::IVec3(-1, 0, 1), in init()
1910 tcu::IVec3( 0, -1, -1), in init()
1911 tcu::IVec3( 0, 1, -1), in init()
1912 tcu::IVec3( 0, 1, 1), in init()
1913 tcu::IVec3( 0, -1, 1), in init()
1916 tcu::IVec3(-1, -1, 1), in init()
1917 tcu::IVec3( 1, -1, 1), in init()
1918 tcu::IVec3( 1, 1, 1), in init()
1919 tcu::IVec3(-1, 1, 1), in init()
1921 tcu::IVec3(-1, -1, -1), in init()
1922 tcu::IVec3( 1, -1, -1), in init()
1923 tcu::IVec3( 1, 1, -1), in init()
1924 tcu::IVec3(-1, 1, -1), in init()
1943 const tcu::Vec4 white = tcu::Vec4( 1, 1, 1, 1); in init()
1944 const tcu::Vec3 r0 = tcu::Vec3( 0.2f, 0.3f, 0); in init()
1945 const tcu::Vec3 r1 = tcu::Vec3(-0.3f, -0.4f, 0); in init()
1946 const tcu::Vec3 r2 = IVec3ToVec3(outside[ndx]) * far; in init()
1947 const tcu::Vec4 p0 = tcu::Vec4(r0.x() * w0, r0.y() * w0, r0.z() * w0, w0); in init()
1948 const tcu::Vec4 p1 = tcu::Vec4(r1.x() * w1, r1.y() * w1, r1.z() * w1, w1); in init()
1949 const tcu::Vec4 p2 = tcu::Vec4(r2.x() * w2, r2.y() * w2, r2.z() * w2, w2); in init()
1967 const tcu::Vec4 white = tcu::Vec4(1.0f, 1.0f, 1.0f, 1.0f); in init()
1971 tcu::Vec4( 0.0f, -0.7f, -0.9f, 1.0f), white, in init()
1972 tcu::Vec4( 0.8f, 0.0f, -0.7f, 1.0f), white, in init()
1973 tcu::Vec4(-0.9f, 0.9f, 3.0f, 1.0f), white in init()
1977 tcu::Vec4( 0.0f, -0.7f, 0.9f, 1.0f), white, in init()
1978 tcu::Vec4( 0.4f, 0.0f, 0.7f, 1.0f), white, in init()
1979 tcu::Vec4(-0.9f, 0.9f, -3.0f, 1.0f), white in init()
1993 const tcu::Vec4 white = tcu::Vec4( 1, 1, 1, 1); in init()
1994 const tcu::Vec3 r0 = tcu::Vec3( 0.2f, 0.3f, 0); in init()
1995 const tcu::IVec3 r1 = outside[ndx1]; in init()
1996 const tcu::IVec3 r2 = outside[ndx2]; in init()
1997 const tcu::Vec4 p0 = tcu::Vec4(r0.x() * w0, r0.y() * w0, r0.z() * w0, w0); in init()
1998 …const tcu::Vec4 p1 = tcu::Vec4(float(r1.x()) * far * w1, float(r1.y()) * far * w1, float(r1.z()) … in init()
1999 …const tcu::Vec4 p2 = tcu::Vec4(float(r2.x()) * far * w2, float(r2.y()) * far * w2, float(r2.z()) … in init()
2026 const tcu::Vec4 white = tcu::Vec4(1, 1, 1, 1); in init()
2027 const tcu::IVec3 r0 = outside[ndx1]; in init()
2028 const tcu::IVec3 r1 = outside[ndx2]; in init()
2029 const tcu::IVec3 r2 = outside[ndx3]; in init()
2030 …const tcu::Vec4 p0 = tcu::Vec4(float(r0.x()) * far * w0, float(r0.y()) * far * w0, float(r0.z()) … in init()
2031 …const tcu::Vec4 p1 = tcu::Vec4(float(r1.x()) * far * w1, float(r1.y()) * far * w1, float(r1.z()) … in init()
2032 …const tcu::Vec4 p2 = tcu::Vec4(float(r2.x()) * far * w2, float(r2.y()) * far * w2, float(r2.z()) … in init()
2039 if (pointOnTriangle(tcu::IVec3(0, 0, 0), r0, r1, r2)) in init()