Lines Matching refs:pPipeline

2193 static VkBool32 isDynamic(const PIPELINE_NODE *pPipeline, const VkDynamicState state) {  in isDynamic()  argument
2194 if (pPipeline && pPipeline->graphicsPipelineCI.pDynamicState) { in isDynamic()
2195 … for (uint32_t i = 0; i < pPipeline->graphicsPipelineCI.pDynamicState->dynamicStateCount; i++) { in isDynamic()
2196 if (state == pPipeline->graphicsPipelineCI.pDynamicState->pDynamicStates[i]) in isDynamic()
2647 …c VkBool32 validate_pipeline_shaders(layer_data *my_data, VkDevice dev, PIPELINE_NODE *pPipeline) { in validate_pipeline_shaders() argument
2648 VkGraphicsPipelineCreateInfo const *pCreateInfo = &pPipeline->graphicsPipelineCI; in validate_pipeline_shaders()
2707 pPipeline->active_sets.insert(use.first.first); in validate_pipeline_shaders()
3001 PIPELINE_NODE *pPipeline = pPipelines[pipelineIndex]; in verifyPipelineCreateState() local
3006 if (pPipeline->graphicsPipelineCI.flags & VK_PIPELINE_CREATE_DERIVATIVE_BIT) { in verifyPipelineCreateState()
3008 if (!((pPipeline->graphicsPipelineCI.basePipelineHandle != VK_NULL_HANDLE) ^ in verifyPipelineCreateState()
3009 (pPipeline->graphicsPipelineCI.basePipelineIndex != -1))) { in verifyPipelineCreateState()
3013 } else if (pPipeline->graphicsPipelineCI.basePipelineIndex != -1) { in verifyPipelineCreateState()
3014 if (pPipeline->graphicsPipelineCI.basePipelineIndex >= pipelineIndex) { in verifyPipelineCreateState()
3020 pBasePipeline = pPipelines[pPipeline->graphicsPipelineCI.basePipelineIndex]; in verifyPipelineCreateState()
3022 } else if (pPipeline->graphicsPipelineCI.basePipelineHandle != VK_NULL_HANDLE) { in verifyPipelineCreateState()
3023 pBasePipeline = getPipeline(my_data, pPipeline->graphicsPipelineCI.basePipelineHandle); in verifyPipelineCreateState()
3033 if (pPipeline->graphicsPipelineCI.pColorBlendState != NULL) { in verifyPipelineCreateState()
3035 if (pPipeline->attachments.size() > 0) { in verifyPipelineCreateState()
3036 VkPipelineColorBlendAttachmentState *pAttachments = &pPipeline->attachments[0]; in verifyPipelineCreateState()
3037 for (size_t i = 1; i < pPipeline->attachments.size(); i++) { in verifyPipelineCreateState()
3055 (pPipeline->graphicsPipelineCI.pColorBlendState->logicOpEnable != VK_FALSE)) { in verifyPipelineCreateState()
3061 if ((pPipeline->graphicsPipelineCI.pColorBlendState->logicOpEnable == VK_TRUE) && in verifyPipelineCreateState()
3062 ((pPipeline->graphicsPipelineCI.pColorBlendState->logicOp < VK_LOGIC_OP_CLEAR) || in verifyPipelineCreateState()
3063 (pPipeline->graphicsPipelineCI.pColorBlendState->logicOp > VK_LOGIC_OP_SET))) { in verifyPipelineCreateState()
3074 auto rp_data = my_data->renderPassMap.find(pPipeline->graphicsPipelineCI.renderPass); in verifyPipelineCreateState()
3076 pPipeline->graphicsPipelineCI.subpass >= rp_data->second->pCreateInfo->subpassCount) { in verifyPipelineCreateState()
3080pPipeline->graphicsPipelineCI.subpass, rp_data->second->pCreateInfo->subpassCount - 1); in verifyPipelineCreateState()
3083 if (!validate_pipeline_shaders(my_data, device, pPipeline)) { in verifyPipelineCreateState()
3087 if (!(pPipeline->active_shaders & VK_SHADER_STAGE_VERTEX_BIT)) { in verifyPipelineCreateState()
3093 if (((pPipeline->active_shaders & VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT) == 0) != in verifyPipelineCreateState()
3094 ((pPipeline->active_shaders & VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT) == 0)) { in verifyPipelineCreateState()
3100 if ((pPipeline->active_shaders & VK_SHADER_STAGE_COMPUTE_BIT) && in verifyPipelineCreateState()
3101 (pPipeline->active_shaders & in verifyPipelineCreateState()
3110 …if (pPipeline->active_shaders & (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT | VK_SHADER_STAGE_TESSEL… in verifyPipelineCreateState()
3111 (pPipeline->iaStateCI.topology != VK_PRIMITIVE_TOPOLOGY_PATCH_LIST)) { in verifyPipelineCreateState()
3117 if (pPipeline->iaStateCI.topology == VK_PRIMITIVE_TOPOLOGY_PATCH_LIST) { in verifyPipelineCreateState()
3118 if (~pPipeline->active_shaders & VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT) { in verifyPipelineCreateState()
3124 …if (!pPipeline->tessStateCI.patchControlPoints || (pPipeline->tessStateCI.patchControlPoints > 32)… in verifyPipelineCreateState()
3130 pPipeline->tessStateCI.patchControlPoints); in verifyPipelineCreateState()
3136 if (!pPipeline->graphicsPipelineCI.pRasterizationState || in verifyPipelineCreateState()
3137 !pPipeline->graphicsPipelineCI.pRasterizationState->rasterizerDiscardEnable) { in verifyPipelineCreateState()
3138 if (!pPipeline->graphicsPipelineCI.pViewportState) { in verifyPipelineCreateState()
3143 } else if (pPipeline->graphicsPipelineCI.pViewportState->scissorCount != in verifyPipelineCreateState()
3144 pPipeline->graphicsPipelineCI.pViewportState->viewportCount) { in verifyPipelineCreateState()
3148pPipeline->vpStateCI.viewportCount, pPipeline->vpStateCI.scissorCount); in verifyPipelineCreateState()
3151 VkBool32 dynViewport = isDynamic(pPipeline, VK_DYNAMIC_STATE_VIEWPORT); in verifyPipelineCreateState()
3152 VkBool32 dynScissor = isDynamic(pPipeline, VK_DYNAMIC_STATE_SCISSOR); in verifyPipelineCreateState()
3154 if (pPipeline->graphicsPipelineCI.pViewportState->viewportCount && in verifyPipelineCreateState()
3155 !pPipeline->graphicsPipelineCI.pViewportState->pViewports) { in verifyPipelineCreateState()
3161pPipeline->graphicsPipelineCI.pViewportState->viewportCount); in verifyPipelineCreateState()
3165 if (pPipeline->graphicsPipelineCI.pViewportState->scissorCount && in verifyPipelineCreateState()
3166 !pPipeline->graphicsPipelineCI.pViewportState->pScissors) { in verifyPipelineCreateState()
3172 pPipeline->graphicsPipelineCI.pViewportState->scissorCount); in verifyPipelineCreateState()
3184 PIPELINE_NODE *pPipeline = new PIPELINE_NODE; in initGraphicsPipeline() local
3187 memcpy(&pPipeline->graphicsPipelineCI, pCreateInfo, sizeof(VkGraphicsPipelineCreateInfo)); in initGraphicsPipeline()
3198 memcpy(&pPipeline->vsCI, pPSSCI, sizeof(VkPipelineShaderStageCreateInfo)); in initGraphicsPipeline()
3199 pPipeline->active_shaders |= VK_SHADER_STAGE_VERTEX_BIT; in initGraphicsPipeline()
3202 memcpy(&pPipeline->tcsCI, pPSSCI, sizeof(VkPipelineShaderStageCreateInfo)); in initGraphicsPipeline()
3203 pPipeline->active_shaders |= VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT; in initGraphicsPipeline()
3206 memcpy(&pPipeline->tesCI, pPSSCI, sizeof(VkPipelineShaderStageCreateInfo)); in initGraphicsPipeline()
3207 pPipeline->active_shaders |= VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT; in initGraphicsPipeline()
3210 memcpy(&pPipeline->gsCI, pPSSCI, sizeof(VkPipelineShaderStageCreateInfo)); in initGraphicsPipeline()
3211 pPipeline->active_shaders |= VK_SHADER_STAGE_GEOMETRY_BIT; in initGraphicsPipeline()
3214 memcpy(&pPipeline->fsCI, pPSSCI, sizeof(VkPipelineShaderStageCreateInfo)); in initGraphicsPipeline()
3215 pPipeline->active_shaders |= VK_SHADER_STAGE_FRAGMENT_BIT; in initGraphicsPipeline()
3219 pPipeline->active_shaders |= VK_SHADER_STAGE_COMPUTE_BIT; in initGraphicsPipeline()
3228pPipeline->graphicsPipelineCI.pStages = new VkPipelineShaderStageCreateInfo[pCreateInfo->stageCoun… in initGraphicsPipeline()
3230 memcpy((void *)pPipeline->graphicsPipelineCI.pStages, pCreateInfo->pStages, bufferSize); in initGraphicsPipeline()
3233 pPipeline->vertexInputCI = *pCreateInfo->pVertexInputState; in initGraphicsPipeline()
3237 pPipeline->vertexBindingDescriptions = std::vector<VkVertexInputBindingDescription>( in initGraphicsPipeline()
3241 pPipeline->vertexAttributeDescriptions = std::vector<VkVertexInputAttributeDescription>( in initGraphicsPipeline()
3244 pPipeline->graphicsPipelineCI.pVertexInputState = &pPipeline->vertexInputCI; in initGraphicsPipeline()
3247 pPipeline->iaStateCI = *pCreateInfo->pInputAssemblyState; in initGraphicsPipeline()
3248 pPipeline->graphicsPipelineCI.pInputAssemblyState = &pPipeline->iaStateCI; in initGraphicsPipeline()
3251 pPipeline->tessStateCI = *pCreateInfo->pTessellationState; in initGraphicsPipeline()
3252 pPipeline->graphicsPipelineCI.pTessellationState = &pPipeline->tessStateCI; in initGraphicsPipeline()
3255 pPipeline->vpStateCI = *pCreateInfo->pViewportState; in initGraphicsPipeline()
3256 pPipeline->graphicsPipelineCI.pViewportState = &pPipeline->vpStateCI; in initGraphicsPipeline()
3259 pPipeline->rsStateCI = *pCreateInfo->pRasterizationState; in initGraphicsPipeline()
3260 pPipeline->graphicsPipelineCI.pRasterizationState = &pPipeline->rsStateCI; in initGraphicsPipeline()
3263 pPipeline->msStateCI = *pCreateInfo->pMultisampleState; in initGraphicsPipeline()
3264 pPipeline->graphicsPipelineCI.pMultisampleState = &pPipeline->msStateCI; in initGraphicsPipeline()
3267 pPipeline->dsStateCI = *pCreateInfo->pDepthStencilState; in initGraphicsPipeline()
3268 pPipeline->graphicsPipelineCI.pDepthStencilState = &pPipeline->dsStateCI; in initGraphicsPipeline()
3271 pPipeline->cbStateCI = *pCreateInfo->pColorBlendState; in initGraphicsPipeline()
3275 pPipeline->attachments = std::vector<VkPipelineColorBlendAttachmentState>( in initGraphicsPipeline()
3278 pPipeline->graphicsPipelineCI.pColorBlendState = &pPipeline->cbStateCI; in initGraphicsPipeline()
3281 pPipeline->dynStateCI = *pCreateInfo->pDynamicState; in initGraphicsPipeline()
3282 if (pPipeline->dynStateCI.dynamicStateCount) { in initGraphicsPipeline()
3283pPipeline->dynStateCI.pDynamicStates = new VkDynamicState[pPipeline->dynStateCI.dynamicStateCount]; in initGraphicsPipeline()
3284 bufferSize = pPipeline->dynStateCI.dynamicStateCount * sizeof(VkDynamicState); in initGraphicsPipeline()
3285 …memcpy((void *)pPipeline->dynStateCI.pDynamicStates, pCreateInfo->pDynamicState->pDynamicStates, b… in initGraphicsPipeline()
3287 pPipeline->graphicsPipelineCI.pDynamicState = &pPipeline->dynStateCI; in initGraphicsPipeline()
3289 return pPipeline; in initGraphicsPipeline()
3323 PIPELINE_NODE *pPipeline = my_data->pipelineMap[pipeline]; in validatePipelineState() local
3324 if (!pPipeline->graphicsPipelineCI.pRasterizationState || in validatePipelineState()
3325 !pPipeline->graphicsPipelineCI.pRasterizationState->rasterizerDiscardEnable) { in validatePipelineState()