• Home
  • Raw
  • Download

Lines Matching refs:pass

38 	struct radv_render_pass *pass;  in radv_CreateRenderPass()  local
45 size = sizeof(*pass); in radv_CreateRenderPass()
46 size += pCreateInfo->subpassCount * sizeof(pass->subpasses[0]); in radv_CreateRenderPass()
48 size += pCreateInfo->attachmentCount * sizeof(pass->attachments[0]); in radv_CreateRenderPass()
50 pass = vk_alloc2(&device->alloc, pAllocator, size, 8, in radv_CreateRenderPass()
52 if (pass == NULL) in radv_CreateRenderPass()
55 memset(pass, 0, size); in radv_CreateRenderPass()
56 pass->attachment_count = pCreateInfo->attachmentCount; in radv_CreateRenderPass()
57 pass->subpass_count = pCreateInfo->subpassCount; in radv_CreateRenderPass()
58 pass->attachments = (void *) pass + attachments_offset; in radv_CreateRenderPass()
71 struct radv_render_pass_attachment *att = &pass->attachments[i]; in radv_CreateRenderPass()
95 pass->subpass_attachments = in radv_CreateRenderPass()
99 if (pass->subpass_attachments == NULL) { in radv_CreateRenderPass()
100 vk_free2(&device->alloc, pAllocator, pass); in radv_CreateRenderPass()
104 pass->subpass_attachments = NULL; in radv_CreateRenderPass()
106 p = pass->subpass_attachments; in radv_CreateRenderPass()
109 struct radv_subpass *subpass = &pass->subpasses[i]; in radv_CreateRenderPass()
124 pass->attachments[desc->pInputAttachments[j].attachment].view_mask |= subpass->view_mask; in radv_CreateRenderPass()
136 pass->attachments[desc->pColorAttachments[j].attachment].view_mask |= subpass->view_mask; in radv_CreateRenderPass()
151 pass->attachments[desc->pResolveAttachments[j].attachment].view_mask |= subpass->view_mask; in radv_CreateRenderPass()
160 pass->attachments[desc->pDepthStencilAttachment->attachment].view_mask |= subpass->view_mask; in radv_CreateRenderPass()
169 pass->end_barrier.src_stage_mask = pCreateInfo->pDependencies[i].srcStageMask; in radv_CreateRenderPass()
170 pass->end_barrier.src_access_mask = pCreateInfo->pDependencies[i].srcAccessMask; in radv_CreateRenderPass()
171 pass->end_barrier.dst_access_mask = pCreateInfo->pDependencies[i].dstAccessMask; in radv_CreateRenderPass()
173 pass->subpasses[dst].start_barrier.src_stage_mask = pCreateInfo->pDependencies[i].srcStageMask; in radv_CreateRenderPass()
174 pass->subpasses[dst].start_barrier.src_access_mask = pCreateInfo->pDependencies[i].srcAccessMask; in radv_CreateRenderPass()
175 pass->subpasses[dst].start_barrier.dst_access_mask = pCreateInfo->pDependencies[i].dstAccessMask; in radv_CreateRenderPass()
179 *pRenderPass = radv_render_pass_to_handle(pass); in radv_CreateRenderPass()
190 RADV_FROM_HANDLE(radv_render_pass, pass, _pass); in radv_DestroyRenderPass()
194 vk_free2(&device->alloc, pAllocator, pass->subpass_attachments); in radv_DestroyRenderPass()
195 vk_free2(&device->alloc, pAllocator, pass); in radv_DestroyRenderPass()