mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-17 00:30:19 +01:00
zink: reference blit/copy-region resources
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
b89eb298ff
commit
806f040bb3
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue