D3D12.X: count retained sparse heaps in memory activity #1838
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1838
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@gloger2003 on GitHub · 2026-11-24 21:38 UTC · original
gloger2003:fix/sparse-pool-activity-counts→main· +45 −9 · 2 files · 1 commits · draftPart 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.
@gabrielsteglich on GitHub · 2026-11-24 22:48 UTC · original
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.
@DavidM1911 on GitHub · 2026-11-25 01:03 UTC · original
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!
@pickles976 on GitHub · 2026-11-25 17:01 UTC · original
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.
@DavidM1911 on GitHub · 2026-11-26 06:28 UTC · original
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.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.