Lines Matching defs:subpass
59 const struct v3dv_subpass *subpass = &pass->subpasses[i];
61 for (uint32_t j = 0; j < subpass->color_count; j++) {
62 uint32_t attachment_idx = subpass->color_attachments[j].attachment;
74 uint32_t view_mask = subpass->view_mask;
83 if (subpass->resolve_attachments &&
84 subpass->resolve_attachments[j].attachment != VK_ATTACHMENT_UNUSED) {
89 uint32_t ds_attachment_idx = subpass->ds_attachment.attachment;
97 for (uint32_t j = 0; j < subpass->input_count; j++) {
98 uint32_t input_attachment_idx = subpass->input_attachments[j].attachment;
107 if (subpass->resolve_attachments) {
108 for (uint32_t j = 0; j < subpass->color_count; j++) {
109 uint32_t attachment_idx = subpass->resolve_attachments[j].attachment;
180 struct v3dv_subpass *subpass = &pass->subpasses[i];
182 subpass->input_count = desc->inputAttachmentCount;
183 subpass->color_count = desc->colorAttachmentCount;
185 subpass->view_mask = multiview_info->pViewMasks[i];
188 subpass->input_attachments = p;
192 subpass->input_attachments[j] = (struct v3dv_subpass_attachment) {
200 subpass->color_attachments = p;
204 subpass->color_attachments[j] = (struct v3dv_subpass_attachment) {
212 subpass->resolve_attachments = p;
216 subpass->resolve_attachments[j] = (struct v3dv_subpass_attachment) {
224 subpass->ds_attachment = (struct v3dv_subpass_attachment) {
230 * the clear might get lost. If a subpass has this then we can't emit
235 if (subpass->ds_attachment.attachment != VK_ATTACHMENT_UNUSED) {
237 &pass->attachments[subpass->ds_attachment.attachment];
241 subpass->do_depth_clear_with_draw = true;
244 subpass->do_stencil_clear_with_draw = true;
249 subpass->ds_attachment.attachment = VK_ATTACHMENT_UNUSED;
255 /* FIXME: handle subpass dependencies */
297 struct v3dv_subpass *subpass = &pass->subpasses[subpass_idx];
298 const uint32_t color_attachment_count = subpass->color_count;
302 uint32_t attachment_idx = subpass->color_attachments[i].attachment;