Lines Matching refs:pPipeline
733 static bool IsDynamic(const PIPELINE_STATE *pPipeline, const VkDynamicState state) { in IsDynamic() argument
734 if (pPipeline && pPipeline->graphicsPipelineCI.pDynamicState) { in IsDynamic()
735 … for (uint32_t i = 0; i < pPipeline->graphicsPipelineCI.pDynamicState->dynamicStateCount; i++) { in IsDynamic()
736 … if (state == pPipeline->graphicsPipelineCI.pDynamicState->pDynamicStates[i]) return true; in IsDynamic()
944 … const PIPELINE_STATE *pPipeline, const char *caller) const { in ValidatePipelineDrawtimeState() argument
949 if (pPipeline->vertex_binding_descriptions_.size() > 0) { in ValidatePipelineDrawtimeState()
950 for (size_t i = 0; i < pPipeline->vertex_binding_descriptions_.size(); i++) { in ValidatePipelineDrawtimeState()
951 const auto vertex_binding = pPipeline->vertex_binding_descriptions_[i].binding; in ValidatePipelineDrawtimeState()
965 for (size_t i = 0; i < pPipeline->vertex_attribute_descriptions_.size(); i++) { in ValidatePipelineDrawtimeState()
966 const auto &attribute_description = pPipeline->vertex_attribute_descriptions_[i]; in ValidatePipelineDrawtimeState()
971 … const auto &vertex_binding_map_it = pPipeline->vertex_binding_to_index_map_.find(vertex_binding); in ValidatePipelineDrawtimeState()
972 if ((vertex_binding_map_it != pPipeline->vertex_binding_to_index_map_.cend()) && in ValidatePipelineDrawtimeState()
975 …const auto vertex_buffer_stride = pPipeline->vertex_binding_descriptions_[vertex_binding_map_it->s… in ValidatePipelineDrawtimeState()
1013 if ((!pPipeline->graphicsPipelineCI.pRasterizationState || in ValidatePipelineDrawtimeState()
1014 … (pPipeline->graphicsPipelineCI.pRasterizationState->rasterizerDiscardEnable == VK_FALSE)) && in ValidatePipelineDrawtimeState()
1015 pPipeline->graphicsPipelineCI.pViewportState) { in ValidatePipelineDrawtimeState()
1016 bool dynViewport = IsDynamic(pPipeline, VK_DYNAMIC_STATE_VIEWPORT); in ValidatePipelineDrawtimeState()
1017 bool dynScissor = IsDynamic(pPipeline, VK_DYNAMIC_STATE_SCISSOR); in ValidatePipelineDrawtimeState()
1020 …const auto requiredViewportsMask = (1 << pPipeline->graphicsPipelineCI.pViewportState->viewportCou… in ValidatePipelineDrawtimeState()
1033 …const auto requiredScissorMask = (1 << pPipeline->graphicsPipelineCI.pViewportState->scissorCount)… in ValidatePipelineDrawtimeState()
1048 if (!pPipeline->graphicsPipelineCI.pRasterizationState || in ValidatePipelineDrawtimeState()
1049 (pPipeline->graphicsPipelineCI.pRasterizationState->rasterizerDiscardEnable == VK_FALSE)) { in ValidatePipelineDrawtimeState()
1050 VkSampleCountFlagBits pso_num_samples = GetNumSamples(pPipeline); in ValidatePipelineDrawtimeState()
1072 … HandleToUint64(pPipeline->pipeline), kVUID_Core_DrawState_NumSamplesMismatch, in ValidatePipelineDrawtimeState()
1075 … report_data->FormatHandle(pPipeline->pipeline).c_str(), pso_num_samples, in ValidatePipelineDrawtimeState()
1081 … HandleToUint64(pPipeline->pipeline), kVUID_Core_DrawState_NoActiveRenderpass, in ValidatePipelineDrawtimeState()
1082 …ctive render pass found at draw-time in %s!", report_data->FormatHandle(pPipeline->pipeline).c_str… in ValidatePipelineDrawtimeState()
1128 if (pCB->activeRenderPass->renderPass != pPipeline->rp_state->renderPass) { in ValidatePipelineDrawtimeState()
1131 pPipeline->rp_state.get(), caller, rp_error); in ValidatePipelineDrawtimeState()
1133 if (pPipeline->graphicsPipelineCI.subpass != pCB->activeSubpass) { in ValidatePipelineDrawtimeState()
1136 …HandleToUint64(pPipeline->pipeline), sp_error, "Pipeline was built for subpass %u but used in subp… in ValidatePipelineDrawtimeState()
1137 pPipeline->graphicsPipelineCI.subpass, pCB->activeSubpass); in ValidatePipelineDrawtimeState()
1324 const PIPELINE_STATE *pPipeline = pPipelines[pipelineIndex].get(); in ValidatePipelineLocked() local
1329 if (pPipeline->graphicsPipelineCI.flags & VK_PIPELINE_CREATE_DERIVATIVE_BIT) { in ValidatePipelineLocked()
1331 if (!((pPipeline->graphicsPipelineCI.basePipelineHandle != VK_NULL_HANDLE) ^ in ValidatePipelineLocked()
1332 (pPipeline->graphicsPipelineCI.basePipelineIndex != -1))) { in ValidatePipelineLocked()
1338 } else if (pPipeline->graphicsPipelineCI.basePipelineIndex != -1) { in ValidatePipelineLocked()
1339 if (pPipeline->graphicsPipelineCI.basePipelineIndex >= pipelineIndex) { in ValidatePipelineLocked()
1344 pBasePipeline = pPipelines[pPipeline->graphicsPipelineCI.basePipelineIndex].get(); in ValidatePipelineLocked()
1346 } else if (pPipeline->graphicsPipelineCI.basePipelineHandle != VK_NULL_HANDLE) { in ValidatePipelineLocked()
1347 pBasePipeline = GetPipelineState(pPipeline->graphicsPipelineCI.basePipelineHandle); in ValidatePipelineLocked()
1361 bool CoreChecks::ValidatePipelineUnlocked(const PIPELINE_STATE *pPipeline, uint32_t pipelineIndex) … in ValidatePipelineUnlocked() argument
1367 …auto subpass_desc = &pPipeline->rp_state->createInfo.pSubpasses[pPipeline->graphicsPipelineCI.subp… in ValidatePipelineUnlocked()
1368 if (pPipeline->graphicsPipelineCI.subpass >= pPipeline->rp_state->createInfo.subpassCount) { in ValidatePipelineUnlocked()
1372 … pPipeline->graphicsPipelineCI.subpass, pPipeline->rp_state->createInfo.subpassCount - 1); in ValidatePipelineUnlocked()
1376 if (pPipeline->graphicsPipelineCI.pColorBlendState != NULL) { in ValidatePipelineUnlocked()
1377 …const safe_VkPipelineColorBlendStateCreateInfo *color_blend_state = pPipeline->graphicsPipelineCI.… in ValidatePipelineUnlocked()
1384 …report_data->FormatHandle(pPipeline->rp_state->renderPass).c_str(), pPipeline->graphicsPipelineCI.… in ValidatePipelineUnlocked()
1388 if (pPipeline->attachments.size() > 1) { in ValidatePipelineUnlocked()
1389 … const VkPipelineColorBlendAttachmentState *const pAttachments = &pPipeline->attachments[0]; in ValidatePipelineUnlocked()
1390 for (size_t i = 1; i < pPipeline->attachments.size(); i++) { in ValidatePipelineUnlocked()
1405 …if (!enabled_features.core.logicOp && (pPipeline->graphicsPipelineCI.pColorBlendState->logicOpEnab… in ValidatePipelineUnlocked()
1411 for (size_t i = 0; i < pPipeline->attachments.size(); i++) { in ValidatePipelineUnlocked()
1412 if ((pPipeline->attachments[i].srcColorBlendFactor == VK_BLEND_FACTOR_SRC1_COLOR) || in ValidatePipelineUnlocked()
1413 … (pPipeline->attachments[i].srcColorBlendFactor == VK_BLEND_FACTOR_ONE_MINUS_SRC1_COLOR) || in ValidatePipelineUnlocked()
1414 (pPipeline->attachments[i].srcColorBlendFactor == VK_BLEND_FACTOR_SRC1_ALPHA) || in ValidatePipelineUnlocked()
1415 … (pPipeline->attachments[i].srcColorBlendFactor == VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA)) { in ValidatePipelineUnlocked()
1423 pipelineIndex, i, pPipeline->attachments[i].srcColorBlendFactor); in ValidatePipelineUnlocked()
1426 if ((pPipeline->attachments[i].dstColorBlendFactor == VK_BLEND_FACTOR_SRC1_COLOR) || in ValidatePipelineUnlocked()
1427 … (pPipeline->attachments[i].dstColorBlendFactor == VK_BLEND_FACTOR_ONE_MINUS_SRC1_COLOR) || in ValidatePipelineUnlocked()
1428 (pPipeline->attachments[i].dstColorBlendFactor == VK_BLEND_FACTOR_SRC1_ALPHA) || in ValidatePipelineUnlocked()
1429 … (pPipeline->attachments[i].dstColorBlendFactor == VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA)) { in ValidatePipelineUnlocked()
1437 pipelineIndex, i, pPipeline->attachments[i].dstColorBlendFactor); in ValidatePipelineUnlocked()
1440 if ((pPipeline->attachments[i].srcAlphaBlendFactor == VK_BLEND_FACTOR_SRC1_COLOR) || in ValidatePipelineUnlocked()
1441 … (pPipeline->attachments[i].srcAlphaBlendFactor == VK_BLEND_FACTOR_ONE_MINUS_SRC1_COLOR) || in ValidatePipelineUnlocked()
1442 (pPipeline->attachments[i].srcAlphaBlendFactor == VK_BLEND_FACTOR_SRC1_ALPHA) || in ValidatePipelineUnlocked()
1443 … (pPipeline->attachments[i].srcAlphaBlendFactor == VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA)) { in ValidatePipelineUnlocked()
1451 pipelineIndex, i, pPipeline->attachments[i].srcAlphaBlendFactor); in ValidatePipelineUnlocked()
1454 if ((pPipeline->attachments[i].dstAlphaBlendFactor == VK_BLEND_FACTOR_SRC1_COLOR) || in ValidatePipelineUnlocked()
1455 … (pPipeline->attachments[i].dstAlphaBlendFactor == VK_BLEND_FACTOR_ONE_MINUS_SRC1_COLOR) || in ValidatePipelineUnlocked()
1456 (pPipeline->attachments[i].dstAlphaBlendFactor == VK_BLEND_FACTOR_SRC1_ALPHA) || in ValidatePipelineUnlocked()
1457 … (pPipeline->attachments[i].dstAlphaBlendFactor == VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA)) { in ValidatePipelineUnlocked()
1465 pipelineIndex, i, pPipeline->attachments[i].dstAlphaBlendFactor); in ValidatePipelineUnlocked()
1471 if (ValidateGraphicsPipelineShaderState(pPipeline)) { in ValidatePipelineUnlocked()
1475 if (pPipeline->duplicate_shaders) { in ValidatePipelineUnlocked()
1477 if (pPipeline->duplicate_shaders & stage) { in ValidatePipelineUnlocked()
1487 … if (!(pPipeline->active_shaders & (VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_MESH_BIT_NV))) { in ValidatePipelineUnlocked()
1493 … if ((pPipeline->active_shaders & (VK_SHADER_STAGE_MESH_BIT_NV | VK_SHADER_STAGE_TASK_BIT_NV)) && in ValidatePipelineUnlocked()
1494 (pPipeline->active_shaders & in ValidatePipelineUnlocked()
1504 if (!(pPipeline->active_shaders & VK_SHADER_STAGE_VERTEX_BIT)) { in ValidatePipelineUnlocked()
1511 …if (!enabled_features.mesh_shader.meshShader && (pPipeline->active_shaders & VK_SHADER_STAGE_MESH_… in ValidatePipelineUnlocked()
1517 …if (!enabled_features.mesh_shader.taskShader && (pPipeline->active_shaders & VK_SHADER_STAGE_TASK_… in ValidatePipelineUnlocked()
1524 bool has_control = (pPipeline->active_shaders & VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT) != 0; in ValidatePipelineUnlocked()
1525 bool has_eval = (pPipeline->active_shaders & VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT) != 0; in ValidatePipelineUnlocked()
1537 if (pPipeline->active_shaders & VK_SHADER_STAGE_COMPUTE_BIT) { in ValidatePipelineUnlocked()
1543 …if ((pPipeline->active_shaders & VK_SHADER_STAGE_VERTEX_BIT) && !pPipeline->graphicsPipelineCI.pIn… in ValidatePipelineUnlocked()
1552 (!pPipeline->graphicsPipelineCI.pInputAssemblyState || in ValidatePipelineUnlocked()
1553 …pPipeline->graphicsPipelineCI.pInputAssemblyState->topology != VK_PRIMITIVE_TOPOLOGY_PATCH_LIST)) { in ValidatePipelineUnlocked()
1559 if (pPipeline->graphicsPipelineCI.pInputAssemblyState) { in ValidatePipelineUnlocked()
1560 …if (pPipeline->graphicsPipelineCI.pInputAssemblyState->topology == VK_PRIMITIVE_TOPOLOGY_PATCH_LIS… in ValidatePipelineUnlocked()
1570 … if ((pPipeline->graphicsPipelineCI.pInputAssemblyState->primitiveRestartEnable == VK_TRUE) && in ValidatePipelineUnlocked()
1571 …(pPipeline->graphicsPipelineCI.pInputAssemblyState->topology == VK_PRIMITIVE_TOPOLOGY_POINT_LIST || in ValidatePipelineUnlocked()
1572 … pPipeline->graphicsPipelineCI.pInputAssemblyState->topology == VK_PRIMITIVE_TOPOLOGY_LINE_LIST || in ValidatePipelineUnlocked()
1573 …pPipeline->graphicsPipelineCI.pInputAssemblyState->topology == VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST… in ValidatePipelineUnlocked()
1574 …pPipeline->graphicsPipelineCI.pInputAssemblyState->topology == VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WIT… in ValidatePipelineUnlocked()
1575 …pPipeline->graphicsPipelineCI.pInputAssemblyState->topology == VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST… in ValidatePipelineUnlocked()
1576 …pPipeline->graphicsPipelineCI.pInputAssemblyState->topology == VK_PRIMITIVE_TOPOLOGY_PATCH_LIST)) { in ValidatePipelineUnlocked()
1580 … string_VkPrimitiveTopology(pPipeline->graphicsPipelineCI.pInputAssemblyState->topology)); in ValidatePipelineUnlocked()
1583 …(pPipeline->graphicsPipelineCI.pInputAssemblyState->topology == VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WI… in ValidatePipelineUnlocked()
1584 …pPipeline->graphicsPipelineCI.pInputAssemblyState->topology == VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WI… in ValidatePipelineUnlocked()
1585 …pPipeline->graphicsPipelineCI.pInputAssemblyState->topology == VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST… in ValidatePipelineUnlocked()
1586 …pPipeline->graphicsPipelineCI.pInputAssemblyState->topology == VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRI… in ValidatePipelineUnlocked()
1590 … string_VkPrimitiveTopology(pPipeline->graphicsPipelineCI.pInputAssemblyState->topology)); in ValidatePipelineUnlocked()
1593 …(pPipeline->graphicsPipelineCI.pInputAssemblyState->topology == VK_PRIMITIVE_TOPOLOGY_PATCH_LIST))… in ValidatePipelineUnlocked()
1597 … string_VkPrimitiveTopology(pPipeline->graphicsPipelineCI.pInputAssemblyState->topology)); in ValidatePipelineUnlocked()
1602 if (pPipeline->graphicsPipelineCI.pRasterizationState) { in ValidatePipelineUnlocked()
1603 if ((pPipeline->graphicsPipelineCI.pRasterizationState->depthClampEnable == VK_TRUE) && in ValidatePipelineUnlocked()
1611 if (!IsDynamic(pPipeline, VK_DYNAMIC_STATE_DEPTH_BIAS) && in ValidatePipelineUnlocked()
1612 …(pPipeline->graphicsPipelineCI.pRasterizationState->depthBiasClamp != 0.0) && (!enabled_features.c… in ValidatePipelineUnlocked()
1621 … if (pPipeline->graphicsPipelineCI.pRasterizationState->rasterizerDiscardEnable == VK_FALSE) { in ValidatePipelineUnlocked()
1622 if ((pPipeline->graphicsPipelineCI.pMultisampleState->alphaToOneEnable == VK_TRUE) && in ValidatePipelineUnlocked()
1633 if (!pPipeline->graphicsPipelineCI.pDepthStencilState) { in ValidatePipelineUnlocked()
1639 … } else if ((pPipeline->graphicsPipelineCI.pDepthStencilState->depthBoundsTestEnable == VK_TRUE) && in ValidatePipelineUnlocked()
1658 … if (color_attachment_count > 0 && pPipeline->graphicsPipelineCI.pColorBlendState == nullptr) { in ValidatePipelineUnlocked()
1668 …if ((pPipeline->active_shaders & VK_SHADER_STAGE_VERTEX_BIT) && !pPipeline->graphicsPipelineCI.pVe… in ValidatePipelineUnlocked()
1674 auto vi = pPipeline->graphicsPipelineCI.pVertexInputState; in ValidatePipelineUnlocked()
1692 if (pPipeline->graphicsPipelineCI.pMultisampleState) { in ValidatePipelineUnlocked()
1693 auto accumColorSamples = [subpass_desc, pPipeline](uint32_t &samples) { in ValidatePipelineUnlocked()
1697 …samples |= static_cast<uint32_t>(pPipeline->rp_state->createInfo.pAttachments[attachment].samples); in ValidatePipelineUnlocked()
1703 uint32_t raster_samples = static_cast<uint32_t>(GetNumSamples(pPipeline)); in ValidatePipelineUnlocked()
1711 …subpass_num_samples |= static_cast<uint32_t>(pPipeline->rp_state->createInfo.pAttachments[attachme… in ValidatePipelineUnlocked()
1731 …pPipeline->rp_state->createInfo.pAttachments[subpass_desc->pColorAttachments[i].attachment].sample… in ValidatePipelineUnlocked()
1738 …pPipeline->rp_state->createInfo.pAttachments[subpass_desc->pDepthStencilAttachment->attachment].sa… in ValidatePipelineUnlocked()
1740 … if ((pPipeline->graphicsPipelineCI.pRasterizationState->rasterizerDiscardEnable == VK_FALSE) && in ValidatePipelineUnlocked()
1741 … (pPipeline->graphicsPipelineCI.pMultisampleState->rasterizationSamples != max_sample_count)) { in ValidatePipelineUnlocked()
1747 …string_VkSampleCountFlagBits(pPipeline->graphicsPipelineCI.pMultisampleState->rasterizationSamples… in ValidatePipelineUnlocked()
1748 … string_VkSampleCountFlagBits(max_sample_count), pPipeline->graphicsPipelineCI.subpass); in ValidatePipelineUnlocked()
1753 uint32_t raster_samples = static_cast<uint32_t>(GetNumSamples(pPipeline)); in ValidatePipelineUnlocked()
1762 … static_cast<uint32_t>(pPipeline->rp_state->createInfo.pAttachments[attachment].samples); in ValidatePipelineUnlocked()
1764 if (pPipeline->graphicsPipelineCI.pDepthStencilState) { in ValidatePipelineUnlocked()
1766 … (pPipeline->graphicsPipelineCI.pDepthStencilState->depthTestEnable == VK_TRUE) || in ValidatePipelineUnlocked()
1767 … (pPipeline->graphicsPipelineCI.pDepthStencilState->depthBoundsTestEnable == VK_TRUE) || in ValidatePipelineUnlocked()
1768 … (pPipeline->graphicsPipelineCI.pDepthStencilState->stencilTestEnable == VK_TRUE); in ValidatePipelineUnlocked()
1789 if (pPipeline->graphicsPipelineCI.pMultisampleState) { in ValidatePipelineUnlocked()
1791 … (pPipeline->graphicsPipelineCI.pMultisampleState->sampleShadingEnable == VK_TRUE)) { in ValidatePipelineUnlocked()
1804 pPipeline->graphicsPipelineCI.pMultisampleState->pNext); in ValidatePipelineUnlocked()
1823 …lvl_find_in_chain<VkPipelineCoverageToColorStateCreateInfoNV>(pPipeline->graphicsPipelineCI.pMulti… in ValidatePipelineUnlocked()
1833 …const auto color_attachment = pPipeline->rp_state->createInfo.pAttachments[color_attachment_ref.at… in ValidatePipelineUnlocked()