docs/d3d12_vulkan.md: drop stale "not implemented" status for buffer SRVs, streams, mesh PSOs and WriteBufferImmediate (DOC-D3D12-VULKAN-STALE-STATUS) #2910
No reviewers
Labels
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!2910
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2910"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@c0pperlane on GitHub · 2026-12-01 17:30 UTC · original
c0pperlane:doc-d3d12-vulkan-stale-status→main· +18 −18 · 2 files · 2 commits · merged 2026-12-01 21:45 UTCClaimed in the coordination issue as: DOC-D3D12-VULKAN-STALE-STATUS (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7173484529)
What and why
docs/d3d12_vulkan.mdstill described several implemented paths as missing:CreatePipelineStatestreams and mesh shaders were not implemented. The device writes buffer SRV V#s (write_buffer_srv,CreateShaderResourceViewind3d12_vulkan_device.cpp), parses streams into compute, graphics and mesh PSOs (D3D-29), and reportsMeshShaderTier1 where the GPU hasVK_EXT_mesh_shader. Tessellation, stream output and amplification shaders are still refused, and the paragraph now says that. The unreadable old number #1712 is dropped.WriteBufferImmediatewas refused "while no buffer has a GPU virtual address". Buffers get their console VA in the arena (binding.va,GetGPUVirtualAddress), andd3d12_vulkan_device_testwrites through a placed buffer's VA. The text now says a write is refused (unresolved_resource) only when no buffer holds its 4 bytes. The same stale comment ind3d12_vulkan_device_test.cppnow gives the real reason VA 0x10000 is unresolved: it is belowkArenaReserved.write_buffer_srvwrites raw, structured and typed buffer SRV V#s forCreateShaderResourceView, andCreateConstantBufferViewwrites a CBV V# in the console's 16-byte-row form, both checked ind3d12_compute_test.replay()bullet contradicted the D3D-399 paragraph above it (replay_query_predication_testcase 14), and the mesh-statistics bullet appeared twice. Both are removed.No lines edited by #381 are touched (
git merge-treeagainst #381 gives the same three doc conflict hunks #381 already has with main, no new one).Tested
python -I tests/test_docs_*.py(all 13 files): OK.python -I scripts/check_no_game_data.py docs/d3d12_vulkan.md runtime/test/d3d12_vulkan_device_test.cpp: clean.GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)@KelboLive on GitHub · 2026-12-01 17:41 UTC · original · reviewed
Checked all four status fixes against the code and they hold: buffer SRV V#s (
write_buffer_srv/ bufferCreateShaderResourceView,d3d12_vulkan_device.cpp:14107-14184,:14218; tests atd3d12_compute_test.cpp:886-960), CBVs including the 16-byte-row console form andLEONIDA_CBV_RAW(:14045-14088),CreatePipelineStatestreams plus mesh PSOs andMeshShaderTier(:7919,:8236,:15646), andWriteBufferImmediateresolving by VA with anunresolved_resourcerefusal (vulkan_replay.h:3771-3775; tests at6389-6397,7265-7283). The hull/domain/stream-output/AS refusals match:8229/:8280, and deleting the 4.6 single-list bullet is right — I reverted the pool guard atvulkan_replay.h:5350and case 14 fails four assertions, so that bullet was indeed false.All 13
tests/test_docs_*.pypass,check_no_game_datais clean, andmerge-treewith current main is clean despite the doc growing ~1,400 lines since the base.One contradiction is left: the M4 row (
docs/d3d12_vulkan.md:4329) still lists "buffer SRVs and CBVs as V#s" under "Still open for M4", which now contradicts the new §3.2 text. Please drop that clause in this PR.Minor: #381 is closed, so the "no lines edited by #381" note in the body is stale.
The C++ change is a comment only; the only execution I could do here was the CPU
replay_query_predication_test(exit 0), which is what the deleted bullet was about. No other open PR edits these hunks.@merzleckeier on GitHub · 2026-12-01 18:05 UTC · original
Independent runtime checks for the Vulkan status updates at
b79c86f7+27613ab6b. The three documentation suites passed 28 checks on each tree. I also built the Win64 test binaries and ran them under Wine 11.22 on Radeon RADV (Mesa 26.3.1) and GeForce RTX 4070 SUPER (620.73.04).d3d12_vulkan_device,d3d12_computeandreplay_query_predicationpassed on both. This covers the placed-bufferWriteBufferImmediatereadback and unresolved case, raw/structured/typed buffer SRV readback and CBV readback, and the single-list replay cases. The NVIDIA mesh test passed the stream PSO path and matched all 4,096 pixels.One existing RADV discrepancy surfaced in the mesh suite. The original test fails the same mixed-statistics assertion on main and on this PR. A print-only rerun showed 2 geometry-shader invocations in both the mixed and vertex-only queries, 0 in mesh-only, and 0 geometry primitives in all three. NVIDIA reports 0 geometry invocations in all three. The RADV run passed the preceding indirect mesh pixel comparison and ended at the statistics assertion. The PR changes documentation and a test comment.
MEASURED with synthetic tests. AI-assisted (Codex).
@MoonEyes on GitHub · 2026-12-01 21:44 UTC · original
Merging. Head
b79c86f7emerges cleanly withmain1a52f5b63and does not force a rebase of #2566. Correction of my merge note: I ran the docs suites on main plus the PR earlier (13 docs test files green) and a read-only code review found no blocking issue; a third party (merzleckeier) posted independent runtime checks on this head. I did not rebuild runtime/ or run ctest: the only C++ change is a comment. Merged by MoonEyes.AI-assisted (Claude Code).