Lines Matching refs:lines
50 // Lines do not intersect if the other line's endpoints are on the same side
468 // Use axis projected (inaccurate) method, i.e. for X-major lines:
602 * correct line interpolations for the triangulated lines.
631 const float wa = scene.lines[lineNdx].positions[0].w();
632 const float wb = scene.lines[lineNdx].positions[1].w();
633 const tcu::Vec2 pa = tcu::Vec2((scene.lines[lineNdx].positions[0].x() / wa + 1.0f) * 0.5f * viewportSize.x(),
634 (scene.lines[lineNdx].positions[0].y() / wa + 1.0f) * 0.5f * viewportSize.y());
635 const tcu::Vec2 pb = tcu::Vec2((scene.lines[lineNdx].positions[1].x() / wb + 1.0f) * 0.5f * viewportSize.x(),
636 (scene.lines[lineNdx].positions[1].y() / wb + 1.0f) * 0.5f * viewportSize.y());
878 triangleScene.triangles.resize(2 * scene.lines.size());
879 for (int lineNdx = 0; lineNdx < (int)scene.lines.size(); ++lineNdx)
884 tcu::Vec2(scene.lines[lineNdx].positions[0].x() / scene.lines[lineNdx].positions[0].w(), scene.lines[lineNdx].positions[0].y() / scene.lines[lineNdx].positions[0].w()),
885 tcu::Vec2(scene.lines[lineNdx].positions[1].x() / scene.lines[lineNdx].positions[1].w(), scene.lines[lineNdx].positions[1].y() / scene.lines[lineNdx].positions[1].w()),
931 triangleScene.triangles.resize(2 * scene.lines.size());
932 for (int lineNdx = 0; lineNdx < (int)scene.lines.size(); ++lineNdx)
937 tcu::Vec2(scene.lines[lineNdx].positions[0].x() / scene.lines[lineNdx].positions[0].w(), scene.lines[lineNdx].positions[0].y() / scene.lines[lineNdx].positions[0].w()),
938 tcu::Vec2(scene.lines[lineNdx].positions[1].x() / scene.lines[lineNdx].positions[1].w(), scene.lines[lineNdx].positions[1].y() / scene.lines[lineNdx].positions[1].w()),
972 triangleScene.triangles[lineNdx*2 + 0].colors[0] = scene.lines[lineNdx].colors[0];
973 triangleScene.triangles[lineNdx*2 + 0].colors[1] = scene.lines[lineNdx].colors[0];
974 triangleScene.triangles[lineNdx*2 + 0].colors[2] = scene.lines[lineNdx].colors[1];
984 triangleScene.triangles[lineNdx*2 + 1].colors[0] = scene.lines[lineNdx].colors[0];
985 triangleScene.triangles[lineNdx*2 + 1].colors[1] = scene.lines[lineNdx].colors[1];
986 triangleScene.triangles[lineNdx*2 + 1].colors[2] = scene.lines[lineNdx].colors[1];
1026 lines, const tcu::IVec2& viewportSize)
1028 DE_ASSERT(screenspaceLines.size() == lines.size());
1030 for (int lineNdx = 0; lineNdx < (int)lines.size(); ++lineNdx)
1034 tcu::Vec2(lines[lineNdx].positions[0].x() / lines[lineNdx].positions[0].w(), lines[lineNdx].positions[0].y() / lines[lineNdx].positions[0].w()),
1035 tcu::Vec2(lines[lineNdx].positions[1].x() / lines[lineNdx].positions[1].w(), lines[lineNdx].positions[1].y() / lines[lineNdx].positions[1].w()),
1050 DE_ASSERT(scene.lines.size() < 255); // indices are stored as unsigned 8-bit ints
1058 std::vector<bool> lineIsXMajor (scene.lines.size());
1059 std::vector<tcu::Vec4> screenspaceLines(scene.lines.size());
1061 // Reference renderer produces correct fragments using the diamond-rule. Make 2D int array, each cell contains the highest index (first index = 1) of the overlapping lines or 0 if no line intersects the pixel
1065 genScreenSpaceLines(screenspaceLines, scene.lines, tcu::IVec2(surface.getWidth(), surface.getHeight()));
1067 for (int lineNdx = 0; lineNdx < (int)scene.lines.size(); ++lineNdx)
1187 int allowedDeviation = (int)scene.lines.size() * lineWidth; // one pixel per primitive in the major direction
1230 log << tcu::TestLog::Message << "Verifying line widths of the x-major lines." << tcu::TestLog::EndMessage;
1311 log << tcu::TestLog::Message << "Verifying line widths of the y-major lines." << tcu::TestLog::EndMessage;
1489 DE_ASSERT(scene.lines.size() < 8); // coverage indices are stored as bitmask in a unsigned 8-bit ints
1498 std::vector<tcu::Vec4> screenspaceLines (scene.lines.size()); //!< packed (x0, y0, x1, y1)
1501 lines with potential coverage to a given pixel
1515 genScreenSpaceLines(screenspaceLines, scene.lines, viewportSize);
1518 // Find all possible lines with coverage, check pixel color matches one of them
1525 int lineCoverageSet = 0; // !< lines that may cover this fragment
1526 int lineSurroundingCoverage = 0xFFFF; // !< lines that will cover this fragment
1532 // Find lines with possible coverage
1547 // Check those lines
1549 for (int lineNdx = 0; lineNdx < (int)scene.lines.size(); ++lineNdx)
1553 const float wa = scene.lines[lineNdx].positions[0].w();
1554 const float wb = scene.lines[lineNdx].positions[1].w();
1562 const tcu::Vec4 valueMin = de::clamp(range.min.x(), 0.0f, 1.0f) * scene.lines[lineNdx].colors[0] + de::clamp(range.min.y(), 0.0f, 1.0f) * scene.lines[lineNdx].colors[1];
1563 const tcu::Vec4 valueMax = de::clamp(range.max.x(), 0.0f, 1.0f) * scene.lines[lineNdx].colors[0] + de::clamp(range.max.y(), 0.0f, 1.0f) * scene.lines[lineNdx].colors[1];
1725 DE_ASSERT(scene.lines.size() < 8); // coverage indices are stored as bitmask in a unsigned 8-bit ints
1738 std::vector<tcu::Vec4> effectiveLines (scene.lines.size()); //!< packed (x0, y0, x1, y1)
1739 std::vector<bool> lineIsXMajor (scene.lines.size());
1743 std::vector<std::vector<deUint32> > rootPixelLocation (scene.lines.size()); //!< packed [16b - flags] [16b - coordinate]
1752 // The map is used to find lines with potential coverage to a given pixel
1760 std::vector<tcu::Vec4> screenspaceLines(scene.lines.size());
1762 genScreenSpaceLines(screenspaceLines, scene.lines, viewportSize);
1765 for (int lineNdx = 0; lineNdx < (int)scene.lines.size(); ++lineNdx)
1787 for (int lineNdx = 0; lineNdx < (int)scene.lines.size(); ++lineNdx)
1842 // Find all possible lines with coverage, check pixel color matches one of them
1849 int lineCoverageSet = 0; // !< lines that may cover this fragment
1850 int lineSurroundingCoverage = 0xFFFF; // !< lines that will cover this fragment
1856 // Find lines with possible coverage
1871 // Check those lines
1873 for (int lineNdx = 0; lineNdx < (int)scene.lines.size(); ++lineNdx)
1877 const float wa = scene.lines[lineNdx].positions[0].w();
1878 const float wb = scene.lines[lineNdx].positions[1].w();
1916 const tcu::Vec4 valueMin = de::clamp(range.min.x(), 0.0f, 1.0f) * scene.lines[lineNdx].colors[0] + de::clamp(range.min.y(), 0.0f, 1.0f) * scene.lines[lineNdx].colors[1];
1917 const tcu::Vec4 valueMax = de::clamp(range.max.x(), 0.0f, 1.0f) * scene.lines[lineNdx].colors[0] + de::clamp(range.max.y(), 0.0f, 1.0f) * scene.lines[lineNdx].colors[1];
1970 // no need to check other lines