aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2019-03-26 21:05:17 +0100
committerErik Faye-Lund <[email protected]>2019-10-28 08:51:44 +0000
commit806f040bb3fdbb77e2bf987e9d8a0d9b049bef38 (patch)
tree028072cbe50410e5fc38c3c768a556a152b2073a
parentb89eb298fffa6eaee414fd75e07cca4f7445ba3e (diff)
zink: reference blit/copy-region resources
Acked-by: Jordan Justen <[email protected]>
-rw-r--r--src/gallium/drivers/zink/zink_context.c6
1 files changed, 6 insertions, 0 deletions
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, &region);