zink_select_draw_vbo(ctx);
}
zink_blit_begin(ctx, ZINK_BLIT_SAVE_FB | ZINK_BLIT_SAVE_FS | ZINK_BLIT_SAVE_TEXTURES);
- if (!zink_is_swapchain(src) && zink_format_needs_mutable(info->src.format, info->src.resource->format))
+ if (zink_format_needs_mutable(info->src.format, info->src.resource->format))
zink_resource_object_init_mutable(ctx, src);
- if (!zink_is_swapchain(dst) && zink_format_needs_mutable(info->dst.format, info->dst.resource->format))
+ if (zink_format_needs_mutable(info->dst.format, info->dst.resource->format))
zink_resource_object_init_mutable(ctx, dst);
zink_blit_barriers(ctx, src, dst, whole);
ctx->blitting = true;
break;
default: break;
}
- if (!res->obj->dt && zink_format_needs_mutable(view->resource->format, view->format))
+ if (zink_format_needs_mutable(view->resource->format, view->format))
/* mutable not set by default */
zink_resource_object_init_mutable(ctx, res);
VkImageViewCreateInfo ivci = create_ivci(screen, res, &tmpl, target);
if (!ctx->unordered_blitting)
res->obj->unordered_read = false;
} else {
- if (!res->obj->dt && zink_format_needs_mutable(res->base.b.format, b->image_view->base.format))
+ if (zink_format_needs_mutable(res->base.b.format, b->image_view->base.format))
/* mutable not set by default */
zink_resource_object_init_mutable(ctx, res);
if (res->obj != b->image_view->obj) {