From: Erik Faye-Lund Date: Tue, 26 Mar 2019 20:05:17 +0000 (+0100) Subject: zink: reference blit/copy-region resources X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=806f040bb3fdbb77e2bf987e9d8a0d9b049bef38;p=mesa.git zink: reference blit/copy-region resources Acked-by: Jordan Justen --- diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c index 6da1bc61296..c868e7c98d6 100644 --- a/src/gallium/drivers/zink/zink_context.c +++ b/src/gallium/drivers/zink/zink_context.c @@ -1032,6 +1032,9 @@ zink_blit(struct pipe_context *pctx, if (!cmdbuf) return; + zink_cmdbuf_reference_resoure(cmdbuf, src); + zink_cmdbuf_reference_resoure(cmdbuf, dst); + if (is_resolve) { VkImageResolve region = {}; @@ -1165,6 +1168,9 @@ zink_resource_copy_region(struct pipe_context *pctx, if (!cmdbuf) return; + zink_cmdbuf_reference_resoure(cmdbuf, src); + zink_cmdbuf_reference_resoure(cmdbuf, dst); + vkCmdCopyImage(cmdbuf->cmdbuf, src->image, src->layout, dst->image, dst->layout, 1, ®ion);