mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 04:10:09 +01:00
zink: add buffer barriers for resource_copy_region
Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9147>
This commit is contained in:
parent
034657bf6c
commit
46a04672af
1 changed files with 2 additions and 0 deletions
|
|
@ -1539,6 +1539,8 @@ zink_resource_copy_region(struct pipe_context *pctx,
|
|||
zink_batch_reference_resource_rw(batch, src, false);
|
||||
zink_batch_reference_resource_rw(batch, dst, true);
|
||||
util_range_add(&dst->base, &dst->valid_buffer_range, dstx, dstx + src_box->width);
|
||||
zink_resource_buffer_barrier(batch, src, VK_ACCESS_TRANSFER_READ_BIT, 0);
|
||||
zink_resource_buffer_barrier(batch, dst, VK_ACCESS_TRANSFER_WRITE_BIT, 0);
|
||||
vkCmdCopyBuffer(batch->cmdbuf, src->buffer, dst->buffer, 1, ®ion);
|
||||
} else
|
||||
debug_printf("zink: TODO resource copy\n");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue