Lines Matching refs:ndx

94 std::string getCaseStr (const deUint32 ndx)
96 switch(ndx)
321 " for(int ndx=0; ndx<3; ndx++)\n"
323 " gl_Position = gl_in[ndx].gl_Position;\n"
324 " vtxColor = in_vtxColor[ndx];\n"
448 for (deUint32 ndx = 0; ndx < PIPELINE_CACHE_NDX_COUNT; ndx++)
450 ShaderWrapper vertShaderModule = (ndx == PIPELINE_CACHE_NDX_DERIVATIVE) ? vertShaderModule2 : vertShaderModule1;
452 if (ndx == PIPELINE_CACHE_NDX_CACHED && !param->isDelayedDestroy())
462 VkPipeline basePipeline = (ndx == PIPELINE_CACHE_NDX_DERIVATIVE && m_pipeline[PIPELINE_CACHE_NDX_NO_CACHE].wasBuild()) ? m_pipeline[PIPELINE_CACHE_NDX_NO_CACHE].getPipeline() : DE_NULL;
464 preparePipelineWrapper(m_pipeline[ndx], vertShaderModule, tescShaderModule, teseShaderModule, geomShaderModule, fragShaderModule,
465 &m_pipelineCreationFeedback[VK_MAX_PIPELINE_PARTS * ndx],
466 &m_pipelineCreationIsHeavy[VK_MAX_PIPELINE_PARTS * ndx],
467 &m_pipelineStageCreationFeedbacks[VK_MAX_SHADER_STAGES * ndx],
471 if (ndx != PIPELINE_CACHE_NDX_NO_CACHE)
475 if (m_pipeline[ndx].wasBuild())
476 m_pipeline[ndx].destroyPipeline();
478 if (ndx == PIPELINE_CACHE_NDX_CACHED && param->isDelayedDestroy())
867 void buildDescriptorSets (deUint32 ndx);
868 void buildShader (deUint32 ndx);
869 void buildPipeline (const CacheTestParam* param, deUint32 ndx);
931 void ComputeCacheTestInstance::buildDescriptorSets (deUint32 ndx)
940 m_descriptorSetLayout[ndx] = descLayoutBuilder.build(vk, vkDevice);
943 void ComputeCacheTestInstance::buildShader (deUint32 ndx)
950 shader_name += (ndx == PIPELINE_CACHE_NDX_DERIVATIVE) ? "2" : "1";
961 m_computeShaderModule[ndx] = createShaderModule(vk, vkDevice, &shaderModuleCreateInfo);
964 void ComputeCacheTestInstance::buildPipeline (const CacheTestParam* param, deUint32 ndx)
970 deMemset(&m_pipelineCreationFeedback[ndx], 0, sizeof(VkPipelineCreationFeedbackEXT));
971 deMemset(&m_pipelineStageCreationFeedback[ndx], 0, sizeof(VkPipelineCreationFeedbackEXT));
977 &m_pipelineCreationFeedback[ndx], // VkPipelineCreationFeedbackEXT* pPipelineCreationFeedback;
979 &m_pipelineStageCreationFeedback[ndx] // VkPipelineCreationFeedbackEXT* pPipelineStageCreationFeedbacks;
989 &m_descriptorSetLayout[ndx].get(), // const VkDescriptorSetLayout* pSetLayouts;
994 m_pipelineLayout[ndx] = createPipelineLayout(vk, vkDevice, &pipelineLayoutCreateInfo);
1002 *m_computeShaderModule[ndx], // VkShaderModule module;
1013 *m_pipelineLayout[ndx], // VkPipelineLayout layout;
1018 if (ndx != PIPELINE_CACHE_NDX_DERIVATIVE)
1023 if (ndx == PIPELINE_CACHE_NDX_DERIVATIVE)
1030 if (ndx == PIPELINE_CACHE_NDX_CACHED && !param->isDelayedDestroy())
1037 vk.createComputePipelines(vkDevice, *m_cache, 1u, &pipelineCreateInfo, DE_NULL, &m_pipeline[ndx]);
1039 if (ndx != PIPELINE_CACHE_NDX_NO_CACHE)
1043 vk.destroyPipeline(vkDevice, m_pipeline[ndx], DE_NULL);
1045 if (ndx == PIPELINE_CACHE_NDX_CACHED && param->isDelayedDestroy())
1057 for (deUint32 ndx = 0; ndx < PIPELINE_CACHE_NDX_COUNT; ndx++)
1059 buildDescriptorSets(ndx);
1060 buildShader(ndx);
1061 buildPipeline(param, ndx);
1075 for (deUint32 ndx = 0; ndx < PIPELINE_CACHE_NDX_COUNT; ndx++)
1078 message << getCaseStr(ndx);
1089 if (!(m_pipelineCreationFeedback[ndx].flags & VK_PIPELINE_CREATION_FEEDBACK_VALID_BIT_EXT))
1094 if (m_pipelineCreationFeedback[ndx].flags)
1104 if (m_param->isCacheDisabled() && m_pipelineCreationFeedback[ndx].flags & VK_PIPELINE_CREATION_FEEDBACK_APPLICATION_PIPELINE_CACHE_HIT_BIT_EXT)
1110 if (ndx == PIPELINE_CACHE_NDX_NO_CACHE && m_pipelineCreationFeedback[ndx].flags & VK_PIPELINE_CREATION_FEEDBACK_APPLICATION_PIPELINE_CACHE_HIT_BIT_EXT)
1116 if (!(ndx == PIPELINE_CACHE_NDX_DERIVATIVE && !m_param->isCacheDisabled()) && m_pipelineCreationFeedback[ndx].flags & VK_PIPELINE_CREATION_FEEDBACK_BASE_PIPELINE_ACCELERATION_BIT_EXT)
1122 if (ndx == PIPELINE_CACHE_NDX_CACHED && !m_param->isCacheDisabled() && (m_pipelineCreationFeedback[ndx].flags & VK_PIPELINE_CREATION_FEEDBACK_APPLICATION_PIPELINE_CACHE_HIT_BIT_EXT) == 0)
1128 if (m_pipelineCreationFeedback[ndx].duration == 0)
1136 message << "\t\t Hit cache ? \t\t\t" << (m_pipelineCreationFeedback[ndx].flags & VK_PIPELINE_CREATION_FEEDBACK_APPLICATION_PIPELINE_CACHE_HIT_BIT_EXT ? "yes" : "no") << "\n";
1137 message << "\t\t Base Pipeline Acceleration ? \t" << (m_pipelineCreationFeedback[ndx].flags & VK_PIPELINE_CREATION_FEEDBACK_BASE_PIPELINE_ACCELERATION_BIT_EXT ? "yes" : "no") << "\n";
1138 message << "\t\t Duration (ns): \t\t" << m_pipelineCreationFeedback[ndx].duration << "\n";
1146 if (!(m_pipelineStageCreationFeedback[ndx].flags & VK_PIPELINE_CREATION_FEEDBACK_VALID_BIT_EXT))
1151 if (m_pipelineStageCreationFeedback[ndx].flags)
1154 errorMsg << getCaseStr(ndx) << ": Creation feedback is not valid for compute stage but there are other flags written";
1161 if (m_param->isCacheDisabled() && m_pipelineStageCreationFeedback[ndx].flags & VK_PIPELINE_CREATION_FEEDBACK_APPLICATION_PIPELINE_CACHE_HIT_BIT_EXT)
1164 errorMsg << getCaseStr(ndx) << ": feedback indicates pipeline compute stage hit cache when it shouldn't";
1168 if (ndx == PIPELINE_CACHE_NDX_CACHED && !m_param->isCacheDisabled() && (m_pipelineStageCreationFeedback[ndx].flags & VK_PIPELINE_CREATION_FEEDBACK_APPLICATION_PIPELINE_CACHE_HIT_BIT_EXT) == 0)
1173 if (cachedPipelineWarning && m_pipelineStageCreationFeedback[ndx].flags & VK_PIPELINE_CREATION_FEEDBACK_APPLICATION_PIPELINE_CACHE_HIT_BIT_EXT)
1179 message << "\t\t Hit cache ? \t\t\t" << (m_pipelineStageCreationFeedback[ndx].flags & VK_PIPELINE_CREATION_FEEDBACK_APPLICATION_PIPELINE_CACHE_HIT_BIT_EXT ? "yes" : "no") << "\n";
1180 message << "\t\t Base Pipeline Acceleration ? \t" << (m_pipelineStageCreationFeedback[ndx].flags & VK_PIPELINE_CREATION_FEEDBACK_BASE_PIPELINE_ACCELERATION_BIT_EXT ? "yes" : "no") << "\n";
1181 message << "\t\t Duration (ns): \t\t" << m_pipelineStageCreationFeedback[ndx].duration << "\n";