From 819f9fd2f2d75af6467127fcea71ac9c3289a640 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Wed, 12 Jun 2019 17:43:03 +0200 Subject: [PATCH] zink: track used resources Acked-by: Jordan Justen --- src/gallium/drivers/zink/zink_resource.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c index 7f5993cc4c2..24dc051513d 100644 --- a/src/gallium/drivers/zink/zink_resource.c +++ b/src/gallium/drivers/zink/zink_resource.c @@ -368,6 +368,9 @@ zink_transfer_copy_bufimage(struct zink_context *ctx, copyRegion.imageExtent.width = trans->base.box.width; copyRegion.imageExtent.height = trans->base.box.height; + zink_cmdbuf_reference_resoure(cmdbuf, res); + zink_cmdbuf_reference_resoure(cmdbuf, staging_res); + if (buf2img) vkCmdCopyBufferToImage(cmdbuf->cmdbuf, staging_res->buffer, res->image, res->layout, 1, ©Region); else -- 2.30.2