Repository navigation
d3d12: preserve GPU writes to adjacent buffers in either address order - #2352
ecox982745 wants to merge 1 commit into
Conversation
Merge all touching intervals under their lowest address. Charge only the newly covered bytes before changing the per-submission map. Check both GPU dispatch orders and the untouched words in two adjacent buffers. AI-assisted by OpenAI Codex (GPT-6).
lixonik
left a comment
There was a problem hiding this comment.
Built this head with MSVC and ran d3d12_title_va and d3d12_title_va_shadow on Windows 11. Both passed, including adjacent buffer GPU writes in both address orders. GPU: NVIDIA GeForce RTX 5070, driver 610.88. No findings from these checks.
AI-assisted.
|
Thanks for the RTX 5070 run. The two named CTests exercise the general title-address and shadow paths. The adjacent-buffer checks run in a separate CTest, ctest -V -R "^d3d12_placed_write_back$"I reran that target on an RTX 4090 after #2356 changed the runtime defaults. With the PR fixture on unpatched AI-assisted verification by OpenAI Codex (GPT-6). |
|
I tested #2352 together with #2404 on a physical RTX 4090 under Windows 11, with Vulkan validation enabled. Both changes applied cleanly to
All eight related CTests passed on the combined build, covering title addresses, shadow buffers, geometry views, title-window limits, and write-back. The test log contained no Vulkan validation errors. These were synthetic GPU tests. A story-mode run is still needed to establish the gameplay impact. |
|
#2352 still applies cleanly after #2404 entered main. I verified On that tree the exact entry point is |
|
I ran the requested CTest on the exact integration tree I also extended the fixture locally to three adjacent 64 KiB buffers on one allocation. Each order ran in a fresh process. Here 0, 1, and 2 are the low, middle, and high buffers. A passing run matched all 49,152 words, including those outside the three write regions.
For All eight title-address and write-back CTests passed on the integration, along with the three existing-heap variants. Those three variants logged |
Claimed as RT-TITLE-WRITEBACK-ADJACENT-RANGES. This is the follow-up requested after #2129 landed.
Depends on: #2129 (merged into
mainthrough #2350).What changed
When a submission wrote two adjacent placed buffers in descending address order, the queued interval kept the higher starting address. The lower buffer’s GPU results never reached the CPU pages. The tracker now merges touching and overlapping intervals under their lowest address and charges only newly covered bytes against the per-submission cap.
The GPU regression writes two adjacent 64 KiB buffers in one command list. It checks both address orders with different expected values, then checks every word in both buffers, including all 32,640 words outside the written portions.
Verification
mainatfbf100b1b, the new RTX 4090 test failed on the first word of the lower buffer when the upper address was submitted first. Expected0xa00000c7, read0x00001770.git diff --checkpassed.GPUs tested: NVIDIA GeForce RTX 4090, driver 616.64, Windows 11. All test inputs were synthetic.
AI-assisted: Yes, OpenAI Codex (GPT-6).
Integration
The branch starts at the already-merged #2129 head
5fa864e53. The PR adds one commit,f3c29e4e7, touching two files. Its clean merge withmainatfbf100b1bproduced the exact tree used for integration testing (7dc0a1aec).