mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 16:38:09 +02:00
zink: drop dt checks for mutable format init
these are no longer applicable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23514>
This commit is contained in:
parent
9e83723a21
commit
0c17eadac0
2 changed files with 4 additions and 4 deletions
|
|
@ -418,9 +418,9 @@ zink_blit(struct pipe_context *pctx,
|
|||
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;
|
||||
|
|
|
|||
|
|
@ -1771,7 +1771,7 @@ create_image_surface(struct zink_context *ctx, const struct pipe_image_view *vie
|
|||
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);
|
||||
|
|
@ -2035,7 +2035,7 @@ zink_set_sampler_views(struct pipe_context *pctx,
|
|||
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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue