/external/swiftshader/src/Vulkan/ |
D | VkRenderPass.cpp | 47 const auto& subpass = pCreateInfo->pSubpasses[i]; in RenderPass() local 54 if(subpass.inputAttachmentCount > 0) in RenderPass() 56 size_t inputAttachmentsSize = subpass.inputAttachmentCount * sizeof(VkAttachmentReference); in RenderPass() 63 if(subpass.colorAttachmentCount > 0) in RenderPass() 65 size_t colorAttachmentsSize = subpass.colorAttachmentCount * sizeof(VkAttachmentReference); in RenderPass() 71 if(subpass.pResolveAttachments != nullptr) in RenderPass() 80 if(subpass.pDepthStencilAttachment != nullptr) in RenderPass() 88 if(subpass.preserveAttachmentCount > 0) in RenderPass() 90 size_t preserveAttachmentSize = subpass.preserveAttachmentCount * sizeof(uint32_t); in RenderPass() 117 const auto& subpass = pCreateInfo->pSubpasses[i]; in ComputeRequiredAllocationSize() local [all …]
|
D | VkFramebuffer.cpp | 78 VkSubpassDescription subpass = renderPass->getCurrentSubpass(); in clear() local 80 ASSERT(attachment.colorAttachment < subpass.colorAttachmentCount); in clear() 81 ASSERT(subpass.pColorAttachments[attachment.colorAttachment].attachment < attachmentCount); in clear() 83 attachments[subpass.pColorAttachments[attachment.colorAttachment].attachment]->clear( in clear() 89 VkSubpassDescription subpass = renderPass->getCurrentSubpass(); in clear() local 91 ASSERT(subpass.pDepthStencilAttachment->attachment < attachmentCount); in clear() 93 …attachments[subpass.pDepthStencilAttachment->attachment]->clear(attachment.clearValue, attachment.… in clear()
|
/external/mesa3d/src/amd/vulkan/ |
D | radv_pass.c | 109 struct radv_subpass *subpass = &pass->subpasses[i]; in radv_CreateRenderPass() local 111 subpass->input_count = desc->inputAttachmentCount; in radv_CreateRenderPass() 112 subpass->color_count = desc->colorAttachmentCount; in radv_CreateRenderPass() 114 subpass->view_mask = multiview_info->pViewMasks[i]; in radv_CreateRenderPass() 117 subpass->input_attachments = p; in radv_CreateRenderPass() 121 subpass->input_attachments[j] in radv_CreateRenderPass() 124 pass->attachments[desc->pInputAttachments[j].attachment].view_mask |= subpass->view_mask; in radv_CreateRenderPass() 129 subpass->color_attachments = p; in radv_CreateRenderPass() 133 subpass->color_attachments[j] in radv_CreateRenderPass() 136 pass->attachments[desc->pColorAttachments[j].attachment].view_mask |= subpass->view_mask; in radv_CreateRenderPass() [all …]
|
D | radv_meta_clear.c | 185 .subpass = 0, in create_pipeline() 335 const struct radv_subpass *subpass = cmd_buffer->state.subpass; in emit_color_clear() local 338 const uint32_t pass_att = subpass->color_attachments[subpass_att].attachment; in emit_color_clear() 360 assert(clear_att->colorAttachment < subpass->color_count); in emit_color_clear() 370 subpass->color_attachments[clear_att->colorAttachment] in emit_color_clear() 399 radv_cmd_buffer_set_subpass(cmd_buffer, subpass, false); in emit_color_clear() 607 const struct radv_subpass *subpass = cmd_buffer->state.subpass; in emit_depthstencil_clear() local 609 const uint32_t pass_att = subpass->depth_stencil_attachment.attachment; in emit_depthstencil_clear() 638 subpass->depth_stencil_attachment.layout, in emit_depthstencil_clear() 646 subpass->depth_stencil_attachment.layout, in emit_depthstencil_clear() [all …]
|
D | radv_meta_resolve.c | 221 .subpass = 0, in create_pipeline() 597 const struct radv_subpass *subpass = cmd_buffer->state.subpass; in radv_cmd_buffer_resolve_subpass() local 610 if (!subpass->has_resolve) in radv_cmd_buffer_resolve_subpass() 613 for (uint32_t i = 0; i < subpass->color_count; ++i) { in radv_cmd_buffer_resolve_subpass() 614 VkAttachmentReference src_att = subpass->color_attachments[i]; in radv_cmd_buffer_resolve_subpass() 615 VkAttachmentReference dest_att = subpass->resolve_attachments[i]; in radv_cmd_buffer_resolve_subpass() 641 for (uint32_t i = 0; i < subpass->color_count; ++i) { in radv_cmd_buffer_resolve_subpass() 642 VkAttachmentReference src_att = subpass->color_attachments[i]; in radv_cmd_buffer_resolve_subpass() 643 VkAttachmentReference dest_att = subpass->resolve_attachments[i]; in radv_cmd_buffer_resolve_subpass() 670 cmd_buffer->state.subpass = subpass; in radv_cmd_buffer_resolve_subpass()
|
D | radv_meta_resolve_cs.c | 485 const struct radv_subpass *subpass = cmd_buffer->state.subpass; in radv_cmd_buffer_resolve_subpass_cs() local 496 if (!subpass->has_resolve) in radv_cmd_buffer_resolve_subpass_cs() 507 for (uint32_t i = 0; i < subpass->color_count; ++i) { in radv_cmd_buffer_resolve_subpass_cs() 508 VkAttachmentReference src_att = subpass->color_attachments[i]; in radv_cmd_buffer_resolve_subpass_cs() 509 VkAttachmentReference dest_att = subpass->resolve_attachments[i]; in radv_cmd_buffer_resolve_subpass_cs() 531 for (uint32_t i = 0; i < subpass->color_count; ++i) { in radv_cmd_buffer_resolve_subpass_cs() 532 VkAttachmentReference src_att = subpass->color_attachments[i]; in radv_cmd_buffer_resolve_subpass_cs() 533 VkAttachmentReference dest_att = subpass->resolve_attachments[i]; in radv_cmd_buffer_resolve_subpass_cs() 549 for (uint32_t i = 0; i < subpass->color_count; ++i) { in radv_cmd_buffer_resolve_subpass_cs() 550 VkAttachmentReference dest_att = subpass->resolve_attachments[i]; in radv_cmd_buffer_resolve_subpass_cs()
|
D | radv_meta_resolve_fs.c | 310 .subpass = 0, in create_resolve_pipeline() 591 const struct radv_subpass *subpass = cmd_buffer->state.subpass; in radv_cmd_buffer_resolve_subpass_fs() local 603 if (!subpass->has_resolve) in radv_cmd_buffer_resolve_subpass_fs() 621 for (uint32_t i = 0; i < subpass->color_count; ++i) { in radv_cmd_buffer_resolve_subpass_fs() 622 VkAttachmentReference src_att = subpass->color_attachments[i]; in radv_cmd_buffer_resolve_subpass_fs() 623 VkAttachmentReference dest_att = subpass->resolve_attachments[i]; in radv_cmd_buffer_resolve_subpass_fs() 658 cmd_buffer->state.subpass = subpass; in radv_cmd_buffer_resolve_subpass_fs()
|
D | radv_pipeline.c | 428 struct radv_subpass *subpass = pass->subpasses + pCreateInfo->subpass; in radv_pipeline_compute_spi_color_formats() local 432 for (unsigned i = 0; i < (single_cb_enable ? 1 : subpass->color_count); ++i) { in radv_pipeline_compute_spi_color_formats() 435 if (subpass->color_attachments[i].attachment == VK_ATTACHMENT_UNUSED) { in radv_pipeline_compute_spi_color_formats() 438 …struct radv_render_pass_attachment *attachment = pass->attachments + subpass->color_attachments[i]… in radv_pipeline_compute_spi_color_formats() 493 struct radv_subpass *subpass = pass->subpasses + pCreateInfo->subpass; in radv_pipeline_compute_get_int_clamp() local 497 for (unsigned i = 0; i < subpass->color_count; ++i) { in radv_pipeline_compute_get_int_clamp() 500 if (subpass->color_attachments[i].attachment == VK_ATTACHMENT_UNUSED) in radv_pipeline_compute_get_int_clamp() 503 attachment = pass->attachments + subpass->color_attachments[i].attachment; in radv_pipeline_compute_get_int_clamp() 704 struct radv_subpass *subpass = pass->subpasses + pCreateInfo->subpass; in radv_pipeline_init_depth_stencil_state() local 705 if (subpass->depth_stencil_attachment.attachment == VK_ATTACHMENT_UNUSED) in radv_pipeline_init_depth_stencil_state() [all …]
|
D | radv_meta.c | 89 state->subpass = cmd_buffer->state.subpass; in radv_meta_save() 145 cmd_buffer->state.subpass = state->subpass; in radv_meta_restore() 149 if (state->subpass) in radv_meta_restore()
|
/external/mesa3d/src/intel/vulkan/ |
D | anv_pass.c | 106 struct anv_subpass *subpass = &pass->subpasses[i]; in anv_CreateRenderPass() local 108 subpass->input_count = desc->inputAttachmentCount; in anv_CreateRenderPass() 109 subpass->color_count = desc->colorAttachmentCount; in anv_CreateRenderPass() 110 subpass->attachment_count = num_subpass_attachments(desc); in anv_CreateRenderPass() 111 subpass->attachments = subpass_attachments; in anv_CreateRenderPass() 112 subpass->view_mask = 0; in anv_CreateRenderPass() 115 subpass->input_attachments = subpass_attachments; in anv_CreateRenderPass() 120 subpass->input_attachments[j] = desc->pInputAttachments[j]; in anv_CreateRenderPass() 130 subpass->has_ds_self_dep = true; in anv_CreateRenderPass() 136 subpass->color_attachments = subpass_attachments; in anv_CreateRenderPass() [all …]
|
D | anv_pipeline.c | 319 key->nr_color_regions = pipeline->subpass->color_count; in populate_wm_prog_key() 363 _mesa_sha1_update(&ctx, &pipeline->subpass->view_mask, in anv_pipeline_hash_shader() 364 sizeof(pipeline->subpass->view_mask)); in anv_pipeline_hash_shader() 406 NIR_PASS_V(nir, anv_nir_lower_multiview, pipeline->subpass->view_mask); in anv_pipeline_compile() 1074 struct anv_subpass *subpass = pipeline->subpass; in copy_non_dynamic_state() local 1132 for (unsigned i = 0; i < subpass->color_count; ++i) { in copy_non_dynamic_state() 1133 if (subpass->color_attachments[i].attachment != VK_ATTACHMENT_UNUSED) { in copy_non_dynamic_state() 1161 subpass->depth_stencil_attachment.attachment != VK_ATTACHMENT_UNUSED) { in copy_non_dynamic_state() 1201 struct anv_subpass *subpass = NULL; in anv_pipeline_validate_create_info() local 1211 assert(info->subpass < renderpass->subpass_count); in anv_pipeline_validate_create_info() [all …]
|
D | anv_blorp.c | 948 const struct anv_subpass *subpass = cmd_buffer->state.subpass; in clear_color_attachment() local 950 const uint32_t att_idx = subpass->color_attachments[color_att].attachment; in clear_color_attachment() 971 if (subpass->view_mask) { in clear_color_attachment() 973 for_each_bit(view_idx, subpass->view_mask) { in clear_color_attachment() 1010 const struct anv_subpass *subpass = cmd_buffer->state.subpass; in clear_depth_stencil_attachment() local 1011 const uint32_t att_idx = subpass->depth_stencil_attachment.attachment; in clear_depth_stencil_attachment() 1039 if (subpass->view_mask) { in clear_depth_stencil_attachment() 1041 for_each_bit(view_idx, subpass->view_mask) { in clear_depth_stencil_attachment() 1119 uint32_t ds = cmd_state->subpass->depth_stencil_attachment.attachment; in subpass_needs_clear() 1121 for (uint32_t i = 0; i < cmd_state->subpass->color_count; ++i) { in subpass_needs_clear() [all …]
|
D | genX_pipeline.c | 164 vfi.InstanceDataStepRate = anv_subpass_view_count(pipeline->subpass); in emit_vertex_input() 433 const struct anv_subpass *subpass) in emit_rs_state() argument 502 if (subpass->depth_stencil_attachment.attachment < pass->attachment_count) { in emit_rs_state() 504 pass->attachments[subpass->depth_stencil_attachment.attachment].format; in emit_rs_state() 796 const struct anv_subpass *subpass) argument 819 if (subpass->depth_stencil_attachment.attachment != VK_ATTACHMENT_UNUSED) { 821 pass->attachments[subpass->depth_stencil_attachment.attachment].format; 1365 emit_3dstate_wm(struct anv_pipeline *pipeline, struct anv_subpass *subpass, argument 1405 wm.PixelShaderKillsPixel = subpass->has_ds_self_dep || 1536 struct anv_subpass *subpass, argument [all …]
|
D | genX_cmd_buffer.c | 987 cmd_buffer->state.subpass = in genX() 988 &cmd_buffer->state.pass->subpasses[pBeginInfo->pInheritanceInfo->subpass]; in genX() 1004 cmd_buffer->state.subpass->depth_stencil_attachment.layout; in genX() 1552 struct anv_subpass *subpass = cmd_buffer->state.subpass; in emit_binding_table() local 1628 if (binding->index < subpass->color_count) { in emit_binding_table() 1630 subpass->color_attachments[binding->index].attachment; in emit_binding_table() 1690 assert(binding->input_attachment_index < subpass->input_count); in emit_binding_table() 1692 const unsigned att = subpass->input_attachments[subpass_att].attachment; in emit_binding_table() 2098 .InstanceDataStepRate = anv_subpass_view_count(pipeline->subpass), in genX() 2287 instanceCount *= anv_subpass_view_count(cmd_buffer->state.subpass); in genX() [all …]
|
D | gen7_cmd_buffer.c | 128 const struct anv_subpass *subpass = cmd_buffer->state.subpass; in get_depth_format() local 130 if (subpass->depth_stencil_attachment.attachment >= pass->attachment_count) in get_depth_format() 134 &pass->attachments[subpass->depth_stencil_attachment.attachment]; in get_depth_format()
|
D | genX_query.c | 484 if (cmd_buffer->state.subpass && cmd_buffer->state.subpass->view_mask) { in genX() 486 _mesa_bitcount(cmd_buffer->state.subpass->view_mask); in genX() 541 if (cmd_buffer->state.subpass && cmd_buffer->state.subpass->view_mask) { in genX() 543 _mesa_bitcount(cmd_buffer->state.subpass->view_mask); in genX()
|
/external/vulkan-validation-layers/layers/ |
D | convert_to_renderpass2.cpp | 146 for (uint32_t subpass = 0; subpass < pMultiviewInfo->subpassCount; ++subpass) { in ConvertVkRenderPassCreateInfoToV2KHR() local 147 if (subpass < in_struct->subpassCount) { in ConvertVkRenderPassCreateInfoToV2KHR() 148 out_struct->pSubpasses[subpass].viewMask = pMultiviewInfo->pViewMasks[subpass]; in ConvertVkRenderPassCreateInfoToV2KHR() 169 uint32_t subpass = pInputAttachmentAspectInfo->pAspectReferences[i].subpass; in ConvertVkRenderPassCreateInfoToV2KHR() local 172 …if (subpass < in_struct->subpassCount && attachment < in_struct->pSubpasses[subpass].inputAttachme… in ConvertVkRenderPassCreateInfoToV2KHR() 173 … out_struct->pSubpasses[subpass].pInputAttachments[attachment].aspectMask = aspectMask; in ConvertVkRenderPassCreateInfoToV2KHR()
|
D | stateless_validation.h | 877 for (uint32_t subpass = 0; subpass < pCreateInfo->subpassCount; ++subpass) { in RecordRenderPass() local 879 …for (uint32_t i = 0; i < pCreateInfo->pSubpasses[subpass].colorAttachmentCount && !uses_color; ++i) in RecordRenderPass() 880 …if (pCreateInfo->pSubpasses[subpass].pColorAttachments[i].attachment != VK_ATTACHMENT_UNUSED) uses… in RecordRenderPass() 883 if (pCreateInfo->pSubpasses[subpass].pDepthStencilAttachment) in RecordRenderPass() 884 … if (pCreateInfo->pSubpasses[subpass].pDepthStencilAttachment->attachment != VK_ATTACHMENT_UNUSED) in RecordRenderPass() 887 if (uses_color) renderpass_state.subpasses_using_color_attachment.insert(subpass); in RecordRenderPass() 888 … if (uses_depthstencil) renderpass_state.subpasses_using_depthstencil_attachment.insert(subpass); in RecordRenderPass()
|
/external/deqp-deps/glslang/Test/baseResults/ |
D | vulkan.vert.out | 2 ERROR: 0:3: 'subpass input' : not supported in this stage: vertex 4 ERROR: 0:4: 'subpass input' : not supported in this stage: vertex 6 ERROR: 0:5: 'subpass input' : not supported in this stage: vertex 8 ERROR: 0:6: 'subpass input' : not supported in this stage: vertex 10 ERROR: 0:7: 'subpass input' : not supported in this stage: vertex 12 ERROR: 0:8: 'subpass input' : not supported in this stage: vertex
|
D | vulkan.frag.out | 29 ERROR: 0:52: 'input_attachment_index' : can only be used with a subpass 31 ERROR: 0:53: 'input_attachment_index' : can only be used with a subpass 33 ERROR: 0:54: 'subpass' : requires an input_attachment_index layout qualifier
|
/external/deqp/external/vulkancts/modules/vulkan/renderpass/ |
D | vktRenderPassTestsUtil.cpp | 652 SubpassDesc createSubpassDescription (const Subpass& subpass, in createSubpassDescription() argument 661 …for (size_t attachmentNdx = 0; attachmentNdx < subpass.getColorAttachments().size(); attachmentNdx… in createSubpassDescription() 662 …colorAttachmentReferences.push_back(createAttachmentReference<AttachmentRef>(subpass.getColorAttac… in createSubpassDescription() 664 …for (size_t attachmentNdx = 0; attachmentNdx < subpass.getInputAttachments().size(); attachmentNdx… in createSubpassDescription() 665 …inputAttachmentReferences.push_back(createAttachmentReference<AttachmentRef>(subpass.getInputAttac… in createSubpassDescription() 667 …for (size_t attachmentNdx = 0; attachmentNdx < subpass.getResolveAttachments().size(); attachmentN… in createSubpassDescription() 668 …resolveAttachmentReferences.push_back(createAttachmentReference<AttachmentRef>(subpass.getResolveA… in createSubpassDescription() 670 …depthStencilAttachmentReferences.push_back(createAttachmentReference<AttachmentRef>(subpass.getDep… in createSubpassDescription() 672 …for (size_t attachmentNdx = 0; attachmentNdx < subpass.getPreserveAttachments().size(); attachment… in createSubpassDescription() 673 preserveAttachmentReferences->push_back(subpass.getPreserveAttachments()[attachmentNdx]); in createSubpassDescription() [all …]
|
D | vktRenderPassTests.cpp | 827 log << TestLog::Message << "Subpass: " << inputAspect.subpass << TestLog::EndMessage; in logRenderPassInfo() 840 const Subpass& subpass = subpasses[subpassNdx]; in logRenderPassInfo() local 842 const vector<AttachmentReference>& inputAttachments = subpass.getInputAttachments(); in logRenderPassInfo() 843 const vector<AttachmentReference>& colorAttachments = subpass.getColorAttachments(); in logRenderPassInfo() 844 const vector<AttachmentReference>& resolveAttachments = subpass.getResolveAttachments(); in logRenderPassInfo() 845 const vector<deUint32>& preserveAttachments = subpass.getPreserveAttachments(); in logRenderPassInfo() 863 if (subpass.getDepthStencilAttachment().getAttachment() != VK_ATTACHMENT_UNUSED) in logRenderPassInfo() 866 const AttachmentReference& depthStencilAttachment = subpass.getDepthStencilAttachment(); in logRenderPassInfo() 1121 SubpassDesc createSubpassDescription (const Subpass& subpass, in createSubpassDescription() argument 1130 …for (size_t attachmentNdx = 0; attachmentNdx < subpass.getColorAttachments().size(); attachmentNdx… in createSubpassDescription() [all …]
|
/external/deqp/external/vulkancts/framework/vulkan/ |
D | vkObjUtil.cpp | 45 const deUint32 subpass, in makeGraphicsPipeline() argument 278 subpass, // deUint32 subpass in makeGraphicsPipeline() 295 const deUint32 subpass, in makeGraphicsPipeline() argument 371 subpass, // deUint32 subpass in makeGraphicsPipeline()
|
D | vkObjUtil.hpp | 44 const deUint32 subpass = 0u, 62 const deUint32 subpass = 0u,
|
/external/vulkan-validation-layers/tests/ |
D | vkrenderframework.cpp | 532 VkSubpassDescription subpass = {}; in InitRenderTarget() local 533 subpass.pipelineBindPoint = VK_PIPELINE_BIND_POINT_GRAPHICS; in InitRenderTarget() 534 subpass.flags = 0; in InitRenderTarget() 535 subpass.inputAttachmentCount = 0; in InitRenderTarget() 536 subpass.pInputAttachments = NULL; in InitRenderTarget() 537 subpass.colorAttachmentCount = targets; in InitRenderTarget() 538 subpass.pColorAttachments = color_references.data(); in InitRenderTarget() 539 subpass.pResolveAttachments = NULL; in InitRenderTarget() 561 subpass.pDepthStencilAttachment = &ds_reference; in InitRenderTarget() 563 subpass.pDepthStencilAttachment = NULL; in InitRenderTarget() [all …]
|