From 806f040bb3fdbb77e2bf987e9d8a0d9b049bef38 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Tue, 26 Mar 2019 21:05:17 +0100 Subject: [PATCH] zink: reference blit/copy-region resources Acked-by: Jordan Justen --- src/gallium/drivers/zink/zink_context.c | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- 2.30.2