zink: track used resources

Acked-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
Erik Faye-Lund 2019-06-12 17:43:03 +02:00
parent 5a9f235ac2
commit 819f9fd2f2
1 changed files with 3 additions and 0 deletions

View File

@ -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, &copyRegion);
else