• Home
  • Raw
  • Download

Lines Matching refs:pass

40    struct panvk_render_pass *pass;  in panvk_CreateRenderPass2()  local
47 size = sizeof(*pass); in panvk_CreateRenderPass2()
48 size += pCreateInfo->subpassCount * sizeof(pass->subpasses[0]); in panvk_CreateRenderPass2()
50 size += pCreateInfo->attachmentCount * sizeof(pass->attachments[0]); in panvk_CreateRenderPass2()
52 pass = vk_object_zalloc(&device->vk, pAllocator, size, in panvk_CreateRenderPass2()
54 if (pass == NULL) in panvk_CreateRenderPass2()
57 pass->attachment_count = pCreateInfo->attachmentCount; in panvk_CreateRenderPass2()
58 pass->subpass_count = pCreateInfo->subpassCount; in panvk_CreateRenderPass2()
59 pass->attachments = (void *) pass + attachments_offset; in panvk_CreateRenderPass2()
72 struct panvk_render_pass_attachment *att = &pass->attachments[i]; in panvk_CreateRenderPass2()
97 pass->subpass_attachments = in panvk_CreateRenderPass2()
102 if (pass->subpass_attachments == NULL) { in panvk_CreateRenderPass2()
103 vk_object_free(&device->vk, pAllocator, pass); in panvk_CreateRenderPass2()
108 p = pass->subpass_attachments; in panvk_CreateRenderPass2()
111 struct panvk_subpass *subpass = &pass->subpasses[i]; in panvk_CreateRenderPass2()
128 pass->attachments[desc->pInputAttachments[j].attachment] in panvk_CreateRenderPass2()
146 pass->attachments[idx].view_mask |= subpass->view_mask; in panvk_CreateRenderPass2()
147 if (pass->attachments[idx].first_used_in_subpass == ~0) { in panvk_CreateRenderPass2()
148 pass->attachments[idx].first_used_in_subpass = i; in panvk_CreateRenderPass2()
149 if (pass->attachments[idx].load_op == VK_ATTACHMENT_LOAD_OP_CLEAR) in panvk_CreateRenderPass2()
151 else if (pass->attachments[idx].load_op == VK_ATTACHMENT_LOAD_OP_LOAD) in panvk_CreateRenderPass2()
173 pass->attachments[idx].view_mask |= subpass->view_mask; in panvk_CreateRenderPass2()
183 pass->attachments[idx].view_mask |= subpass->view_mask; in panvk_CreateRenderPass2()
185 if (pass->attachments[idx].first_used_in_subpass == ~0) { in panvk_CreateRenderPass2()
186 pass->attachments[idx].first_used_in_subpass = i; in panvk_CreateRenderPass2()
187 if (pass->attachments[idx].load_op == VK_ATTACHMENT_LOAD_OP_CLEAR) in panvk_CreateRenderPass2()
189 else if (pass->attachments[idx].load_op == VK_ATTACHMENT_LOAD_OP_LOAD) in panvk_CreateRenderPass2()
197 *pRenderPass = panvk_render_pass_to_handle(pass); in panvk_CreateRenderPass2()
207 VK_FROM_HANDLE(panvk_render_pass, pass, _pass); in panvk_DestroyRenderPass()
209 if (!pass) in panvk_DestroyRenderPass()
212 vk_free2(&device->vk.alloc, pAllocator, pass->subpass_attachments); in panvk_DestroyRenderPass()
213 vk_object_free(&device->vk, pAllocator, pass); in panvk_DestroyRenderPass()