Lines Matching refs:caseDef
68 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
71 …const string extensionHeader = (caseDef.extShaderSubGroupBallotTests ? "OpExtension \"SPV_KHR… in initFrameBufferPrograms()
72 …const string capabilityBallotHeader = (caseDef.extShaderSubGroupBallotTests ? "OpCapability Sub… in initFrameBufferPrograms()
77 if (VK_SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) in initFrameBufferPrograms()
80 if (VK_SHADER_STAGE_VERTEX_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
175 …"%15 = " + (caseDef.extShaderSubGroupBallotTests ? "OpSubgroupBallotKHR %10 %13" : "OpGroupNonUnif… in initFrameBufferPrograms()
190 …"%42 = " + (caseDef.extShaderSubGroupBallotTests ? "OpSubgroupBallotKHR %10 %41" : "OpGroupNonUnif… in initFrameBufferPrograms()
199 …"%52 = " + (caseDef.extShaderSubGroupBallotTests ? "OpSubgroupBallotKHR %10 %51" : "OpGroupNonUnif… in initFrameBufferPrograms()
219 else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
254 << (*caseDef.geometryPointSizeSupported ? "OpCapability GeometryPointSize\n" : "") in initFrameBufferPrograms()
325 << (*caseDef.geometryPointSizeSupported ? in initFrameBufferPrograms()
333 …<< "%15 = " << (caseDef.extShaderSubGroupBallotTests ? "OpSubgroupBallotKHR %10 %13" : "OpGroupNon… in initFrameBufferPrograms()
348 …<< "%42 = " << (caseDef.extShaderSubGroupBallotTests ? "OpSubgroupBallotKHR %10 %41" : "OpGroupNon… in initFrameBufferPrograms()
357 …<< "%52 = " << (caseDef.extShaderSubGroupBallotTests ? "OpSubgroupBallotKHR %10 %51" : "OpGroupNon… in initFrameBufferPrograms()
372 << (*caseDef.geometryPointSizeSupported ? in initFrameBufferPrograms()
383 else if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
515 …"%33 = " + (caseDef.extShaderSubGroupBallotTests ? "OpSubgroupBallotKHR %29 %31" : "OpGroupNonUnif… in initFrameBufferPrograms()
530 …"%57 = " + (caseDef.extShaderSubGroupBallotTests ? "OpSubgroupBallotKHR %29 %56" : "OpGroupNonUnif… in initFrameBufferPrograms()
539 …"%67 = " + (caseDef.extShaderSubGroupBallotTests ? "OpSubgroupBallotKHR %29 %66" : "OpGroupNonUnif… in initFrameBufferPrograms()
565 else if (VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
674 …"%15 = " + (caseDef.extShaderSubGroupBallotTests ? "OpSubgroupBallotKHR %10 %13" : "OpGroupNonUnif… in initFrameBufferPrograms()
689 …"%42 = " + (caseDef.extShaderSubGroupBallotTests ? "OpSubgroupBallotKHR %10 %41" : "OpGroupNonUnif… in initFrameBufferPrograms()
698 …"%52 = " + (caseDef.extShaderSubGroupBallotTests ? "OpSubgroupBallotKHR %10 %51" : "OpGroupNonUnif… in initFrameBufferPrograms()
730 string getExtHeader (const CaseDefinition& caseDef) in getExtHeader() argument
732 return (caseDef.extShaderSubGroupBallotTests ? in getExtHeader()
740 string getBodySource (const CaseDefinition& caseDef) in getBodySource() argument
742 …const string cmpStr = caseDef.extShaderSubGroupBallotTests ? "uint64_t(0) == ballotARB" : "uvec4(0… in getBodySource()
744 if (isAllComputeStages(caseDef.shaderStage)) in getBodySource()
746 const string cmpStrB = caseDef.extShaderSubGroupBallotTests ? "ballotARB" : "subgroupBallot"; in getBodySource()
768 void initPrograms (SourceCollections& programCollection, CaseDefinition caseDef) in initPrograms() argument
771 …ol spirv14required = (isAllRayTracingStages(caseDef.shaderStage) || isAllMeshShadingStages(ca… in initPrograms()
777 const string extHeader = getExtHeader(caseDef); in initPrograms()
778 const string testSrc = getBodySource(caseDef); in initPrograms()
779 const string testHelper = !isAllComputeStages(caseDef.shaderStage) ? "" in initPrograms()
780 : caseDef.extShaderSubGroupBallotTests ? subgroups::getSharedMemoryBallotHelperARB() in initPrograms()
782 const bool pointSizeSupport = *caseDef.geometryPointSizeSupported; in initPrograms()
784 …subgroups::initStdPrograms(programCollection, buildOptions, caseDef.shaderStage, VK_FORMAT_R32_UIN… in initPrograms()
787 void supportedCheck (Context& context, CaseDefinition caseDef) in supportedCheck() argument
797 …if (caseDef.extShaderSubGroupBallotTests && !context.requireDeviceFunctionality("VK_EXT_shader_sub… in supportedCheck()
802 if (caseDef.extShaderSubGroupBallotTests && !subgroups::isInt64SupportedForDevice(context)) in supportedCheck()
807 if (caseDef.requiredSubgroupSize) in supportedCheck()
825 …if ((subgroupSizeControlProperties.requiredSubgroupSizeStages & caseDef.shaderStage) != caseDef.sh… in supportedCheck()
829 …*caseDef.geometryPointSizeSupported = subgroups::isTessellationAndGeometryPointSizeSupported(conte… in supportedCheck()
832 if (isAllRayTracingStages(caseDef.shaderStage)) in supportedCheck()
836 else if (isAllMeshShadingStages(caseDef.shaderStage)) in supportedCheck()
841 if ((caseDef.shaderStage & VK_SHADER_STAGE_TASK_BIT_EXT) != 0u) in supportedCheck()
850 subgroups::supportedCheckShader(context, caseDef.shaderStage); in supportedCheck()
853 TestStatus noSSBOtest (Context& context, const CaseDefinition caseDef) in noSSBOtest() argument
864 switch (caseDef.shaderStage) in noSSBOtest()
868 …ntext, VK_FORMAT_R32_UINT, &inputData, 1, DE_NULL, checkVertexPipelineStages, caseDef.shaderStage); in noSSBOtest()
869 …ntext, VK_FORMAT_R32_UINT, &inputData, 1, DE_NULL, checkVertexPipelineStages, caseDef.shaderStage); in noSSBOtest()
874 TestStatus test (Context& context, const CaseDefinition caseDef) in test() argument
876 const bool isCompute = isAllComputeStages(caseDef.shaderStage); in test()
878 const bool isMesh = isAllMeshShadingStages(caseDef.shaderStage); in test()
900 if (caseDef.requiredSubgroupSize == DE_FALSE) in test()
930 else if (isAllGraphicsStages(caseDef.shaderStage)) in test()
932 …const VkShaderStageFlags stages = subgroups::getPossibleGraphicsSubgroupStages(context, caseDef.s… in test()
947 else if (isAllRayTracingStages(caseDef.shaderStage)) in test()
949 …rStageFlags stages = subgroups::getPossibleRayTracingSubgroupStages(context, caseDef.shaderStage); in test()
1018 const CaseDefinition caseDef = in createSubgroupsBallotTests() local
1025 const string testName = getShaderStageName(caseDef.shaderStage) + testNameSuffix; in createSubgroupsBallotTests()
1027 … addFunctionCaseWithPrograms(testGroup, testName, "", supportedCheck, initPrograms, test, caseDef); in createSubgroupsBallotTests()
1045 const CaseDefinition caseDef = in createSubgroupsBallotTests() local
1052 …const string testName = getShaderStageName(caseDef.shaderStage) + testNameSuffix + "_" + getShad… in createSubgroupsBallotTests()
1054 … addFunctionCaseWithPrograms(testGroup, testName, "", supportedCheck, initPrograms, test, caseDef); in createSubgroupsBallotTests()
1064 const CaseDefinition caseDef = in createSubgroupsBallotTests() local
1072 …addFunctionCaseWithPrograms(testGroup, "graphic", "", supportedCheck, initPrograms, test, caseDef); in createSubgroupsBallotTests()
1077 const CaseDefinition caseDef = in createSubgroupsBallotTests() local
1085 …onCaseWithPrograms(raytracingGroup.get(), "test", "", supportedCheck, initPrograms, test, caseDef); in createSubgroupsBallotTests()
1096 const CaseDefinition caseDef = in createSubgroupsBallotTests() local
1104 …ms(testGroup, getShaderStageName(caseDef.shaderStage), "", supportedCheck, initFrameBufferPrograms… in createSubgroupsBallotTests()