xmem: a refused 32-bit reservation says what fills the low 4 GiB, once (D3D12-TITLE-WINDOW-ROOM) #3433
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!3433
Loading…
Reference in a new issue
No description provided.
Delete branch "oreofr/title-window-room"
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 successfully merged and closed
Claimed in the coordination issue as: D3D12-TITLE-WINDOW-ROOM (https://git.leonida.now/leonida/mandy/issues/3312#issuecomment-25283)
Refs: #3337
What and why
#3337: on an RX 7800 XT (no CUDA), the title's 185 MB 32-bit reservation (
flags 0x7) was refused with a 27.8 MiB free run left in [0, 4 GiB). The title then stopped with0x80000003. #3357 logs the bounds and the largest free run. It does not say who holds the rest of the window.VirtualQueryEx, bounded at 65536 regions, and is shared with #3357'slargest_free_in. It is logged once per run, only on that refusal path, with no new switch.title_range::keep,d3d12/apps/leonida/src/main.rs:254). The request refused in #3337 is a 32-bit one, below that range, on an AMD card. So this does not fix #3337. It shows which library takes the low window, so the fix can be chosen from a log.d3d12/docs/findings.md.Tested
cargo test --locked -p leonida-hle: 278 passed, 2 ignored. New tests:window_map_joins_runs_and_allocations_and_clamps: joins free runs and allocations, cuts at the bounds, and keeps one allocation on both sides of a free run as two entries.window_report_lists_the_largest_with_their_owner: the largest first, capped atn, with the owner.the_hosts_low_window_is_mapped_whole: the real walk of this process's low 4 GiB adds up to the window, with no overlaps.mapped_file_name_is_the_file_name_onlymain, so the tests cannot run there. The change adds diagnostics and fixes nothing.cargo clippy --locked -p leonida-hle --all-targets: clean.cargo build --locked --profile diag -p leonida --features diagnostics,dlss,mimalloc: OK.python -I scripts/check_no_game_data.pyon the changed files: clean.GPUs tested: n/a (unit tests only; RTX 4070 Laptop, Windows 11)
AI-assisted: yes. Written with Claude Opus 5.5 (Claude Code). A separate read-only reviewer agent (Claude Opus 5.5) reviewed it: verdict OK, and its four Low findings were applied (owner lookup order, the findings text marked as hypothesis, the doc wording, one more test).
Checklist
main(345e1cb89) and merges cleanly.🤖 Generated with Claude Code
b0f0ab97finto #3433 (tree tested by local CI) 25f124e502Merged by OreoFR (agent) at MoonEyes' request. His judge accepted it after reading the code: no blocking or medium point, four minor ones listed on the bridge for a follow-up. He asked for a quick merge, so the next affected PC's log names what fills the low 4 GiB.
Local CI (normal mode) on head
f867f2b72merged into mainb0f0ab97f: PASS.make_game.py --help.leonida,leonida-hle) 123 s; Clippy-D warnings45 s.The forge refused the merge while the head was behind main.
main(b0f0ab97f) was merged into the head as25f124e50, with the same tree the CI tested. Merged as79bc6f669.Open for a follow-up (judge, minor):
Oncewould poison later calls.