Lines Matching refs:att

182    const VkAttachmentDescription2* att = info->pAttachments;
213 if (att[a].initialLayout != subpass->pInputAttachments[j].layout &&
223 if (att[a].initialLayout != subpass->pColorAttachments[j].layout &&
232 if (att[a].initialLayout != subpass->pDepthStencilAttachment->layout &&
243 if (att[a].initialLayout != subpass->pResolveAttachments[j].layout &&
256 if (att[a].initialLayout != subpass->pDepthStencilAttachment->layout &&
289 if (att[a].finalLayout != subpass->pInputAttachments[j].layout &&
299 if (att[a].finalLayout != subpass->pColorAttachments[j].layout &&
308 if (att[a].finalLayout != subpass->pDepthStencilAttachment->layout &&
319 if (att[a].finalLayout != subpass->pResolveAttachments[j].layout &&
332 if (att[a].finalLayout != subpass->pDepthStencilAttachment->layout &&
360 if (layout_undefined(att[i].initialLayout)) {
361 if (vk_format_is_depth_or_stencil(att[i].format)) {
487 struct tu_render_pass_attachment *att = &pass->attachments[i];
488 bool cpp1 = (att->cpp == 1);
489 if (att->gmem_offset >= 0) {
490 cpp_total += att->cpp;
493 if (att->format == VK_FORMAT_D32_SFLOAT_S8_UINT) {
494 cpp1 = (att->samples == 1);
495 cpp_total += att->samples;
527 struct tu_render_pass_attachment *att = &pass->attachments[i];
528 if (att->gmem_offset < 0)
531 att->gmem_offset = offset;
533 uint32_t align = MAX2(1, att->cpp >> block_align_shift);
534 uint32_t nblocks = MAX2((gmem_blocks * att->cpp / cpp_total) & ~(align - 1), align);
540 cpp_total -= att->cpp;
542 pixels = MIN2(pixels, nblocks * gmem_align / att->cpp);
545 if (att->format == VK_FORMAT_D32_SFLOAT_S8_UINT) {
546 att->gmem_offset_stencil = offset;
549 uint32_t nblocks = gmem_blocks * att->samples / cpp_total;
554 cpp_total -= att->samples;
556 pixels = MIN2(pixels, nblocks * gmem_align / att->samples);
566 attachment_set_ops(struct tu_render_pass_attachment *att,
573 att->clear_mask =
575 att->load = (load_op == VK_ATTACHMENT_LOAD_OP_LOAD);
576 att->store = (store_op == VK_ATTACHMENT_STORE_OP_STORE);
582 switch (att->format) {
584 if (att->clear_mask)
585 att->clear_mask = VK_IMAGE_ASPECT_DEPTH_BIT;
587 att->clear_mask |= VK_IMAGE_ASPECT_STENCIL_BIT;
589 att->load = true;
591 att->store = true;
594 att->clear_mask = stencil_clear ? VK_IMAGE_ASPECT_COLOR_BIT : 0;
595 att->load = stencil_load;
596 att->store = stencil_store;
599 if (att->clear_mask)
600 att->clear_mask = VK_IMAGE_ASPECT_DEPTH_BIT;
602 att->clear_mask |= VK_IMAGE_ASPECT_STENCIL_BIT;
604 att->load_stencil = true;
606 att->store_stencil = true;
652 struct tu_render_pass_attachment *att = &pass->attachments[i];
654 att->format = pCreateInfo->pAttachments[i].format;
655 att->samples = pCreateInfo->pAttachments[i].samples;
657 * att->samples will be used as the cpp for the stencil image
659 if (att->format == VK_FORMAT_D32_SFLOAT_S8_UINT)
660 att->cpp = 4 * att->samples;
662 att->cpp = vk_format_get_blocksize(att->format) * att->samples;
663 att->gmem_offset = -1;
665 attachment_set_ops(att,
780 struct tu_render_pass_attachment *att = &pass->attachments[i];
781 if (att->gmem_offset < 0) {
782 att->clear_mask = 0;
783 att->load = false;