Lines Matching refs:pass
31 #define REPLACE_PRESENT_SRC(pass, atts, att_count, out_atts) \ argument
34 pass->present_src_attachments; \
36 _acquire_atts + pass->acquire_count; \
74 vn_render_pass_replace_present_src(struct vn_render_pass *pass, in vn_render_pass_replace_present_src() argument
78 REPLACE_PRESENT_SRC(pass, create_info->pAttachments, in vn_render_pass_replace_present_src()
83 vn_render_pass_replace_present_src2(struct vn_render_pass *pass, in vn_render_pass_replace_present_src2() argument
87 REPLACE_PRESENT_SRC(pass, create_info->pAttachments, in vn_render_pass_replace_present_src2()
92 vn_render_pass_setup_present_src_barriers(struct vn_render_pass *pass) in vn_render_pass_setup_present_src_barriers() argument
95 for (uint32_t i = 0; i < pass->present_src_count; i++) { in vn_render_pass_setup_present_src_barriers()
97 &pass->present_src_attachments[i]; in vn_render_pass_setup_present_src_barriers()
123 struct vn_render_pass *pass = vk_zalloc( in vn_render_pass_create() local
125 sizeof(*pass) + sizeof(pass->present_src_attachments[0]) * total_count, in vn_render_pass_create()
127 if (!pass) in vn_render_pass_create()
130 vn_object_base_init(&pass->base, VK_OBJECT_TYPE_RENDER_PASS, &dev->base); in vn_render_pass_create()
132 pass->acquire_count = acquire_count; in vn_render_pass_create()
133 pass->release_count = release_count; in vn_render_pass_create()
134 pass->present_src_count = total_count; in vn_render_pass_create()
136 return pass; in vn_render_pass_create()
156 struct vn_render_pass *pass = in vn_CreateRenderPass() local
158 if (!pass) in vn_CreateRenderPass()
162 if (pass->present_src_count) { in vn_CreateRenderPass()
167 vk_free(alloc, pass); in vn_CreateRenderPass()
171 vn_render_pass_replace_present_src(pass, pCreateInfo, temp_atts); in vn_CreateRenderPass()
172 vn_render_pass_setup_present_src_barriers(pass); in vn_CreateRenderPass()
179 VkRenderPass pass_handle = vn_render_pass_to_handle(pass); in vn_CreateRenderPass()
206 struct vn_render_pass *pass = in vn_CreateRenderPass2() local
208 if (!pass) in vn_CreateRenderPass2()
212 if (pass->present_src_count) { in vn_CreateRenderPass2()
217 vk_free(alloc, pass); in vn_CreateRenderPass2()
221 vn_render_pass_replace_present_src2(pass, pCreateInfo, temp_atts); in vn_CreateRenderPass2()
222 vn_render_pass_setup_present_src_barriers(pass); in vn_CreateRenderPass2()
229 VkRenderPass pass_handle = vn_render_pass_to_handle(pass); in vn_CreateRenderPass2()
247 struct vn_render_pass *pass = vn_render_pass_from_handle(renderPass); in vn_DestroyRenderPass() local
251 if (!pass) in vn_DestroyRenderPass()
256 vn_object_base_fini(&pass->base); in vn_DestroyRenderPass()
257 vk_free(alloc, pass); in vn_DestroyRenderPass()
266 struct vn_render_pass *pass = vn_render_pass_from_handle(renderPass); in vn_GetRenderAreaGranularity() local
268 if (!pass->granularity.width) { in vn_GetRenderAreaGranularity()
270 &pass->granularity); in vn_GetRenderAreaGranularity()
273 *pGranularity = pass->granularity; in vn_GetRenderAreaGranularity()