Repository navigation
d3d12_vulkan.md: WriteBufferImmediate works now that buffers have GPU virtual addresses - #5456
Pierre-Kookis wants to merge 1 commit into
Conversation
… virtual addresses Two passages still said an immediate write is refused because no buffer has a GPU VA yet. The device returns VAs from GetGPUVirtualAddress, and d3d12_vulkan_device_test replays an immediate write into a placed buffer and reads it back; only a write to an address no buffer covers is refused as unresolved_resource.
|
Tested ad9a0b8 on Windows 11 with NVIDIA GeForce RTX 4090 (32.0.16.2101) and AMD Radeon Graphics (32.0.21043.5001): pass. Both revised passages match the runtime. On each GPU, an immediate write to the unmapped address I built with AI-assisted. Synthetic inputs only. |
LAKSHYA-cmd-tech
left a comment
There was a problem hiding this comment.
Tested ad9a0b81 on Windows 11, CPython 3.12 (CPU only, no game files): pass.
- Verified against
runtime/test/d3d12_vulkan_device_test.cpp:6970-6992:WriteBufferImmediateinto placed buffers with GPU virtual addresses succeeds and reads back0xCAFEBABE, matching the doc update at lines 901 and 2082–2084 ofdocs/d3d12_vulkan.md. - Verified against
runtime/test/d3d12_vulkan_device_test.cpp:6110-6120: writing to unmapped virtual address0x10000is refused withReplayResult::unresolved_resource, as documented. - Ran all documentation tests:
python -I -m unittest discover -s tests -p "test_docs*.py"(30/30 passed in 14.0s).
Approved. AI-assisted.
Kam471
left a comment
There was a problem hiding this comment.
Head ad9a0b815c7e · Verdict: LGTM
Docs-only; git diff --check clean; docs tests 5 passed (test_docs_cli_flags, test_docs_repo_paths).
Verified both changed claims on this head: WriteBufferImmediate to an uncovered VA returns unresolved_resource (d3d12_vulkan_device_test 6114-6118), and a write to a placed buffer is replayed and read back (6973-6985, word == 0xCAFEBABE). No blockers.
d3d12_vulkan.md: WriteBufferImmediate works now that buffers have GPU virtual addresses Independent review: ProjectLeonida#5456 (comment) Fork integration. AI-assisted (Codex).
Claimed in the coordination issue: #5361.
Problem
Two passages of
docs/d3d12_vulkan.md(at3faac557) still say an immediate write is refused because no buffer has a GPU virtual address yet::901: "WriteBufferImmediateis refused at execution while no buffer has a GPU virtual address onmain";:2082-2084: "the device fillsvaonceGetGPUVirtualAddresslands (Runtime: implement CBV/SRV/UAV/Sampler views with GFX10 V# buffer descriptors, GetGPUVirtualAddress and command list state setters #157/Runtime: compute path and graphics draws on Vulkan (D3D-3, D3D-4, milestone M1) #291); until then, a list with an immediate write is refused".The same doc says at
:1224that the device returns VAs fromGetGPUVirtualAddress, andruntime/test/d3d12_vulkan_device_test.cpp:6975-6990replays an immediate write into a placed buffer and reads0xCAFEBABEback. Only a write to an address no buffer covers (0x10000,:6110-6119) is refused asunresolved_resource.Change
Doc only: both passages say that. (The test's comment at
:6110-6111repeats the old reason; I left the test file untouched.)Tested
python -I -m unittest discover -s tests -p "test_docs*.py": OK.AI-assisted (Claude Code + Codex; checked against the test). No game files.