Module: Mesa Branch: main Commit: a2c9cc7200697f9f9dd5f226a7d193ac9e9f6f70 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a2c9cc7200697f9f9dd5f226a7d193ac9e9f6f70
Author: Mike Blumenkrantz <[email protected]> Date: Tue Apr 19 10:48:33 2022 -0400 zink: unset image layout when killing swapchain Reviewed-by: Adam Jackson <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16038> --- src/gallium/drivers/zink/zink_kopper.c | 1 + 1 file changed, 1 insertion(+) 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); }
