mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
zink: unset image layout when killing swapchain
Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16038>
This commit is contained in:
parent
5cb9e5db72
commit
a2c9cc7200
1 changed files with 1 additions and 0 deletions
|
|
@ -496,6 +496,7 @@ kill_swapchain(struct zink_context *ctx, struct zink_resource *res)
|
|||
zink_batch_reference_resource(&ctx->batch, res);
|
||||
struct pipe_resource *pres = screen->base.resource_create(&screen->base, &res->base.b);
|
||||
zink_resource_object_reference(screen, &res->obj, zink_resource(pres)->obj);
|
||||
res->layout = VK_IMAGE_LAYOUT_UNDEFINED;
|
||||
pipe_resource_reference(&pres, NULL);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue