• Home
  • Raw
  • Download

Lines Matching refs:pass

45                                         struct v3dv_render_pass *pass)  in pass_find_subpass_range_for_attachments()  argument
47 for (uint32_t i = 0; i < pass->attachment_count; i++) { in pass_find_subpass_range_for_attachments()
48 pass->attachments[i].first_subpass = pass->subpass_count - 1; in pass_find_subpass_range_for_attachments()
49 pass->attachments[i].last_subpass = 0; in pass_find_subpass_range_for_attachments()
50 if (pass->multiview_enabled) { in pass_find_subpass_range_for_attachments()
52 pass->attachments[i].views[j].first_subpass = pass->subpass_count - 1; in pass_find_subpass_range_for_attachments()
53 pass->attachments[i].views[j].last_subpass = 0; in pass_find_subpass_range_for_attachments()
58 for (uint32_t i = 0; i < pass->subpass_count; i++) { in pass_find_subpass_range_for_attachments()
59 const struct v3dv_subpass *subpass = &pass->subpasses[i]; in pass_find_subpass_range_for_attachments()
67 &pass->attachments[attachment_idx]; in pass_find_subpass_range_for_attachments()
91 if (i < pass->attachments[ds_attachment_idx].first_subpass) in pass_find_subpass_range_for_attachments()
92 pass->attachments[ds_attachment_idx].first_subpass = i; in pass_find_subpass_range_for_attachments()
93 if (i > pass->attachments[ds_attachment_idx].last_subpass) in pass_find_subpass_range_for_attachments()
94 pass->attachments[ds_attachment_idx].last_subpass = i; in pass_find_subpass_range_for_attachments()
97 set_try_tlb_resolve(device, &pass->attachments[ds_attachment_idx]); in pass_find_subpass_range_for_attachments()
104 if (i < pass->attachments[input_attachment_idx].first_subpass) in pass_find_subpass_range_for_attachments()
105 pass->attachments[input_attachment_idx].first_subpass = i; in pass_find_subpass_range_for_attachments()
106 if (i > pass->attachments[input_attachment_idx].last_subpass) in pass_find_subpass_range_for_attachments()
107 pass->attachments[input_attachment_idx].last_subpass = i; in pass_find_subpass_range_for_attachments()
115 if (i < pass->attachments[attachment_idx].first_subpass) in pass_find_subpass_range_for_attachments()
116 pass->attachments[attachment_idx].first_subpass = i; in pass_find_subpass_range_for_attachments()
117 if (i > pass->attachments[attachment_idx].last_subpass) in pass_find_subpass_range_for_attachments()
118 pass->attachments[attachment_idx].last_subpass = i; in pass_find_subpass_range_for_attachments()
132 struct v3dv_render_pass *pass; in v3dv_CreateRenderPass2() local
146 size_t size = sizeof(*pass); in v3dv_CreateRenderPass2()
148 size += pCreateInfo->subpassCount * sizeof(pass->subpasses[0]); in v3dv_CreateRenderPass2()
150 size += pCreateInfo->attachmentCount * sizeof(pass->attachments[0]); in v3dv_CreateRenderPass2()
152 pass = vk_object_zalloc(&device->vk, pAllocator, size, in v3dv_CreateRenderPass2()
154 if (pass == NULL) in v3dv_CreateRenderPass2()
157 pass->multiview_enabled = multiview_enabled; in v3dv_CreateRenderPass2()
158 pass->attachment_count = pCreateInfo->attachmentCount; in v3dv_CreateRenderPass2()
159 pass->attachments = (void *) pass + attachments_offset; in v3dv_CreateRenderPass2()
160 pass->subpass_count = pCreateInfo->subpassCount; in v3dv_CreateRenderPass2()
161 pass->subpasses = (void *) pass + subpasses_offset; in v3dv_CreateRenderPass2()
164 pass->attachments[i].desc = pCreateInfo->pAttachments[i]; in v3dv_CreateRenderPass2()
175 pass->subpass_attachments = in v3dv_CreateRenderPass2()
178 if (pass->subpass_attachments == NULL) { in v3dv_CreateRenderPass2()
179 vk_object_free(&device->vk, pAllocator, pass); in v3dv_CreateRenderPass2()
183 pass->subpass_attachments = NULL; in v3dv_CreateRenderPass2()
186 struct v3dv_subpass_attachment *p = pass->subpass_attachments; in v3dv_CreateRenderPass2()
189 struct v3dv_subpass *subpass = &pass->subpasses[i]; in v3dv_CreateRenderPass2()
245 &pass->attachments[subpass->ds_attachment.attachment]; in v3dv_CreateRenderPass2()
290 pass_find_subpass_range_for_attachments(device, pass); in v3dv_CreateRenderPass2()
294 *pRenderPass = v3dv_render_pass_to_handle(pass); in v3dv_CreateRenderPass2()
305 V3DV_FROM_HANDLE(v3dv_render_pass, pass, _pass); in v3dv_DestroyRenderPass()
310 vk_free2(&device->vk.alloc, pAllocator, pass->subpass_attachments); in v3dv_DestroyRenderPass()
311 vk_object_free(&device->vk, pAllocator, pass); in v3dv_DestroyRenderPass()
316 struct v3dv_render_pass *pass, in subpass_get_granularity() argument
321 assert(subpass_idx < pass->subpass_count); in subpass_get_granularity()
322 struct v3dv_subpass *subpass = &pass->subpasses[subpass_idx]; in subpass_get_granularity()
332 &pass->attachments[attachment_idx].desc; in subpass_get_granularity()
359 V3DV_FROM_HANDLE(v3dv_render_pass, pass, renderPass); in v3dv_GetRenderAreaGranularity()
367 for (uint32_t i = 0; i < pass->subpass_count; i++) { in v3dv_GetRenderAreaGranularity()
369 subpass_get_granularity(device, pass, i, &sg); in v3dv_GetRenderAreaGranularity()
400 struct v3dv_render_pass *pass, in v3dv_subpass_area_is_tile_aligned() argument
403 assert(subpass_idx < pass->subpass_count); in v3dv_subpass_area_is_tile_aligned()
406 subpass_get_granularity(device, pass, subpass_idx, &granularity); in v3dv_subpass_area_is_tile_aligned()