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);
80 inline bool isBlack (const tcu::IVec4& a) in isBlack()
85 inline bool isHalfFilled (const tcu::IVec4& a) in isHalfFilled()
87 const tcu::IVec4 halfFilled (127, 0, 0, 0); in isHalfFilled()
88 const tcu::IVec4 threshold (20, 256, 256, 256); in isHalfFilled()
90 return tcu::boolAll(tcu::lessThanEqual(tcu::abs(a - halfFilled), threshold)); in isHalfFilled()
93 inline bool isLessThanHalfFilled (const tcu::IVec4& a) in isLessThanHalfFilled()
101 inline bool compareBlackNonBlackPixels (const tcu::IVec4& a, const tcu::IVec4& b) in compareBlackNonBlackPixels()
106 inline bool compareColoredPixels (const tcu::IVec4& a, const tcu::IVec4& b) in compareColoredPixels()
110 const tcu::IVec4 threshold(20, 20, 20, 0); in compareColoredPixels()
117 return tcu::boolAll(tcu::lessThanEqual(tcu::abs(a - b), threshold)); in compareColoredPixels()
128 const tcu::IVec4 cSrc = src.getPixelInt(x, y); in blitImageOnBlackSurface()
129 const tcu::IVec4 cDst = tcu::IVec4(cSrc.x(), cSrc.y(), cSrc.z(), 255); in blitImageOnBlackSurface()
147 …tcu::TestLog& log, const ConstPixelBufferAccess& test, const ConstPixelBufferAccess& ref, const Pi… in compareImages()
155 tcu::clear(diffMask, MASK_COLOR_OK); in compareImages()
161 const tcu::IVec4 cRef = ref.getPixelInt(x, y); in compareImages()
162 const tcu::IVec4 cTest = test.getPixelInt(x, y); in compareImages()
240 int compareBlackNonBlackImages (tcu::TestLog& log, const ConstPixelBufferAccess& test, const ConstP… in compareBlackNonBlackImages()
257 int compareColoredImages (tcu::TestLog& log, const ConstPixelBufferAccess& test, const ConstPixelBu… in compareColoredImages()
270 bool checkHalfFilledImageOverdraw (tcu::TestLog& log, const tcu::RenderTarget& m_renderTarget, cons… in checkHalfFilledImageOverdraw()
277 tcu::clear(output, MASK_COLOR_OK); in checkHalfFilledImageOverdraw()
283 const tcu::IVec4 cTest = image.getPixelInt(x, y); in checkHalfFilledImageOverdraw()
306 throw tcu::NotSupportedError("Maximum point size is too low for this test"); in checkPointSize()
314 throw tcu::NotSupportedError("Maximum line width is too low for this test"); in checkLineWidth()
317 tcu::Vec3 IVec3ToVec3 (const tcu::IVec3& v) in IVec3ToVec3()
319 return tcu::Vec3((float)v.x(), (float)v.y(), (float)v.z()); in IVec3ToVec3()
322 bool pointOnTriangle (const tcu::IVec3& p, const tcu::IVec3& t0, const tcu::IVec3& t1, const tcu::I… in pointOnTriangle()
325 const tcu::IVec3 n = tcu::cross(t1 - t0, t2 - t0); in pointOnTriangle()
326 const tcu::IVec3 d = (p - t0); in pointOnTriangle()
328 if (tcu::dot(n, d)) in pointOnTriangle()
332 …if (deSign32(tcu::dot(n, tcu::cross(t1 - t0, p - t0))) == deSign32(tcu::dot(n, tcu::cross(t2 - t0,… in pointOnTriangle()
334 …if (deSign32(tcu::dot(n, tcu::cross(t2 - t1, p - t1))) == deSign32(tcu::dot(n, tcu::cross(t0 - t1,… in pointOnTriangle()
336 …if (deSign32(tcu::dot(n, tcu::cross(t0 - t2, p - t2))) == deSign32(tcu::dot(n, tcu::cross(t1 - t2,… in pointOnTriangle()
342 bool pointsOnLine (const tcu::IVec2& t0, const tcu::IVec2& t1, const tcu::IVec2& t2) in pointsOnLine()
349 bool twoPointClippedTriangleInvisible(const tcu::Vec3& p, const tcu::IVec3& dir1, const tcu::IVec3&… in twoPointClippedTriangleInvisible()
354 const tcu::Vector<deInt64, 3> d1 = tcu::Vector<deInt64, 3>(dir1.x(), dir1.y(), dir1.z()); in twoPointClippedTriangleInvisible()
355 const tcu::Vector<deInt64, 3> d2 = tcu::Vector<deInt64, 3>(dir2.x(), dir2.y(), dir2.z()); in twoPointClippedTriangleInvisible()
356 …const tcu::Vector<deInt64, 3> pfixed = tcu::Vector<deInt64, 3>(deFloorFloatToInt32(p.x() * fixedS… in twoPointClippedTriangleInvisible()
357 const tcu::Vector<deInt64, 3> normalDir = tcu::cross(d1*farValue - pfixed, d2*farValue - pfixed); in twoPointClippedTriangleInvisible()
358 const deInt64 normalLen2 = tcu::lengthSquared(normalDir); in twoPointClippedTriangleInvisible()
363 std::string genClippingPointInfoString(const tcu::Vec4& p) in genClippingPointInfoString()
377 std::string genColorString(const tcu::Vec4& p) in genColorString()
379 const tcu::Vec4 white (1.0f, 1.0f, 1.0f, 1.0f); in genColorString()
380 const tcu::Vec4 red (1.0f, 0.0f, 0.0f, 1.0f); in genColorString()
381 const tcu::Vec4 yellow (1.0f, 1.0f, 0.0f, 1.0f); in genColorString()
382 const tcu::Vec4 blue (0.0f, 0.0f, 1.0f, 1.0f); in genColorString()
472 …throw tcu::NotSupportedError(std::string("Render target size must be at least ") + de::toString(TE… in iterate()
483 …& context, const char* name, const char* description, const tcu::Vec4* pointsBegin, const tcu::Vec…
489 const std::vector<tcu::Vec4> m_points;
494 …& context, const char* name, const char* description, const tcu::Vec4* pointsBegin, const tcu::Vec… in PointCase()
510 using tcu::TestLog; in testRender()
514 tcu::TestLog& log = m_testCtx.getLog(); in testRender()
515 …sglr::GLContext glesContext (m_context.getRenderContext(), log, 0, tcu::IVec4(0, 0, TEST_CANVA… in testRender()
520 tcu::Surface testSurface (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in testRender()
521 tcu::Surface refSurface (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in testRender()
523 tcu::Surface* surfaces[2] = {&testSurface, &refSurface}; in testRender()
540 tcu::Surface& dstSurface = *surfaces[contextNdx]; in testRender()
566 tcu::Surface diffMask (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in testRender()
582 …<< tcu::TestLog::Message << "Got " << faultyPixels << " faulty pixel(s)." << tcu::TestLog::EndMess… in testRender()
594 tcu::Vec4 p0;
595 tcu::Vec4 c0;
596 tcu::Vec4 p1;
597 tcu::Vec4 c1;
602 tcu::Vec4 p0;
603 tcu::Vec4 p1;
608 …virtual void verifyImage (const tcu::ConstPixelBufferAccess& testImageAccess, const tcu::C…
646 using tcu::TestLog; in testRender()
651 tcu::TestLog& log = m_testCtx.getLog(); in testRender()
652 …sglr::GLContext glesContext (m_context.getRenderContext(), log, 0, tcu::IVec4(0, 0, TEST_CANVA… in testRender()
657 tcu::Surface testSurface (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in testRender()
658 tcu::Surface refSurface (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in testRender()
660 tcu::Surface* surfaces[2] = {&testSurface, &refSurface}; in testRender()
679 tcu::Surface& dstSurface = *surfaces[contextNdx]; in testRender()
717 r.c0 = tcu::Vec4(1, 1, 1, 1); in convertToColoredLines()
719 r.c1 = tcu::Vec4(1, 1, 1, 1); in convertToColoredLines()
732 …void verifyImage (const tcu::ConstPixelBufferAccess& testImageAccess, const tcu::ConstPixelBuff…
744 void LineCase::verifyImage (const tcu::ConstPixelBufferAccess& testImageAccess, const tcu::ConstPix… in verifyImage()
750 tcu::TestLog& log = m_testCtx.getLog(); in verifyImage()
751 tcu::Surface diffMask (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in verifyImage()
766 …<< tcu::TestLog::Message << "Got " << faultyPixels << " faulty pixel(s)." << tcu::TestLog::EndMess… in verifyImage()
783 …void verifyImage (const tcu::ConstPixelBufferAccess& testImageAccess, const tcu::ConstPixelBufferA…
791 void ColoredLineCase::verifyImage (const tcu::ConstPixelBufferAccess& testImageAccess, const tcu::C… in verifyImage()
794 tcu::TestLog& log = m_testCtx.getLog(); in verifyImage()
801 tcu::Surface diffMask (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in verifyImage()
816 …<< tcu::TestLog::Message << "Got " << faultyPixels << " faulty pixel(s)." << tcu::TestLog::EndMess… in verifyImage()
824 …if (!tcu::fuzzyCompare(log, "Images", "", referenceImageAccess, testImageAccess, threshold, tcu::C… in verifyImage()
842 tcu::Vec4 p0;
843 tcu::Vec4 c0;
844 tcu::Vec4 p1;
845 tcu::Vec4 c1;
846 tcu::Vec4 p2;
847 tcu::Vec4 c2;
852 …virtual void verifyImage (const tcu::ConstPixelBufferAccess& testImageAccess, const tcu::Co…
869 using tcu::TestLog; in testRender()
874 tcu::TestLog& log = m_testCtx.getLog(); in testRender()
875 …sglr::GLContext glesContext (m_context.getRenderContext(), log, 0, tcu::IVec4(0, 0, TEST_CANVA… in testRender()
880 tcu::Surface testSurface (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in testRender()
881 tcu::Surface refSurface (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in testRender()
883 tcu::Surface* surfaces[2] = {&testSurface, &refSurface}; in testRender()
907 tcu::Surface& dstSurface = *surfaces[contextNdx]; in testRender()
939 …void verifyImage (const tcu::ConstPixelBufferAccess& testImageAccess, const tcu::ConstPixelBuffer…
947 void TriangleCase::verifyImage (const tcu::ConstPixelBufferAccess& testImageAccess, const tcu::Cons… in verifyImage()
951 tcu::TestLog& log = m_testCtx.getLog(); in verifyImage()
952 tcu::Surface diffMask (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in verifyImage()
968 …<< tcu::TestLog::Message << "Got " << faultyPixels << " faulty pixel(s)." << tcu::TestLog::EndMess… in verifyImage()
979 …void verifyImage (const tcu::ConstPixelBufferAccess& testImageAccess, const tcu::ConstPixelBuff…
987 void TriangleAttributeCase::verifyImage (const tcu::ConstPixelBufferAccess& testImageAccess, const … in verifyImage()
990 tcu::TestLog& log = m_testCtx.getLog(); in verifyImage()
997 tcu::Surface diffMask (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in verifyImage()
1011 …<< tcu::TestLog::Message << "Got " << faultyPixels << " faulty pixel(s)." << tcu::TestLog::EndMess… in verifyImage()
1019 …if (!tcu::fuzzyCompare(log, "Images", "", referenceImageAccess, testImageAccess, threshold, tcu::C… in verifyImage()
1044 using tcu::TestLog; in testRender()
1048 tcu::TestLog& log = m_testCtx.getLog(); in testRender()
1049 …sglr::GLContext glesContext (m_context.getRenderContext(), log, 0, tcu::IVec4(0, 0, TEST_CANVA… in testRender()
1053 tcu::Surface testSurface (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in testRender()
1054 tcu::Surface refSurface (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in testRender()
1065 tcu::Surface outputImage(TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in testRender()
1076 << tcu::TestLog::Message << "Got overdraw." << tcu::TestLog::EndMessage; in testRender()
1085 tcu::Surface diffMask (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in testRender()
1102 …<< tcu::TestLog::Message << "Got " << faultyPixels << " faulty pixel(s)." << tcu::TestLog::EndMess… in testRender()
1114 tcu::Vec4 v0;
1115 tcu::Vec4 c0;
1116 tcu::Vec4 v1;
1117 tcu::Vec4 c1;
1118 tcu::Vec4 v2;
1119 tcu::Vec4 c2;
1142 tcu::TestLog& log = m_testCtx.getLog(); in render()
1181 …const rr::WindowRectangle& viewport, const tcu::Vec3& d1, const tcu::Vec3& d2, const tcu::Vec3& ce…
1184 …scription, const rr::WindowRectangle& viewport, const tcu::Vec3& d1, const tcu::Vec3& d2, const tc… in QuadFillTest()
1188 const tcu::Vec4 center = tcu::Vec4(center_.x(), center_.y(), center_.z(), 1.0f); in QuadFillTest()
1189 const tcu::Vec4 halfWhite = tcu::Vec4(0.5f, 0.5f, 0.5f, 0.5f); in QuadFillTest()
1190 const tcu::Vec4 halfRed = tcu::Vec4(0.5f, 0.0f, 0.0f, 0.5f); in QuadFillTest()
1191 const tcu::Vec4 e1 = radius * tcu::Vec4(d1.x(), d1.y(), d1.z(), 0.0f); in QuadFillTest()
1192 const tcu::Vec4 e2 = radius * tcu::Vec4(d2.x(), d2.y(), d2.z(), 0.0f); in QuadFillTest()
1225 const tcu::Vec4 center = tcu::Vec4(0, 0, 0, 1.0f); in TriangleFanFillTest()
1226 const tcu::Vec4 halfWhite = tcu::Vec4(0.5f, 0.5f, 0.5f, 0.5f); in TriangleFanFillTest()
1227 const tcu::Vec4 oddSliceColor = tcu::Vec4(0.0f, 0.0f, 0.5f, 0.0f); in TriangleFanFillTest()
1245 const tcu::Vec3 corner; in TriangleFanFillTest()
1246 const tcu::Vec3 entryPoint; in TriangleFanFillTest()
1247 const tcu::Vec3 exitPoint; in TriangleFanFillTest()
1250 { tcu::Vec3( 1, 1, 1), tcu::Vec3( 0, 1, 1), tcu::Vec3( 1, 0, 1) }, in TriangleFanFillTest()
1251 { tcu::Vec3( 1,-1, 1), tcu::Vec3( 1, 0, 1), tcu::Vec3( 1,-1, 0) }, in TriangleFanFillTest()
1252 { tcu::Vec3( 1,-1,-1), tcu::Vec3( 1,-1, 0), tcu::Vec3( 0,-1,-1) }, in TriangleFanFillTest()
1253 { tcu::Vec3(-1,-1,-1), tcu::Vec3( 0,-1,-1), tcu::Vec3(-1, 0,-1) }, in TriangleFanFillTest()
1254 { tcu::Vec3(-1, 1,-1), tcu::Vec3(-1, 0,-1), tcu::Vec3(-1, 1, 0) }, in TriangleFanFillTest()
1255 { tcu::Vec3(-1, 1, 1), tcu::Vec3(-1, 1, 0), tcu::Vec3( 0, 1, 1) }, in TriangleFanFillTest()
1264 tcu::Vec3 vertex0; in TriangleFanFillTest()
1265 tcu::Vec3 vertex1; in TriangleFanFillTest()
1273 const tcu::Vec3 v1 = visit.entryPoint - visit.corner; in TriangleFanFillTest()
1274 const tcu::Vec3 v2 = visit.exitPoint - visit.corner; in TriangleFanFillTest()
1276 …vertex0 = visit.corner + tcu::normalize(tcu::mix(v1, v2, tcu::Vec3(float(tri)/trianglesPerVisit))); in TriangleFanFillTest()
1285 const tcu::Vec3 v1 = visit.entryPoint - visit.corner; in TriangleFanFillTest()
1286 const tcu::Vec3 v2 = visit.exitPoint - visit.corner; in TriangleFanFillTest()
1288 …vertex1 = visit.corner + tcu::normalize(tcu::mix(v1, v2, tcu::Vec3(float(tri+1)/trianglesPerVisit)… in TriangleFanFillTest()
1299 triangle.v1 = tcu::Vec4(vertex0.x() * radius, vertex0.y() * radius, vertex0.z() * radius, 1.0f); in TriangleFanFillTest()
1300 triangle.v2 = tcu::Vec4(vertex1.x() * radius, vertex1.y() * radius, vertex1.z() * radius, 1.0f); in TriangleFanFillTest()
1326 const tcu::Vec4 viewportTestPoints[] = in init()
1329 tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), in init()
1330 tcu::Vec4( 0.1f, 0.1f, 0.1f, 1.0f), in init()
1331 tcu::Vec4(-0.1f, 0.1f, -0.1f, 1.0f), in init()
1332 tcu::Vec4(-0.1f, -0.1f, 0.1f, 1.0f), in init()
1333 tcu::Vec4( 0.1f, -0.1f, -0.1f, 1.0f), in init()
1336 tcu::Vec4( 2.0f, 2.0f, 2.0f, 3.0f), in init()
1337 tcu::Vec4(-2.0f, -2.0f, 2.0f, 3.0f), in init()
1338 tcu::Vec4( 0.5f, -0.5f, 0.5f, 0.7f), in init()
1339 tcu::Vec4(-0.5f, 0.5f, -0.5f, 0.7f), in init()
1342 tcu::Vec4(-2.0f, -2.0f, 0.0f, 2.2f), in init()
1343 tcu::Vec4( 1.0f, -1.0f, 0.0f, 1.1f), in init()
1344 tcu::Vec4(-1.0f, 1.0f, 0.0f, 1.1f), in init()
1347 tcu::Vec4( 1.3f, 0.0f, 0.0f, 1.0f), in init()
1348 tcu::Vec4(-1.3f, 0.0f, 0.0f, 1.0f), in init()
1349 tcu::Vec4( 0.0f, 1.3f, 0.0f, 1.0f), in init()
1350 tcu::Vec4( 0.0f, -1.3f, 0.0f, 1.0f), in init()
1352 tcu::Vec4(-1.3f, -1.3f, 0.0f, 1.0f), in init()
1353 tcu::Vec4(-1.3f, 1.3f, 0.0f, 1.0f), in init()
1354 tcu::Vec4( 1.3f, 1.3f, 0.0f, 1.0f), in init()
1355 tcu::Vec4( 1.3f, -1.3f, 0.0f, 1.0f), in init()
1358 tcu::Vec4( littleOverViewport, littleOverViewport, 0.0f, 1.0f), in init()
1359 tcu::Vec4( 0.0f, littleOverViewport, 0.0f, 1.0f), in init()
1360 tcu::Vec4( littleOverViewport, 0.0f, 0.0f, 1.0f), in init()
1362 const tcu::Vec4 depthTestPoints[] = in init()
1365 tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), in init()
1366 tcu::Vec4( 0.1f, 0.1f, 0.1f, 1.0f), in init()
1367 tcu::Vec4(-0.1f, 0.1f, -0.1f, 1.0f), in init()
1368 tcu::Vec4(-0.1f, -0.1f, 0.1f, 1.0f), in init()
1369 tcu::Vec4( 0.1f, -0.1f, -0.1f, 1.0f), in init()
1372 tcu::Vec4( 0.1f, 0.0f, 1.1f, 1.0f), in init()
1373 tcu::Vec4(-0.1f, 0.0f, -1.1f, 1.0f), in init()
1374 tcu::Vec4(-0.0f, -0.1f, 1.1f, 1.0f), in init()
1375 tcu::Vec4( 0.0f, 0.1f, -1.1f, 1.0f) in init()
1415 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), tcu::Vec4( 0.0f, 1.5f, 0.0f, 1.0f)}, in init()
1416 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), tcu::Vec4(-1.5f, 1.0f, 0.0f, 1.0f)}, in init()
1417 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), tcu::Vec4(-1.5f, 0.0f, 0.0f, 1.0f)}, in init()
1418 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), tcu::Vec4( 0.2f, 0.4f, 1.5f, 1.0f)}, in init()
1419 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), tcu::Vec4(-2.0f, -1.0f, 0.0f, 1.0f)}, in init()
1420 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), tcu::Vec4( 1.0f, 0.1f, 0.0f, 0.6f)}, in init()
1423 {tcu::Vec4( 1.5f, 0.0f, 0.0f, 1.0f), tcu::Vec4( 0.8f, -0.2f, 0.0f, 1.0f)}, in init()
1424 {tcu::Vec4( 0.0f, -1.5f, 0.0f, 1.0f), tcu::Vec4( 0.9f, -0.7f, 0.0f, 1.0f)}, in init()
1427 {tcu::Vec4( 0.0f, -1.3f, 0.0f, 1.0f), tcu::Vec4( 1.3f, 0.0f, 0.0f, 1.0f)}, in init()
1430 …{tcu::Vec4(-0.8f, -littleOverViewport, 0.0f, 1.0f), tcu::Vec4( 0.0f, -littl… in init()
1431 …{tcu::Vec4(-littleOverViewport - 1.0f, 0.0f, 0.0f, 1.0f), tcu::Vec4( 0.0f, -littl… in init()
1435 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), tcu::Vec4( 1.3f, 1.0f, 2.0f, 1.0f)}, in init()
1436 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), tcu::Vec4( 1.3f, -1.0f, 2.0f, 1.0f)}, in init()
1437 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), tcu::Vec4(-1.0f, -1.1f, -2.0f, 1.0f)}, in init()
1438 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), tcu::Vec4(-1.0f, 1.1f, -2.0f, 1.0f)}, in init()
1439 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), tcu::Vec4( 1.0f, 0.1f, 2.0f, 0.6f)}, in init()
1443 …{tcu::Vec4( -41000.0f, -40000.0f, -1000000.0f, 1.0f), tcu::Vec4( 41000.0f, 40000.0f, 1000000.0… in init()
1444 …{tcu::Vec4( 41000.0f, -40000.0f, 1000000.0f, 1.0f), tcu::Vec4(-41000.0f, 40000.0f, -100000… in init()
1445 …{tcu::Vec4( 0.5f, -40000.0f, 100000.0f, 1.0f), tcu::Vec4( 0.5f, 40000.0f, -100000.0f, 1… in init()
1446 …{tcu::Vec4( -0.5f, 40000.0f, 100000.0f, 1.0f), tcu::Vec4(-0.5f, -40000.0f, -100000.0f… in init()
1450 const tcu::Vec4 red (1.0f, 0.0f, 0.0f, 1.0f); in init()
1451 const tcu::Vec4 yellow (1.0f, 1.0f, 0.0f, 1.0f); in init()
1452 const tcu::Vec4 lightBlue (0.3f, 0.3f, 1.0f, 1.0f); in init()
1455 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), red, tcu::Vec4( 1.3f, 1.0f, 2.0f, 1.0f), yellow }, in init()
1456 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), red, tcu::Vec4( 1.3f, -1.0f, 2.0f, 1.0f), lightBlue }, in init()
1457 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), red, tcu::Vec4(-1.0f, -1.0f, -2.0f, 1.0f), yellow }, in init()
1458 {tcu::Vec4( 0.0f, 0.0f, 0.0f, 1.0f), red, tcu::Vec4(-1.0f, 1.0f, -2.0f, 1.0f), lightBlue }, in init()
1502 const tcu::Vec4 white (1.0f, 1.0f, 1.0f, 1.0f); in init()
1503 const tcu::Vec4 red (1.0f, 0.0f, 0.0f, 1.0f); in init()
1504 const tcu::Vec4 yellow (1.0f, 1.0f, 0.0f, 1.0f); in init()
1505 const tcu::Vec4 blue (0.0f, 0.0f, 1.0f, 1.0f); in init()
1512 …{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()
1515 …{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()
1518 …{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()
1519 …{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()
1524 …{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()
1527 …{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()
1530 …{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()
1533 …{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()
1538 …{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()
1541 …{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()
1544 …{tcu::Vec4(-0.9f, -large, 0.0f, 1.0f), white, tcu::Vec4(-1.1f, -large, 0.0f, 1.0f), white, tcu::… in init()
1549 …{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()
1552 …{tcu::Vec4( 0.5f, 0.5f, 0.0f, 1.0f), white, tcu::Vec4( 0.9f, large/2, -large, 1.0f), white, tcu… in init()
1555 …{tcu::Vec4(-0.9f, large/4, large, 1.0f), white, tcu::Vec4(-0.5f, -large/4, -large, 1.0f), white,… in init()
1560 …{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()
1563 …{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()
1566 …{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()
1569 …{tcu::Vec4(-0.9f, large/4, large, 1.0f), red, tcu::Vec4(-0.5f, -large/4, -large, 1.0f), yellow, … in init()
1597 …{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()
1600 …{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()
1603 …{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()
1604 …{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()
1605 …{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()
1606 …{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.9f, offset/4, offset, 1.0f), red, tcu::Vec4(-0.5f, -offset/4, -offset, 1.0f), yell… in init()
1621 …{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()
1624 …{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()
1627 …{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()
1628 …{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()
1629 …{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()
1630 …{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()
1642 …{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()
1645 …{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()
1648 …{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()
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()
1650 …{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()
1651 …{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()
1663 …{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()
1666 …{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.6f, 1.2f, 0.0f, 1.0f), red, tcu::Vec4( 1.2f, 0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1668 …{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()
1669 …{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()
1681 …{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()
1684 …{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.6f, 1.2f, 0.0f, 1.0f), red, tcu::Vec4( 1.2f, 0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1686 …{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()
1687 …{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()
1699 …{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()
1702 …{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.6f, 1.2f, 0.0f, 1.0f), red, tcu::Vec4( 1.2f, 0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1704 …{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()
1705 …{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()
1717 …{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()
1720 …{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.6f, 1.2f, 0.0f, 1.0f), red, tcu::Vec4( 1.2f, 0.6f, 0.0f, 1.0f), yellow, tcu::V… in init()
1722 …{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()
1723 …{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()
1735 …{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()
1738 …{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()
1740 …{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()
1741 …{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()
1753 …{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()
1756 …{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()
1757 …{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()
1769 …{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()
1772 …{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()
1773 …{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()
1785 …{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()
1788 …{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()
1789 …{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()
1790 …{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()
1802 …{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()
1805 …{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()
1806 …{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()
1807 …{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()
1808 …{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()
1836 tcu::Vec3 d1; // tangent in init()
1837 tcu::Vec3 d2; // bi-tangent in init()
1840 { tcu::Vec3( 1, 1, 1), tcu::Vec3( 1, -1, 1) }, in init()
1841 { tcu::Vec3( 1, 1, 1), tcu::Vec3(-1, 1.1f, 1) }, in init()
1842 { tcu::Vec3( 1, 1, 0), tcu::Vec3(-1, 1, 0) }, in init()
1843 { tcu::Vec3( 0, 1, 0), tcu::Vec3( 1, 0, 0) }, in init()
1844 { tcu::Vec3( 0, 1, 0), tcu::Vec3( 1, 0.1f, 0) }, in init()
1850 tcu::Vec3 d1; // tangent in init()
1851 tcu::Vec3 d2; // bi-tangent in init()
1852 tcu::Vec3 center; // center in init()
1855 …{ tcu::Vec3( 1, 0.01f, 0 ), tcu::Vec3( 0, 0.01f, 0), tcu::Vec3( 0, 0.99f, 0 )… in init()
1856 …{ tcu::Vec3( 0.01f, 1, 0 ), tcu::Vec3( 0.01f, 0, 0), tcu::Vec3( 0.99f, 0, 0 )… in init()
1857 …{ tcu::Vec3( 1, 1, 0.01f), tcu::Vec3( 0.01f, -0.01f, 0), tcu::Vec3( 0, 0, 0.99f)… in init()
1885 const tcu::IVec3 outside[] = in init()
1888 tcu::IVec3(-1, 0, 0), in init()
1889 tcu::IVec3( 1, 0, 0), in init()
1890 tcu::IVec3( 0, 1, 0), in init()
1891 tcu::IVec3( 0, -1, 0), in init()
1892 tcu::IVec3( 0, 0, 1), in init()
1893 tcu::IVec3( 0, 0, -1), in init()
1896 tcu::IVec3(-1, -1, 0), in init()
1897 tcu::IVec3( 1, -1, 0), in init()
1898 tcu::IVec3( 1, 1, 0), in init()
1899 tcu::IVec3(-1, 1, 0), in init()
1901 tcu::IVec3(-1, 0, -1), in init()
1902 tcu::IVec3( 1, 0, -1), in init()
1903 tcu::IVec3( 1, 0, 1), in init()
1904 tcu::IVec3(-1, 0, 1), in init()
1906 tcu::IVec3( 0, -1, -1), in init()
1907 tcu::IVec3( 0, 1, -1), in init()
1908 tcu::IVec3( 0, 1, 1), in init()
1909 tcu::IVec3( 0, -1, 1), in init()
1912 tcu::IVec3(-1, -1, 1), in init()
1913 tcu::IVec3( 1, -1, 1), in init()
1914 tcu::IVec3( 1, 1, 1), in init()
1915 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()
1920 tcu::IVec3(-1, 1, -1), in init()
1939 const tcu::Vec4 white = tcu::Vec4( 1, 1, 1, 1); in init()
1940 const tcu::Vec3 r0 = tcu::Vec3( 0.2f, 0.3f, 0); in init()
1941 const tcu::Vec3 r1 = tcu::Vec3(-0.3f, -0.4f, 0); in init()
1942 const tcu::Vec3 r2 = IVec3ToVec3(outside[ndx]) * far; in init()
1943 const tcu::Vec4 p0 = tcu::Vec4(r0.x() * w0, r0.y() * w0, r0.z() * w0, w0); in init()
1944 const tcu::Vec4 p1 = tcu::Vec4(r1.x() * w1, r1.y() * w1, r1.z() * w1, w1); in init()
1945 const tcu::Vec4 p2 = tcu::Vec4(r2.x() * w2, r2.y() * w2, r2.z() * w2, w2); in init()
1963 const tcu::Vec4 white = tcu::Vec4(1.0f, 1.0f, 1.0f, 1.0f); in init()
1967 tcu::Vec4( 0.0f, -0.7f, -0.9f, 1.0f), white, in init()
1968 tcu::Vec4( 0.8f, 0.0f, -0.7f, 1.0f), white, in init()
1969 tcu::Vec4(-0.9f, 0.9f, 3.0f, 1.0f), white in init()
1973 tcu::Vec4( 0.0f, -0.7f, 0.9f, 1.0f), white, in init()
1974 tcu::Vec4( 0.4f, 0.0f, 0.7f, 1.0f), white, in init()
1975 tcu::Vec4(-0.9f, 0.9f, -3.0f, 1.0f), white in init()
1989 const tcu::Vec4 white = tcu::Vec4( 1, 1, 1, 1); in init()
1990 const tcu::Vec3 r0 = tcu::Vec3( 0.2f, 0.3f, 0); in init()
1991 const tcu::IVec3 r1 = outside[ndx1]; in init()
1992 const tcu::IVec3 r2 = outside[ndx2]; in init()
1993 const tcu::Vec4 p0 = tcu::Vec4(r0.x() * w0, r0.y() * w0, r0.z() * w0, w0); in init()
1994 const tcu::Vec4 p1 = tcu::Vec4(r1.x() * far * w1, r1.y() * far * w1, r1.z() * far * w1, w1); in init()
1995 const tcu::Vec4 p2 = tcu::Vec4(r2.x() * far * w2, r2.y() * far * w2, r2.z() * far * w2, w2); in init()
2022 const tcu::Vec4 white = tcu::Vec4(1, 1, 1, 1); in init()
2023 const tcu::IVec3 r0 = outside[ndx1]; in init()
2024 const tcu::IVec3 r1 = outside[ndx2]; in init()
2025 const tcu::IVec3 r2 = outside[ndx3]; in init()
2026 const tcu::Vec4 p0 = tcu::Vec4(r0.x() * far * w0, r0.y() * far * w0, r0.z() * far * w0, w0); in init()
2027 const tcu::Vec4 p1 = tcu::Vec4(r1.x() * far * w1, r1.y() * far * w1, r1.z() * far * w1, w1); in init()
2028 const tcu::Vec4 p2 = tcu::Vec4(r2.x() * far * w2, r2.y() * far * w2, r2.z() * far * w2, w2); in init()
2035 if (pointOnTriangle(tcu::IVec3(0, 0, 0), r0, r1, r2)) in init()