diff options
| author | Luis Baker <57847961+luisbaker@users.noreply.github.com> | 2026-11-21 23:40:45 +0100 |
|---|---|---|
| committer | Luis Baker <57847961+luisbaker@users.noreply.github.com> | 2026-11-21 23:42:05 +0100 |
| commit | 44a94f35ca53fd5621fd7ce7cf2a72b913b4fd7b (patch) | |
| tree | 8b874b17a113792540767cec23edfcccef53556d /runtime/src/tls_host.cpp | |
| parent | 83d0637267da403735616991b42eb2b8e9e1443a (diff) | |
Runtime: widen enhanced-barrier stages so every access has a stage that can perform it
D3D12 lets an access be named with a sync scope whose Vulkan stages cannot perform it:
SYNC_ALL_SHADING with ACCESS_VERTEX_BUFFER is valid D3D12, but VERTEX_ATTRIBUTE_READ needs
VERTEX_ATTRIBUTE_INPUT. Vulkan rejects such barriers (docs/d3d12_vulkan.md listed it as a known gap).
vulkan_barrier_scope maps each side of a global, buffer or texture barrier and adds the narrowest
stage that supports any access left without one (the synchronization2 "supported access types"
table). The access is never dropped, so the dependency still covers everything the application
named. CLEAR only writes, and ALL_GRAPHICS holds no transfer stage, so transfer reads get ALL_TRANSFER.
vk_command_replay_test part D records all 360 D3D12 sync/access pairs as global, buffer and texture
barriers: 462 validation errors before, 0 after, on Intel(R) Graphics. d3d12_state_map_test checks
that stages only grow, accesses never change, and pairs Vulkan already accepts are left alone.
AI-assisted (Claude Code).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/tls_host.cpp')
0 files changed, 0 insertions, 0 deletions