diff --git a/src/gallium/drivers/zink/zink_kopper.c b/src/gallium/drivers/zink/zink_kopper.c index 64b16756760..f0992e9efc2 100644 --- a/src/gallium/drivers/zink/zink_kopper.c +++ b/src/gallium/drivers/zink/zink_kopper.c @@ -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); }