Lines Matching defs:param
88 const std::string generateTestName (struct MaxVaryingsParam param)
92 result << "test_" << getShaderStageName(param.stageToStressIO) << "_io_between_";
93 result << getShaderStageName(param.outputStage) << "_";
94 result << getShaderStageName(param.inputStage);
98 void initPrograms (SourceCollections& programCollection, MaxVaryingsParam param)
669 if (param.outputStage == VK_SHADER_STAGE_VERTEX_BIT)
674 if (param.inputStage == VK_SHADER_STAGE_FRAGMENT_BIT)
685 if (param.outputStage == VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT)
692 if (param.inputStage == VK_SHADER_STAGE_FRAGMENT_BIT)
700 if (param.outputStage == VK_SHADER_STAGE_GEOMETRY_BIT)
712 void supportedCheck (Context& context, MaxVaryingsParam param)
720 if ((param.inputStage == VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT ||
721 param.inputStage == VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT ||
722 param.outputStage == VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT ||
723 param.outputStage == VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT)
729 if ((param.inputStage == VK_SHADER_STAGE_GEOMETRY_BIT || param.outputStage == VK_SHADER_STAGE_GEOMETRY_BIT) && !features.geometryShader)
738 if (param.stageToStressIO == VK_SHADER_STAGE_VERTEX_BIT)
740 DE_ASSERT(param.outputStage == VK_SHADER_STAGE_VERTEX_BIT);
741 if (param.inputStage == VK_SHADER_STAGE_FRAGMENT_BIT && properties.limits.maxFragmentInputComponents < (properties.limits.maxVertexOutputComponents - 4))
748 if (param.stageToStressIO == VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT)
750 if (param.inputStage == VK_SHADER_STAGE_FRAGMENT_BIT && properties.limits.maxFragmentInputComponents < (properties.limits.maxTessellationEvaluationOutputComponents - 4))
757 if (param.stageToStressIO == VK_SHADER_STAGE_GEOMETRY_BIT)
759 if (param.inputStage == VK_SHADER_STAGE_FRAGMENT_BIT && properties.limits.maxFragmentInputComponents < (properties.limits.maxGeometryOutputComponents - 4))
766 if (param.stageToStressIO == VK_SHADER_STAGE_FRAGMENT_BIT)
768 DE_ASSERT(param.inputStage == VK_SHADER_STAGE_FRAGMENT_BIT);
770 if (param.outputStage == VK_SHADER_STAGE_VERTEX_BIT && (properties.limits.maxVertexOutputComponents - 4) < properties.limits.maxFragmentInputComponents)
775 if (param.outputStage == VK_SHADER_STAGE_GEOMETRY_BIT && (properties.limits.maxGeometryOutputComponents - 4) < properties.limits.maxFragmentInputComponents)
780 if (param.outputStage == VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT && (properties.limits.maxTessellationEvaluationOutputComponents - 4) < properties.limits.maxFragmentInputComponents)
787 checkPipelineConstructionRequirements(context.getInstanceInterface(), context.getPhysicalDevice(), param.pipelineConstructionType);
949 tcu::TestStatus test(Context& context, const MaxVaryingsParam param)
996 deInt32 maxOutput = getMaxIOComponents(false, param.outputStage, properties);
997 deInt32 maxInput = getMaxIOComponents(true, param.inputStage, properties);
1003 log << tcu::TestLog::Message << "Testing " << data * 4 << " input components for stage " << getShaderStageName(param.stageToStressIO).c_str() << tcu::TestLog::EndMessage;
1022 RenderPassWrapper renderPass (param.pipelineConstructionType, vk, device, imageFormat);
1024 const PipelineLayoutWrapper pipelineLayout (param.pipelineConstructionType, vk, device);
1039 if (param.inputStage == VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT || param.outputStage == VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT ||
1040 param.inputStage == VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT || param.outputStage == VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT)
1046 if (param.inputStage == VK_SHADER_STAGE_GEOMETRY_BIT || param.outputStage == VK_SHADER_STAGE_GEOMETRY_BIT)
1049 GraphicsPipelineWrapper graphicsPipeline(vki, vk, physicalDevice, device, context.getDeviceExtensions(), param.pipelineConstructionType);