Lines Matching refs:spacingMode
659 static vector<Vec3> generateReferenceTriangleTessCoords (SpacingMode spacingMode, int inner, int ou… in generateReferenceTriangleTessCoords() argument
673 …return generateReferenceTriangleTessCoords(spacingMode, spacingMode == SPACINGMODE_FRACTIONAL_ODD … in generateReferenceTriangleTessCoords()
713 static int referenceTriangleNonPointModePrimitiveCount (SpacingMode spacingMode, int inner, int out… in referenceTriangleNonPointModePrimitiveCount() argument
720 …return referenceTriangleNonPointModePrimitiveCount(spacingMode, spacingMode == SPACINGMODE_FRACTIO… in referenceTriangleNonPointModePrimitiveCount()
743 static vector<Vec3> generateReferenceQuadTessCoords (SpacingMode spacingMode, int inner0, int inner… in generateReferenceQuadTessCoords() argument
758 …return generateReferenceQuadTessCoords(spacingMode, inner0 > 1 ? inner0 : spacingMode == SPACINGMO… in generateReferenceQuadTessCoords()
759 inner1 > 1 ? inner1 : spacingMode == SPACINGMODE_FRACTIONAL_ODD ? 3 : 2, in generateReferenceQuadTessCoords()
779 static int referenceQuadNonPointModePrimitiveCount (SpacingMode spacingMode, int inner0, int inner1… in referenceQuadNonPointModePrimitiveCount() argument
788 …return referenceQuadNonPointModePrimitiveCount(spacingMode, inner0 > 1 ? inner0 : spacingMode == S… in referenceQuadNonPointModePrimitiveCount()
789 inner1 > 1 ? inner1 : spacingMode == SPACINGMODE_FRACTIONAL_ODD ? 3 : 2, in referenceQuadNonPointModePrimitiveCount()
815 static void getClampedRoundedTriangleTessLevels (SpacingMode spacingMode, const float* innerSrc, co… in getClampedRoundedTriangleTessLevels() argument
817 innerDst[0] = getClampedRoundedTessLevel(spacingMode, innerSrc[0]); in getClampedRoundedTriangleTessLevels()
819 outerDst[i] = getClampedRoundedTessLevel(spacingMode, outerSrc[i]); in getClampedRoundedTriangleTessLevels()
822 static void getClampedRoundedQuadTessLevels (SpacingMode spacingMode, const float* innerSrc, const … in getClampedRoundedQuadTessLevels() argument
825 innerDst[i] = getClampedRoundedTessLevel(spacingMode, innerSrc[i]); in getClampedRoundedQuadTessLevels()
827 outerDst[i] = getClampedRoundedTessLevel(spacingMode, outerSrc[i]); in getClampedRoundedQuadTessLevels()
830 static void getClampedRoundedIsolineTessLevels (SpacingMode spacingMode, const float* outerSrc, int… in getClampedRoundedIsolineTessLevels() argument
833 outerDst[1] = getClampedRoundedTessLevel(spacingMode, outerSrc[1]); in getClampedRoundedIsolineTessLevels()
845 …erateReferenceTessCoords (TessPrimitiveType primitiveType, SpacingMode spacingMode, const float* i… in generateReferenceTessCoords() argument
856 getClampedRoundedTriangleTessLevels(spacingMode, innerLevels, outerLevels, &inner, &outer[0]); in generateReferenceTessCoords()
858 if (spacingMode != SPACINGMODE_EQUAL) in generateReferenceTessCoords()
867 return generateReferenceTriangleTessCoords(spacingMode, inner, outer[0], outer[1], outer[2]); in generateReferenceTessCoords()
874 getClampedRoundedQuadTessLevels(spacingMode, innerLevels, outerLevels, &inner[0], &outer[0]); in generateReferenceTessCoords()
876 if (spacingMode != SPACINGMODE_EQUAL) in generateReferenceTessCoords()
887 …return generateReferenceQuadTessCoords(spacingMode, inner[0], inner[1], outer[0], outer[1], outer[… in generateReferenceTessCoords()
893 getClampedRoundedIsolineTessLevels(spacingMode, &outerLevels[0], &outer[0]); in generateReferenceTessCoords()
895 if (spacingMode != SPACINGMODE_EQUAL) in generateReferenceTessCoords()
910 …ePointModePrimitiveCount (TessPrimitiveType primitiveType, SpacingMode spacingMode, const float* i… in referencePointModePrimitiveCount() argument
921 getClampedRoundedTriangleTessLevels(spacingMode, innerLevels, outerLevels, &inner, &outer[0]); in referencePointModePrimitiveCount()
922 …return (int)generateReferenceTriangleTessCoords(spacingMode, inner, outer[0], outer[1], outer[2]).… in referencePointModePrimitiveCount()
929 getClampedRoundedQuadTessLevels(spacingMode, innerLevels, outerLevels, &inner[0], &outer[0]); in referencePointModePrimitiveCount()
930 …return (int)generateReferenceQuadTessCoords(spacingMode, inner[0], inner[1], outer[0], outer[1], o… in referencePointModePrimitiveCount()
936 getClampedRoundedIsolineTessLevels(spacingMode, &outerLevels[0], &outer[0]); in referencePointModePrimitiveCount()
946 …nPointModePrimitiveCount (TessPrimitiveType primitiveType, SpacingMode spacingMode, const float* i… in referenceNonPointModePrimitiveCount() argument
957 getClampedRoundedTriangleTessLevels(spacingMode, innerLevels, outerLevels, &inner, &outer[0]); in referenceNonPointModePrimitiveCount()
958 …return referenceTriangleNonPointModePrimitiveCount(spacingMode, inner, outer[0], outer[1], outer[2… in referenceNonPointModePrimitiveCount()
965 getClampedRoundedQuadTessLevels(spacingMode, innerLevels, outerLevels, &inner[0], &outer[0]); in referenceNonPointModePrimitiveCount()
966 …return referenceQuadNonPointModePrimitiveCount(spacingMode, inner[0], inner[1], outer[0], outer[1]… in referenceNonPointModePrimitiveCount()
972 getClampedRoundedIsolineTessLevels(spacingMode, &outerLevels[0], &outer[0]); in referenceNonPointModePrimitiveCount()
982 static int referencePrimitiveCount (TessPrimitiveType primitiveType, SpacingMode spacingMode, bool … in referencePrimitiveCount() argument
984 …return usePointMode ? referencePointModePrimitiveCount (primitiveType, spacingMode, innerLevels, … in referencePrimitiveCount()
985 : referenceNonPointModePrimitiveCount (primitiveType, spacingMode, innerLevels, outerLevels); in referencePrimitiveCount()
988 static int referenceVertexCount (TessPrimitiveType primitiveType, SpacingMode spacingMode, bool use… in referenceVertexCount() argument
990 return referencePrimitiveCount(primitiveType, spacingMode, usePointMode, innerLevels, outerLevels) in referenceVertexCount()
996 …atchReferenceVertexCount (TessPrimitiveType primitiveType, SpacingMode spacingMode, bool usePointM… in multiplePatchReferenceVertexCount() argument
1000 …result += referenceVertexCount(primitiveType, spacingMode, usePointMode, &levels[6*patchNdx + 0], … in multiplePatchReferenceVertexCount()
1225 static bool verifyFractionalSpacingSingle (TestLog& log, SpacingMode spacingMode, float tessLevel, … in verifyFractionalSpacingSingle() argument
1229 DE_ASSERT(spacingMode == SPACINGMODE_FRACTIONAL_ODD || spacingMode == SPACINGMODE_FRACTIONAL_EVEN); in verifyFractionalSpacingSingle()
1231 const float clampedLevel = getClampedTessLevel(spacingMode, tessLevel); in verifyFractionalSpacingSingle()
1232 const int finalLevel = getRoundedTessLevel(spacingMode, clampedLevel); in verifyFractionalSpacingSingle()
1240 …<< "; final level (clamped level rounded up to " << (spacingMode == SPACINGMODE_FRACTIONAL_EVEN ? … in verifyFractionalSpacingSingle()
1378 static bool verifyFractionalSpacingMultiple (TestLog& log, SpacingMode spacingMode, const vector<fl… in verifyFractionalSpacingMultiple() argument
1382 DE_ASSERT(spacingMode == SPACINGMODE_FRACTIONAL_ODD || spacingMode == SPACINGMODE_FRACTIONAL_EVEN); in verifyFractionalSpacingMultiple()
1404 …if (getClampedTessLevel(spacingMode, curData.tessLevel) == getClampedTessLevel(spacingMode, prevDa… in verifyFractionalSpacingMultiple()
1409 << " (clamped level " << getClampedTessLevel(spacingMode, curData.tessLevel) << ")" in verifyFractionalSpacingMultiple()
1426 const float curClampedLevel = getClampedTessLevel(spacingMode, curData.tessLevel); in verifyFractionalSpacingMultiple()
1427 const float prevClampedLevel = getClampedTessLevel(spacingMode, prevData.tessLevel); in verifyFractionalSpacingMultiple()
1428 const int curFinalLevel = getRoundedTessLevel(spacingMode, curClampedLevel); in verifyFractionalSpacingMultiple()
1429 const int prevFinalLevel = getRoundedTessLevel(spacingMode, prevClampedLevel); in verifyFractionalSpacingMultiple()