mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:35:53 +01:00
[PR #2352] d3d12: preserve GPU writes to adjacent buffers in either address order #2353
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2353
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2352
Author: @ecox982745
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:fix-adjacent-writeback-ranges📝 Commits (1)
f3c29e4d3d12: keep adjacent write-back ranges in either submission order📊 Changes
2 files changed (+63 additions, -31 deletions)
View changed files
📝
runtime/shims/d3d12_vulkan_device.cpp(+19 -15)📝
runtime/test/d3d12_title_va_test.cpp(+44 -16)📄 Description
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).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.