mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
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:
parent
e5f6045b57
commit
2d954d84af
|
@ -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, //
|
||||
|
|
Loading…
Reference in a new issue