c/render: Fix invalid synchronization when uploading images;

`queue_upload_for_first_level_and_layer` uploads pixels to an image.

It performs a layout transition, does the copy, and does another layout
transition.  There is an execution dependency between the the copy and
the second layout transition, but the memory dependency was missing.

Caught/tested via enabling synchronization validation.
This commit is contained in:
bjorn 2022-05-26 10:17:23 -07:00 committed by Jakob Bornecrantz
parent e5f6045b57
commit 2d954d84af

View file

@ -377,7 +377,7 @@ queue_upload_for_first_level_and_layer(
vk, //
cmd, //
dst, //
0, //
VK_ACCESS_TRANSFER_WRITE_BIT, //
VK_ACCESS_SHADER_READ_BIT, //
VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, //
VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL, //