Lines Matching refs:spacingMode
661 static vector<Vec3> generateReferenceTriangleTessCoords (SpacingMode spacingMode, int inner, int ou… in generateReferenceTriangleTessCoords() argument
675 …return generateReferenceTriangleTessCoords(spacingMode, spacingMode == SPACINGMODE_FRACTIONAL_ODD … in generateReferenceTriangleTessCoords()
715 static int referenceTriangleNonPointModePrimitiveCount (SpacingMode spacingMode, int inner, int out… in referenceTriangleNonPointModePrimitiveCount() argument
722 …return referenceTriangleNonPointModePrimitiveCount(spacingMode, spacingMode == SPACINGMODE_FRACTIO… in referenceTriangleNonPointModePrimitiveCount()
745 static vector<Vec3> generateReferenceQuadTessCoords (SpacingMode spacingMode, int inner0, int inner… in generateReferenceQuadTessCoords() argument
760 …return generateReferenceQuadTessCoords(spacingMode, inner0 > 1 ? inner0 : spacingMode == SPACINGMO… in generateReferenceQuadTessCoords()
761 inner1 > 1 ? inner1 : spacingMode == SPACINGMODE_FRACTIONAL_ODD ? 3 : 2, in generateReferenceQuadTessCoords()
781 static int referenceQuadNonPointModePrimitiveCount (SpacingMode spacingMode, int inner0, int inner1… in referenceQuadNonPointModePrimitiveCount() argument
790 …return referenceQuadNonPointModePrimitiveCount(spacingMode, inner0 > 1 ? inner0 : spacingMode == S… in referenceQuadNonPointModePrimitiveCount()
791 inner1 > 1 ? inner1 : spacingMode == SPACINGMODE_FRACTIONAL_ODD ? 3 : 2, in referenceQuadNonPointModePrimitiveCount()
817 static void getClampedRoundedTriangleTessLevels (SpacingMode spacingMode, const float* innerSrc, co… in getClampedRoundedTriangleTessLevels() argument
819 innerDst[0] = getClampedRoundedTessLevel(spacingMode, innerSrc[0]); in getClampedRoundedTriangleTessLevels()
821 outerDst[i] = getClampedRoundedTessLevel(spacingMode, outerSrc[i]); in getClampedRoundedTriangleTessLevels()
824 static void getClampedRoundedQuadTessLevels (SpacingMode spacingMode, const float* innerSrc, const … in getClampedRoundedQuadTessLevels() argument
827 innerDst[i] = getClampedRoundedTessLevel(spacingMode, innerSrc[i]); in getClampedRoundedQuadTessLevels()
829 outerDst[i] = getClampedRoundedTessLevel(spacingMode, outerSrc[i]); in getClampedRoundedQuadTessLevels()
832 static void getClampedRoundedIsolineTessLevels (SpacingMode spacingMode, const float* outerSrc, int… in getClampedRoundedIsolineTessLevels() argument
835 outerDst[1] = getClampedRoundedTessLevel(spacingMode, outerSrc[1]); in getClampedRoundedIsolineTessLevels()
847 …erateReferenceTessCoords (TessPrimitiveType primitiveType, SpacingMode spacingMode, const float* i… in generateReferenceTessCoords() argument
858 getClampedRoundedTriangleTessLevels(spacingMode, innerLevels, outerLevels, &inner, &outer[0]); in generateReferenceTessCoords()
860 if (spacingMode != SPACINGMODE_EQUAL) in generateReferenceTessCoords()
869 return generateReferenceTriangleTessCoords(spacingMode, inner, outer[0], outer[1], outer[2]); in generateReferenceTessCoords()
876 getClampedRoundedQuadTessLevels(spacingMode, innerLevels, outerLevels, &inner[0], &outer[0]); in generateReferenceTessCoords()
878 if (spacingMode != SPACINGMODE_EQUAL) in generateReferenceTessCoords()
889 …return generateReferenceQuadTessCoords(spacingMode, inner[0], inner[1], outer[0], outer[1], outer[… in generateReferenceTessCoords()
895 getClampedRoundedIsolineTessLevels(spacingMode, &outerLevels[0], &outer[0]); in generateReferenceTessCoords()
897 if (spacingMode != SPACINGMODE_EQUAL) in generateReferenceTessCoords()
912 …ePointModePrimitiveCount (TessPrimitiveType primitiveType, SpacingMode spacingMode, const float* i… in referencePointModePrimitiveCount() argument
923 getClampedRoundedTriangleTessLevels(spacingMode, innerLevels, outerLevels, &inner, &outer[0]); in referencePointModePrimitiveCount()
924 …return (int)generateReferenceTriangleTessCoords(spacingMode, inner, outer[0], outer[1], outer[2]).… in referencePointModePrimitiveCount()
931 getClampedRoundedQuadTessLevels(spacingMode, innerLevels, outerLevels, &inner[0], &outer[0]); in referencePointModePrimitiveCount()
932 …return (int)generateReferenceQuadTessCoords(spacingMode, inner[0], inner[1], outer[0], outer[1], o… in referencePointModePrimitiveCount()
938 getClampedRoundedIsolineTessLevels(spacingMode, &outerLevels[0], &outer[0]); in referencePointModePrimitiveCount()
948 …nPointModePrimitiveCount (TessPrimitiveType primitiveType, SpacingMode spacingMode, const float* i… in referenceNonPointModePrimitiveCount() argument
959 getClampedRoundedTriangleTessLevels(spacingMode, innerLevels, outerLevels, &inner, &outer[0]); in referenceNonPointModePrimitiveCount()
960 …return referenceTriangleNonPointModePrimitiveCount(spacingMode, inner, outer[0], outer[1], outer[2… in referenceNonPointModePrimitiveCount()
967 getClampedRoundedQuadTessLevels(spacingMode, innerLevels, outerLevels, &inner[0], &outer[0]); in referenceNonPointModePrimitiveCount()
968 …return referenceQuadNonPointModePrimitiveCount(spacingMode, inner[0], inner[1], outer[0], outer[1]… in referenceNonPointModePrimitiveCount()
974 getClampedRoundedIsolineTessLevels(spacingMode, &outerLevels[0], &outer[0]); in referenceNonPointModePrimitiveCount()
984 static int referencePrimitiveCount (TessPrimitiveType primitiveType, SpacingMode spacingMode, bool … in referencePrimitiveCount() argument
986 …return usePointMode ? referencePointModePrimitiveCount (primitiveType, spacingMode, innerLevels, … in referencePrimitiveCount()
987 : referenceNonPointModePrimitiveCount (primitiveType, spacingMode, innerLevels, outerLevels); in referencePrimitiveCount()
990 static int referenceVertexCount (TessPrimitiveType primitiveType, SpacingMode spacingMode, bool use… in referenceVertexCount() argument
992 return referencePrimitiveCount(primitiveType, spacingMode, usePointMode, innerLevels, outerLevels) in referenceVertexCount()
998 …atchReferenceVertexCount (TessPrimitiveType primitiveType, SpacingMode spacingMode, bool usePointM… in multiplePatchReferenceVertexCount() argument
1002 …result += referenceVertexCount(primitiveType, spacingMode, usePointMode, &levels[6*patchNdx + 0], … in multiplePatchReferenceVertexCount()
1227 static bool verifyFractionalSpacingSingle (TestLog& log, SpacingMode spacingMode, float tessLevel, … in verifyFractionalSpacingSingle() argument
1231 DE_ASSERT(spacingMode == SPACINGMODE_FRACTIONAL_ODD || spacingMode == SPACINGMODE_FRACTIONAL_EVEN); in verifyFractionalSpacingSingle()
1233 const float clampedLevel = getClampedTessLevel(spacingMode, tessLevel); in verifyFractionalSpacingSingle()
1234 const int finalLevel = getRoundedTessLevel(spacingMode, clampedLevel); in verifyFractionalSpacingSingle()
1242 …<< "; final level (clamped level rounded up to " << (spacingMode == SPACINGMODE_FRACTIONAL_EVEN ? … in verifyFractionalSpacingSingle()
1380 static bool verifyFractionalSpacingMultiple (TestLog& log, SpacingMode spacingMode, const vector<fl… in verifyFractionalSpacingMultiple() argument
1384 DE_ASSERT(spacingMode == SPACINGMODE_FRACTIONAL_ODD || spacingMode == SPACINGMODE_FRACTIONAL_EVEN); in verifyFractionalSpacingMultiple()
1406 …if (getClampedTessLevel(spacingMode, curData.tessLevel) == getClampedTessLevel(spacingMode, prevDa… in verifyFractionalSpacingMultiple()
1411 << " (clamped level " << getClampedTessLevel(spacingMode, curData.tessLevel) << ")" in verifyFractionalSpacingMultiple()
1428 const float curClampedLevel = getClampedTessLevel(spacingMode, curData.tessLevel); in verifyFractionalSpacingMultiple()
1429 const float prevClampedLevel = getClampedTessLevel(spacingMode, prevData.tessLevel); in verifyFractionalSpacingMultiple()
1430 const int curFinalLevel = getRoundedTessLevel(spacingMode, curClampedLevel); in verifyFractionalSpacingMultiple()
1431 const int prevFinalLevel = getRoundedTessLevel(spacingMode, prevClampedLevel); in verifyFractionalSpacingMultiple()