Lines Matching defs:layout
66 if (pipeline->layout)
67 vk_pipeline_layout_unref(&device->vk, &pipeline->layout->vk);
133 /* calculate the variable's offset in the layout */
136 get_binding_layout(pipeline->layout, var->data.descriptor_set, var->data.binding);
138 if (pipeline->layout->vk.set_layouts[s])
139 value += get_set_layout(pipeline->layout, s)->stage[nir->info.stage].image_count;
167 /* calculate the variable's offset in the layout */
170 get_binding_layout(pipeline->layout, var->data.descriptor_set, var->data.binding);
172 if (pipeline->layout->vk.set_layouts[s])
173 value += get_set_layout(pipeline->layout, s)->stage[nir->info.stage].shader_buffer_count;
472 lvp_lower_pipeline_layout(pipeline->device, pipeline->layout, nir);
704 if (!dst->layout) {
705 /* no layout created yet: copy onto ralloc ctx allocation for auto-free */
706 dst->layout = ralloc(dst->mem_ctx, struct lvp_pipeline_layout);
707 memcpy(dst->layout, src, sizeof(struct lvp_pipeline_layout));
712 const struct lvp_pipeline_layout *smaller = dst->layout->vk.set_count < src->vk.set_count ? dst->layout : src;
713 const struct lvp_pipeline_layout *bigger = smaller == dst->layout ? src : dst->layout;
730 if (!dst->layout->vk.set_layouts[i])
731 dst->layout->vk.set_layouts[i] = src->vk.set_layouts[i];
733 dst->layout->vk.set_count = MAX2(dst->layout->vk.set_count,
735 dst->layout->push_constant_size += src->push_constant_size;
736 dst->layout->push_constant_stages |= src->push_constant_stages;
765 struct lvp_pipeline_layout *layout = lvp_pipeline_layout_from_handle(pCreateInfo->layout);
766 if (layout)
767 vk_pipeline_layout_ref(&layout->vk);
769 if (!layout || !(layout->vk.create_flags & VK_PIPELINE_LAYOUT_CREATE_INDEPENDENT_SETS_BIT_EXT))
771 pipeline->layout = layout;
774 /* this has all the layout stages: directly reuse */
775 pipeline->layout = layout;
777 /* this is a partial: copy for later merging to avoid modifying another layout */
778 merge_layouts(pipeline, layout);
798 if (!layout || (layout->vk.create_flags & VK_PIPELINE_LAYOUT_CREATE_INDEPENDENT_SETS_BIT_EXT))
799 merge_layouts(pipeline, p->layout);
999 pipeline->layout = lvp_pipeline_layout_from_handle(pCreateInfo->layout);
1000 vk_pipeline_layout_ref(&pipeline->layout->vk);