/external/deqp/external/vulkancts/modules/vulkan/tessellation/ |
D | vktTessellationUtil.cpp | 603 void getClampedRoundedTriangleTessLevels (const SpacingMode spacingMode, in getClampedRoundedTriangleTessLevels() argument 609 innerDst[0] = getClampedRoundedTessLevel(spacingMode, innerSrc[0]); in getClampedRoundedTriangleTessLevels() 611 outerDst[i] = getClampedRoundedTessLevel(spacingMode, outerSrc[i]); in getClampedRoundedTriangleTessLevels() 614 void getClampedRoundedQuadTessLevels (const SpacingMode spacingMode, in getClampedRoundedQuadTessLevels() argument 621 innerDst[i] = getClampedRoundedTessLevel(spacingMode, innerSrc[i]); in getClampedRoundedQuadTessLevels() 623 outerDst[i] = getClampedRoundedTessLevel(spacingMode, outerSrc[i]); in getClampedRoundedQuadTessLevels() 626 void getClampedRoundedIsolineTessLevels (const SpacingMode spacingMode, in getClampedRoundedIsolineTessLevels() argument 631 outerDst[1] = getClampedRoundedTessLevel(spacingMode, outerSrc[1]); in getClampedRoundedIsolineTessLevels() 696 std::vector<tcu::Vec3> generateReferenceTriangleTessCoords (const SpacingMode spacingMode, in generateReferenceTriangleTessCoords() argument 714 …return generateReferenceTriangleTessCoords(spacingMode, spacingMode == SPACINGMODE_FRACTIONAL_ODD … in generateReferenceTriangleTessCoords() [all …]
|
D | vktTessellationFractionalSpacingTests.cpp | 104 SpacingMode spacingMode; member 106 TestParams(ShaderLanguage sl, SpacingMode sm) : shaderLanguage(sl), spacingMode(sm) {} in TestParams() 130 const SpacingMode spacingMode, in verifyFractionalSpacingSingle() argument 136 DE_ASSERT(spacingMode == SPACINGMODE_FRACTIONAL_ODD || spacingMode == SPACINGMODE_FRACTIONAL_EVEN); in verifyFractionalSpacingSingle() 138 const float clampedLevel = getClampedTessLevel(spacingMode, tessLevel); in verifyFractionalSpacingSingle() 139 const int finalLevel = getRoundedTessLevel(spacingMode, clampedLevel); in verifyFractionalSpacingSingle() 147 …<< "; final level (clamped level rounded up to " << (spacingMode == SPACINGMODE_FRACTIONAL_EVEN ? … in verifyFractionalSpacingSingle() 273 const SpacingMode spacingMode, in verifyFractionalSpacingMultiple() argument 278 DE_ASSERT(spacingMode == SPACINGMODE_FRACTIONAL_ODD || spacingMode == SPACINGMODE_FRACTIONAL_EVEN); in verifyFractionalSpacingMultiple() 299 …if (getClampedTessLevel(spacingMode, curData.tessLevel) == getClampedTessLevel(spacingMode, prevDa… in verifyFractionalSpacingMultiple() [all …]
|
D | vktTessellationCoordinatesTests.cpp | 65 std::string getCaseName (const TessPrimitiveType primitiveType, const SpacingMode spacingMode) in getCaseName() argument 68 …r << getTessPrimitiveTypeShaderName(primitiveType) << "_" << getSpacingModeShaderName(spacingMode); in getCaseName() 73 const SpacingMode spacingMode) in genTessLevelCases() argument 88 if (spacingMode == SPACINGMODE_EQUAL) in genTessLevelCases() 102 …for (int j = 0; j < 2; ++j) inner[j] = static_cast<float>(getClampedRoundedTessLevel(spacingMode, … in genTessLevelCases() 103 …for (int j = 0; j < 4; ++j) outer[j] = static_cast<float>(getClampedRoundedTessLevel(spacingMode, … in genTessLevelCases() 110 inner[0] = static_cast<float>(getClampedRoundedTessLevel(spacingMode, inner[0] + 0.1f)); in genTessLevelCases() 117 …if (inner[0] == 1.0f) inner[0] = static_cast<float>(getClampedRoundedTessLevel(spacingMode, inner[… in genTessLevelCases() 118 …if (inner[1] == 1.0f) inner[1] = static_cast<float>(getClampedRoundedTessLevel(spacingMode, inner[… in genTessLevelCases() 131 const SpacingMode spacingMode, in generateReferenceTessCoords() argument [all …]
|
D | vktTessellationMiscDrawTests.cpp | 63 SpacingMode spacingMode; member 68 const SpacingMode spacingMode, in makeCaseDefinition() argument 73 caseDef.spacingMode = spacingMode; in makeCaseDefinition() 78 std::vector<TessLevels> genTessLevelCases (const SpacingMode spacingMode) in genTessLevelCases() argument 94 …tessLevels.inner[i] = static_cast<float>(getClampedRoundedTessLevel(spacingMode, tessLevelCases[te… in genTessLevelCases() 97 …tessLevels.outer[i] = static_cast<float>(getClampedRoundedTessLevel(spacingMode, tessLevelCases[te… in genTessLevelCases() 138 const std::vector<TessLevels> tessLevelCases = genTessLevelCases(caseDef.spacingMode); in runTest() 397 << getSpacingModeShaderName(caseDef.spacingMode) << ") in;\n" in initProgramsFillCoverCase() 449 << getSpacingModeShaderName(caseDef.spacingMode) << ") in;\n" in initProgramsFillNonOverlapCase() 506 << getSpacingModeShaderName(caseDef.spacingMode) << ") in;\n" in initProgramsIsolinesCase() [all …]
|
D | vktTessellationInvarianceTests.cpp | 239 const SpacingMode spacingMode, in addDefaultPrograms() argument 343 << getSpacingModeShaderName(spacingMode) << ", " in addDefaultPrograms() 473 SpacingMode spacingMode; member 504 …imitiveCount (const TessPrimitiveType primitiveType, const SpacingMode spacingMode, const bool use… in multiplePatchReferencePrimitiveCount() argument 508 …result += referencePrimitiveCount(primitiveType, spacingMode, usePointMode, &levels[NUM_TESS_LEVEL… in multiplePatchReferencePrimitiveCount() 513 …atchesToDraw, const TessPrimitiveType primitiveType, const SpacingMode spacingMode, const bool use… in computeMaxPrimitiveCount() argument 517 …return multiplePatchReferencePrimitiveCount(primitiveType, spacingMode, usePointMode, &patchTessLe… in computeMaxPrimitiveCount() 595 …teMaxPrimitiveCount(m_numPatchesToDraw, caseDef.primitiveType, caseDef.spacingMode, caseDef.usePoi… in BaseTestInstance() 679 …ultiplePatchReferencePrimitiveCount(m_caseDef.primitiveType, m_caseDef.spacingMode, usePointMode, … in draw() 1019 …addDefaultPrograms(programCollection, m_caseDef.primitiveType, m_caseDef.spacingMode, WINDING_USAG… in initPrograms() [all …]
|
D | vktTessellationCommonEdgeTests.cpp | 69 SpacingMode spacingMode; member 197 << getSpacingModeShaderName(caseDef.spacingMode) << ") in;\n" in initPrograms() 459 std::string getCaseName (const TessPrimitiveType primitiveType, const SpacingMode spacingMode, cons… in getCaseName() argument 462 …tr << getTessPrimitiveTypeShaderName(primitiveType) << "_" << getSpacingModeShaderName(spacingMode) in getCaseName() 486 const SpacingMode spacingMode = static_cast<SpacingMode>(spacingModeNdx); in createCommonEdgeTests() local 487 const CaseDefinition caseDef = { primitiveType, spacingMode, caseType }; in createCommonEdgeTests() 489 …addFunctionCaseWithPrograms(group.get(), getCaseName(primitiveType, spacingMode, caseType), "", in… in createCommonEdgeTests()
|
D | vktTessellationPrimitiveDiscardTests.cpp | 59 SpacingMode spacingMode; member 73 caseDef.spacingMode == vkt::tessellation::SPACINGMODE_FRACTIONAL_ODD); in lessThanOneInnerLevelsDefined() 248 const SpacingMode spacingMode, in expectedVertexCount() argument 253 …count += referenceVertexCount(primitiveType, spacingMode, true, &attributes[numAttribsPerPrimitive… in expectedVertexCount() 326 << getSpacingModeShaderName(caseDef.spacingMode) << ", " in initPrograms() 391 …unt(numPrimitives, numAttribsPerPrimitive, caseDef.primitiveType, caseDef.spacingMode, attributes); in test() 620 + "_" + getSpacingModeShaderName(caseDef.spacingMode) in createPrimitiveDiscardTests()
|
D | vktTessellationUtil.hpp | 234 std::vector<tcu::Vec3> generateReferenceTriangleTessCoords (const SpacingMode spacingMode, cons… 235 std::vector<tcu::Vec3> generateReferenceQuadTessCoords (const SpacingMode spacingMode, const i… 237 …exCount (const TessPrimitiveType primitiveType, const SpacingMode spacingMode, const bool use… 238 …veCount (const TessPrimitiveType primitiveType, const SpacingMode spacingMode, const bool use…
|
/external/deqp/modules/gles31/functional/ |
D | es31fTessellationTests.cpp | 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() [all …]
|