D3D12.X: a memory sample no longer makes the UMA window #3343
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3343"
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?
Imported from ivall/xcl. Originally posted by cj-tomlin on 2026-11-29T09:38:51Z.
memory_report::snapshot()read the UMA window's size throughuma::get(), which reserves and commits the window on first use. A sample in a process that had no window yet (a fresh child process, a test) committed it, and so changed the memory it was measuring.uma::existing()returns the window only if something else already made it. Part of #3211 (C).The accessor and the child-process regression are @thehollowedone's, from their review of #2697. #2999 has the same
uma::get()call in its report anduma_imported_bytes(); I asked about overlap there before opening this.What is in it
gpu/uma.rs:existing(), the window without making ithle/d3d12x/memory_report.rs:snapshot()uses it;snapshot_does_not_initialize_umaruns a sample in a fresh child process and checks no window was madeTested
cargo test -p xcl --lib memory_report::tests::snapshot_does_not_initialize_uma: fails without the fix (a memory sample made the UMA window, 0 passed, 1 failed), passes with itcargo test --workspace --no-fail-fast -- --test-threads=4at49e8f5fc: 2,619 passed, 0 failed, 49 ignored (41 targets)Regression run
A retail title, 120 s,
XCL_PREPARE=0,XCL_PRESS_AT=25:A(loads a save into the world), the same DXIL cache copy and data root for both.Not tested
AI use
main, ran the tests and smoke runs, wrote this description. I checked the diff and the results.🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by cj-tomlin on 2026-11-30T16:39:42Z.
Closing as a duplicate: #3229 (merged) adds uma::existing() and the regression test that snapshot() does not create the UMA window.
Pull request closed