diff options
| author | QemmHD <stephenlethco2@gmail.com> | 2026-11-24 19:02:14 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-24 19:02:14 -0500 |
| commit | fec45f0a13df1c742e559db14828fe2623e3e400 (patch) | |
| tree | afc603e70635800b39f220da9ac5164f2405f4b4 /docs/d3d12_vulkan.md | |
| parent | 3943b04d53dfb66f1424a833f4eef6120f7d3112 (diff) | |
| parent | ddcffa634e606ce959c1276b26eb63fb8c8297d5 (diff) | |
Merge pull request #1099 from Moriz82/split/rt-stream-transfer-barrier
Merging.
**Why merged:** RT-STREAM-TRANSFER-BARRIER: a transfer-write → transfer-read/write barrier goes before every vkCmdCopyBuffer, so back-to-back streamed copies are ordered. moffington measured SyncVal at 10 errors on the base and 0 on the head. Plaaasma (4070 Ti), iFeyz (RX 9070 XT) and whoalin1 (gfx1035) passed it. LEONIDA_ORDER_BUFFER_COPIES=0 turns it off (documented in docs/d3d12_vulkan.md).
**Why it's good:** replay_*, vk_bc_zero_init, vk_queue* and d3d12_close_parity: 16/16 both plain and under validation. A negative control on the cumulative build checked that the test really catches a missing barrier: with the barrier on, `--expect-unordered` fails; with the env var at 0, the ordered check fails and `--expect-unordered` passes. It also passes on top of #1055's vulkan_replay.h change. It adds one barrier per buffer copy, a small sync-policy cost with an opt-out.
Tested on Windows 11 / RTX 4070 SUPER (NVIDIA 621.24), VS 2022 + Ninja RelWithDebInfo, Vulkan SDK 1.4.363.0. Merged alone onto main 0f98d193c, its ctests pass both plain and with LEONIDA_VK_VALIDATION=1. Cumulative with the rest of this batch on main 507029d1e: the repo-consistency set gives 578 passed / 5 skipped / 0 failed, compileall is clean, and full ctest is 317/318 with the usual 11 skips; the only failure is main's pre-existing d3d12_depth_resolve. All d3d12_* tests under validation: 119/120 with 0 VUIDs. The semantic suite has only the known environment-only failure. git merge-tree against current main 9c5e70661: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes.
AI-assisted (Claude Code, Claude Opus 5.5).
Diffstat (limited to 'docs/d3d12_vulkan.md')
| -rw-r--r-- | docs/d3d12_vulkan.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md index 149814c92..344e24b0e 100644 --- a/docs/d3d12_vulkan.md +++ b/docs/d3d12_vulkan.md | |||
| @@ -2707,6 +2707,9 @@ The trace will enumerate them. | |||
| 2707 | 2707 | ||
| 2708 | ### 4.3 Barriers and layouts | 2708 | ### 4.3 Barriers and layouts |
| 2709 | 2709 | ||
| 2710 | Plain buffer copies order earlier transfer writes on the same queue before reading or writing the next range. | ||
| 2711 | Set `LEONIDA_ORDER_BUFFER_COPIES=0` to omit this dependency when comparing replay behavior. | ||
| 2712 | |||
| 2710 | Track a current state/layout per subresource. D3D12 states are bitmasks; a combined state takes the union of the | 2713 | Track a current state/layout per subresource. D3D12 states are bitmasks; a combined state takes the union of the |
| 2711 | mapped stages/accesses, and if no single layout serves all uses, use `GENERAL` and log it. Legacy | 2714 | mapped stages/accesses, and if no single layout serves all uses, use `GENERAL` and log it. Legacy |
| 2712 | `D3D12_RESOURCE_STATE_*` maps to a (stage, access, layout) triple: | 2715 | `D3D12_RESOURCE_STATE_*` maps to a (stage, access, layout) triple: |