Lines Matching refs:pass
31 struct anv_render_pass *pass,
49 pass->subpass_flushes[pass->subpass_count] |=
52 assert(dep->dstSubpass < pass->subpass_count);
53 pass->subpass_flushes[dep->dstSubpass] |=
58 pass->subpass_flushes[0] |=
61 assert(dep->srcSubpass < pass->subpass_count);
62 pass->subpass_flushes[dep->srcSubpass + 1] |=
67 /* Do a second "compile" step on a render pass */
69 anv_render_pass_compile(struct anv_render_pass *pass)
71 /* The CreateRenderPass code zeros the entire render pass and also uses a
75 * for (uint32_t i = 0; i < pass->attachment_count; i++) {
76 * pass->attachments[i].usage = 0;
77 * pass->attachments[i].first_subpass_layout = VK_IMAGE_LAYOUT_UNDEFINED;
82 for (uint32_t i = 0; i < pass->subpass_count; i++) {
83 struct anv_subpass *subpass = &pass->subpasses[i];
103 &pass->attachments[subpass_att->attachment];
138 assert(color_att->attachment < pass->attachment_count);
140 &pass->attachments[color_att->attachment];
154 assert(ds_att->attachment < pass->attachment_count);
156 &pass->attachments[ds_att->attachment];
230 pass->subpass_flushes[0] |=
235 pass->subpass_flushes[pass->subpass_count] |=
239 pass->subpass_flushes[pass->subpass_count] |=
333 VK_MULTIALLOC_DECL(&ma, struct anv_render_pass, pass, 1);
353 /* Clear the subpasses along with the parent pass. This required because
356 pass->attachment_count = pCreateInfo->attachmentCount;
357 pass->subpass_count = pCreateInfo->subpassCount;
358 pass->attachments = attachments;
359 pass->subpass_flushes = subpass_flushes;
362 pass->attachments[i] = (struct anv_render_pass_attachment) {
380 struct anv_subpass *subpass = &pass->subpasses[i];
458 anv_render_pass_add_subpass_dep(device, pass,
469 anv_render_pass_compile(pass);
471 *pRenderPass = anv_render_pass_to_handle(pass);
482 ANV_FROM_HANDLE(anv_render_pass, pass, _pass);
484 if (!pass)
487 vk_object_free(&device->vk, pAllocator, pass);
495 ANV_FROM_HANDLE(anv_render_pass, pass, renderPass);
500 for (unsigned i = 0; i < pass->subpass_count; ++i) {
501 if (pass->subpasses[i].depth_stencil_attachment) {