The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

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.

authored by

bjorn and committed by
Jakob Bornecrantz
2d954d84 e5f6045b

+1 -1
+1 -1
src/xrt/compositor/render/render_resources.c
··· 377 377 vk, // 378 378 cmd, // 379 379 dst, // 380 - 0, // 380 + VK_ACCESS_TRANSFER_WRITE_BIT, // 381 381 VK_ACCESS_SHADER_READ_BIT, // 382 382 VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, // 383 383 VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL, //