D3D12.X: count retained sparse heaps in memory activity #1828
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1838"
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 gloger2003 on 2026-11-24T21:38:38Z.
Part of #1773. The memory activity line omitted sparse heaps that XCL retained after retirement. Its existing
mappedfield counts occupied tiles, including those pinned by placed buffers.What is in it
Tested
cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-output. 959 reported passed, 0 failed, 43 ignored. Runtime skips: 7 (gpu, heap_window_out_of_memory_falls_back_to_the_switch_form).no_samplefor a real log from the previous heada96b70f. With this head it returned valid samples from both main and the PR at 20 seconds. The three new counters were present in the PR log.Regression run
Minecraft Preview, 30 seconds per build using the same 1x MSAA settings.
Not tested
World-load and long-session memory usage. The game run covers startup and menu rendering.
AI use
OpenAI Codex (GPT-6.2 Sol, high reasoning effort, Fast mode) traced the counter, wrote the change and its test, checked log-reader compatibility and ran validation.
Imported from ivall/xcl. Originally posted by gabrielsteglich on 2026-11-24T22:48:10Z.
Independent NVIDIA validation for
2e56d37f1dbd27e1a004b556f4e2192f41f065e8, merged locally intomain689f2db477c3c062cf162649781640ef8a977c18as5a49f707a9d412f171b76db6d92758e5c472dc19. The merge was clean.Tested
cargo build --offline --locked --workspacepassed.cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-outputreported 975 passed, 0 failed, 45 ignored.hle::d3d12x::sparse::tests::a_pool_retired_a_moment_ago_is_taken_backpassed on the RTX 3090, including the new counters for the active, retired, reused and released heap.The suite emitted 24 explicit skips: 18 native-wave64 subcases, three wave32 per-lane refusals (
V_MUL_F16,V_PK_MUL_F16,V_CVT_F16_F32), two debug-layer tests (test_title_draws_with_a_root_signature_under_the_debug_layer,uploads_start_from_each_subresources_state) andheap_window_out_of_memory_falls_back_to_the_switch_formwith heap windows off. The wave64 skips were in the fourgpu::recomp::lowerparity tests, the fivegpu::recomp::lower_dxilGPU tests andgpu_geometry_wave32_prefix_count_over_a_mask/gpu_wave32_program_in_wave64_hardware.Not tested
Retail smoke, AMD or Intel. This run covered synthetic tests on the local merge.
AI use
OpenAI's coding agent (GPT-6) ran the build and tests and prepared the report.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T01:03:36Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
Imported from ivall/xcl. Originally posted by pickles976 on 2026-11-25T17:01:22Z.
Verified
2e56d37f1dbd27e1a004b556f4e2192f41f065e8together with #1837 on a mixed Wine 11 / stock vkd3d 3.2 integration, RTX 4060 Laptop 8 GB / 16 GB RAM. Full tree, command, results and limitations.The combined heap-lifecycle regression passed (1/1, no skips), including active/occupied/retired accounting across retirement, reuse and release; the release build passed. The title emitted 33 memory samples retaining the existing fields and appending the new counters. Retired capacity peaked at 384 MiB and returned to zero; parked-mapping coverage peaked at 164 MiB.
The title run ended at our available-RAM guard before gameplay. This is counter/lifecycle verification, not a demonstrated VRAM saving or a clean-head/performance comparison. No additional local accounting implementation was added.
AI assistance: omp / openai-codex/gpt-6-astra ran the integration checks and wrote/submitted these reports at the repository owner's request.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T06:28:07Z.
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current
mainon the new head — needs another rebase before it can be tested.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:56:41Z.
Triage (#1607) – head
2e56d37main already counts retained sparse heaps in XCL_ACTIVITY: commit
d3e60ec(D3D12.X: report memory by tracked owner) addedsparse::memory_bytes_for. It returns the active, occupied and retired pool bytes from a single lock, andmemory_report.rslogs them assparse tiles,sparse pools freeandsparse pools retired.The only part not on main is the
parked mappingsfigure.Recommendation: close (superseded by main commit
d3e60ec).AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T15:59:26Z.
Closing as superseded: this change is already on
main(d3e60ecb). From Foniass's rechecked close list on #1607, checked again by script just now. If something here is still missing, say so and reopen it, or ask and I will.AI use: Claude Code (Claude Opus 5.5).
Pull request closed