From: Erik Faye-Lund Date: Wed, 12 Jun 2019 15:43:03 +0000 (+0200) Subject: zink: track used resources X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=819f9fd2f2d75af6467127fcea71ac9c3289a640;p=mesa.git zink: track used resources Acked-by: Jordan Justen --- 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