Lines Matching defs:layout
1456 VkImageLayout layout = get_layout_for_binding(ctx, res, ZINK_DESCRIPTOR_TYPE_SAMPLER_VIEW, is_compute);
1459 if (ctx->di.textures[PIPE_SHADER_COMPUTE][slot].imageLayout != layout) {
1467 if (ctx->di.textures[i][slot].imageLayout != layout) {
1498 VkImageLayout layout = res->bind_count[is_compute] ? zink_descriptor_util_image_layout_eval(ctx, res, is_compute) : VK_IMAGE_LAYOUT_UNDEFINED;
1500 if (res->bind_count[is_compute] && layout && res->layout != layout)
1502 if (res->bind_count[!is_compute] && other_layout && (layout != other_layout || res->layout != other_layout))
1554 /* if this is the first image bind and there are sampler binds, the image's sampler layout
2354 ctx->dynamic_fb.attachments[PIPE_MAX_COLOR_BUFS].imageLayout = zink_resource(surf->base.texture)->layout;
2356 ctx->dynamic_fb.attachments[PIPE_MAX_COLOR_BUFS+1].imageLayout = zink_resource(surf->base.texture)->layout;
2420 /* only set layout, skip rest of update */
2451 VkImageLayout layout;
2453 layout = zink_render_pass_attachment_get_barrier_info(&ctx->gfx_pipeline_state.render_pass->state.rts[i],
2461 layout = zink_render_pass_attachment_get_barrier_info(&rt, i < ctx->fb_state.nr_cbufs, &pipeline, &access);
2463 zink_resource_image_barrier(ctx, res, layout, access, pipeline);
2993 access_src_flags(VkImageLayout layout)
2995 switch (layout) {
3024 unreachable("unexpected layout");
3029 access_dst_flags(VkImageLayout layout)
3031 switch (layout) {
3059 unreachable("unexpected layout");
3064 pipeline_dst_stage(VkImageLayout layout)
3066 switch (layout) {
3125 return res->layout != new_layout || (res->obj->access_stage & pipeline) != pipeline ||
3147 res->obj->access ? res->obj->access : access_src_flags(res->layout),
3149 res->layout,
3214 resource_check_defer_image_barrier(struct zink_context *ctx, struct zink_resource *res, VkImageLayout layout, VkPipelineStageFlags pipeline)
3222 /* if no layout change is needed between gfx and compute, do nothing */
3227 /* if the layout is the same between gfx and compute, do nothing */
3228 if (layout == zink_descriptor_util_image_layout_eval(ctx, res, !is_compute))
3231 /* queue a layout change if a layout change will be needed */
3234 /* also queue a layout change if this is a non-shader layout */
3249 /* only barrier if we're changing layout or doing something besides read -> read */
3277 res->layout = new_layout;
3350 /* only barrier if we're changing layout or doing something besides read -> read */
3368 zink_resource_needs_barrier(struct zink_resource *res, VkImageLayout layout, VkAccessFlags flags, VkPipelineStageFlags pipeline)
3372 return zink_resource_image_needs_barrier(res, layout, flags, pipeline);
4103 VKCTX(CmdCopyBufferToImage)(cmdbuf, buf->obj->buffer, img->obj->image, img->layout, 1, ®ion);
4105 VKCTX(CmdCopyImageToBuffer)(cmdbuf, img->obj->image, img->layout, buf->obj->buffer, 1, ®ion);
4211 VKCTX(CmdCopyImage)(cmdbuf, src->obj->image, src->layout,
4212 dst->obj->image, dst->layout,