diff options
| author | ismailchaka1 <chakankar111@gmail.com> | 2026-11-22 03:02:26 +0000 |
|---|---|---|
| committer | ismailchaka1 <chakankar111@gmail.com> | 2026-11-22 03:02:26 +0000 |
| commit | 5ec780c3e7c279310c667a9dc05ba54e6f1284a8 (patch) | |
| tree | 50f209e920d83bccccfa1790cff5530603d76960 /runtime/test/gameinput_test.cpp | |
| parent | 67204bf8c0471335d9046890288b33e8d5e2875b (diff) | |
Runtime: order back-to-back copies into an image already in the transfer layout
D3D12 orders consecutive copies and resolves on a resource that stays in
COPY_DEST or COPY_SOURCE without a barrier from the application; Vulkan
needs one. detail::copy_layout emitted a barrier only when the layout
changed, so a second copy into an image the first had already left in
TRANSFER_DST_OPTIMAL was unordered with it: synchronization validation
reported 10 WRITE_AFTER_WRITE hazards in d3d12_vulkan_device_test
(@guimsolutions's finding in #634).
When a piece needs no transition, copy_layout now adds a memory barrier
from earlier transfer writes to the new transfer access (transfer stage
only). Copies and resolves both go through it.
With VK_LAYER_VALIDATE_SYNC=1: d3d12_vulkan_device_test goes from 10
hazards (exit 1) to 0; the descriptor, method-variants, sampler2 and
replay tests report none either.
Diffstat (limited to 'runtime/test/gameinput_test.cpp')
0 files changed, 0 insertions, 0 deletions