Repository navigation
docs/d3d12_vulkan.md: drop stale "not implemented" status for buffer SRVs, streams, mesh PSOs and WriteBufferImmediate (DOC-D3D12-VULKAN-STALE-STATUS) - #2910
Conversation
…SRVs, streams, mesh PSOs and WriteBufferImmediate (DOC-D3D12-VULKAN-STALE-STATUS) The status paragraph said buffer SRVs, CreatePipelineState streams and mesh shaders were missing; the device writes buffer V#s, parses streams and reports MeshShaderTier 1 where the GPU has VK_EXT_mesh_shader. WriteBufferImmediate was described as refused because no buffer had a GPU VA; buffers have VAs and the device test writes through a placed buffer's. Section 4.6's "Not implemented yet" contradicted the D3D-399 paragraph above it and listed mesh statistics twice. The device test's comment on the unresolved write gets the real reason.
…KAN-STALE-STATUS) Section 3.2 listed buffer shader-resource views and constant-buffer views as known gaps whose V#s are not written. write_buffer_srv writes raw, structured and typed buffer SRV V#s for CreateShaderResourceView, and CreateConstantBufferView writes a CBV V# in the console's 16-byte-row form; d3d12_compute_test checks both.
KelboLive
left a comment
There was a problem hiding this comment.
Checked all four status fixes against the code and they hold: buffer SRV V#s (write_buffer_srv / buffer CreateShaderResourceView, d3d12_vulkan_device.cpp:14107-14184, :14218; tests at d3d12_compute_test.cpp:886-960), CBVs including the 16-byte-row console form and LEONIDA_CBV_RAW (:14045-14088), CreatePipelineState streams plus mesh PSOs and MeshShaderTier (:7919, :8236, :15646), and WriteBufferImmediate resolving by VA with an unresolved_resource refusal (vulkan_replay.h:3771-3775; tests at 6389-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 at vulkan_replay.h:5350 and case 14 fails four assertions, so that bullet was indeed false.
All 13 tests/test_docs_*.py pass, check_no_game_data is clean, and merge-tree with 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.
|
Independent runtime checks for the Vulkan status updates at
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). |
|
Merging. Head AI-assisted (Claude Code). |
Claimed in the coordination issue as: DOC-D3D12-VULKAN-STALE-STATUS (#1608 (comment))
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 tools: add auto fallback to python disassembler in shader_disasm and shader_library #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)