D3D12.X: memory by owner on nvidia-dev: two-pass buffers, GPU-view tiles #2999

Open
pr1sm-dev wants to merge 8 commits from upstream-pr/2999 into main
pr1sm-dev commented 2026-11-27 10:48:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by pr1sm-dev on 2026-11-27T10:48:12Z.


The memory line by owner (#2697, #2750, #2776) on nvidia-dev, with the two owners this branch has and main does not. Part of #2688 (workstream 1).

Stacked on #2697, #2750 and #2776: the first three commits are @joeypercia's, cherry-picked onto nvidia-dev with their authorship (three conflicts, both sides kept; git range-diff against the originals shows context lines only). Only the last five commits belong here: 93 added and 5 removed lines. The whole branch is 731 added and 14 removed.

What is in it

  • bind.rs, memory_report.rs: a two-pass buffers row, read from the count the buffers' cap keeps (the bytes asked for). On nvidia-dev these buffers were in other.
  • sparse.rs, texture_upload.rs: two census places, sparse readback jobs and texture upload jobs (both pooled; made on a pool miss only).
  • sparse.rs, memory_report.rs: a GPU-view tiles row, taken out of sparse tiles. A view tile parked since the last submit, or kept with XCL_VIEW_KEEP, still counts with the windows' own.
  • present.rs, memory_report.rs, host.rs: one more XCL_ACTIVITY line beside other: the swap chain's size (bytes computed, not counted) and pso_async's pipeline builds so far.
  • README.md: the XCL_ACTIVITY entry names the lines.

On nvidia-dev, sparse pools free also holds the tiles that are cooling or quarantined (pool_bytes leaves them out of the mapped ones here).

Tested

  • RTX 3070 8 GB (driver 621.40), Ryzen 7 5800X, 64 GB RAM, Windows 11 build 26300, rustc 1.100.0.
  • Head 71dad56b, debug: cargo test --workspace --offline --no-fail-fast -- --test-threads=4: 1829 passed, 8 failed, 48 ignored; 28 SKIPPED (no wave64: 21, per-lane f16 forms refused: 3, no heap windows: 2, no xgameruntime.dll: 2).
  • Base nvidia-dev 3f39671d, same command: 1824 passed, 8 failed, 48 ignored; the same 28 SKIPPED. The 8 failures are the same six tests on both: texture_upload's pieces_hold_the_texels_of_their_levels and gpu_parts_of_a_texture_go_up_and_the_rest_stays, async_compute_pso_registers_real_pso_and_not_standin, console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly, and split_compute_prefers_the_offline_whole_pipeline and two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs, each reported twice. The five more passes are this branch's tests.
  • In the world, on this PR's head plus one local commit (3292b096 reverted, which this card needs to stay in the world, #2867): Series S profile, XCL_UMA_WINDOWS=16 XCL_HEAP_WINDOWS=1 XCL_COHERENT_HEAPS=sparse:1024 XCL_TWO_PASS_MB=3072 XCL_TEXTURE_LEVEL_PAGES=1 XCL_GFX_PSO_WAIT_MS=100 XCL_PREPARE_GRAPHICS=0 XCL_FRAME_DUMP=60, 2 GiB shader heap (#2590), warm caches, 540 s of title time, 421 s of it in the world. The lines at the end:
memory by owner (MB): commit 36569 (UMA window 968, sparse CPU copy 6157, D3D12 heaps 18826, other 10616); video memory 17231 of a 7145 budget (placed texture pages 4225, placed texture pools free 574, arenas 249, sparse tiles 5227, GPU-view tiles 930, sparse pools free 242, sparse pools retired 0, committed textures 173, two-pass buffers 3069, other 2538); non-local 2564 of a 48295 budget (UMA window 968, sparse readback 16, sparse readback jobs 0, sparse staging 64, sparse zero buffer 1, texture upload jobs 513, other 1001)
memory: XCL's own resources (alive): frame dump readback 0 of 37 made, 0 MB; sparse readback 1 of 1 made, 16 MB; sparse readback jobs 3 of 3 made, 0 MB; sparse staging 1 of 1 made, 64 MB; sparse zero buffer 1 of 1 made, 1 MB; texture upload jobs 16 of 18 made, 513 MB
memory: not in the rows: swap chain 3 buffers of 3840x2160, about 94 MB; pipeline builds so far: 9352 finished, 0 failed, 74919 pending

Without the two rows, other would have read 5,607 MB of the 17,231 and sparse tiles 6,157. Video memory was level by then (17,170 MB at 480 s). report.json had the same table.

Regression run
60 s each, the same settings (Series S profile, XCL_UMA_WINDOWS=16 XCL_HEAP_WINDOWS=1 XCL_COHERENT_HEAPS=sparse:1024 XCL_TWO_PASS_MB=3072 XCL_PREPARE_GRAPHICS=0), no input: the title's first screens.

main b49be183 (the commit #2697 is based on):

xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 3070
title: 47452d35
seconds: 60
exit: 0x0
frames shown: 493 (PresentX 494)
presents per 2 s (last 3): 40 41 44
device removals: 0
crashes: 0
peak commit: 19296 MB

nvidia-dev 3f39671d (the base):

xcl-smoke v1
commit: 3f39671d5239c33100ba25b692d60b6582b779d2
gpu: NVIDIA GeForce RTX 3070
title: 47452d35
seconds: 60
exit: 0x0
frames shown: 1563 (PresentX 1563)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 18384 MB

This PR's head:

xcl-smoke v1
commit: 71dad56b13e366dd36a64b14af8defa448a82ed3
gpu: NVIDIA GeForce RTX 3070
title: 47452d35
seconds: 60
exit: 0x0
frames shown: 1566 (PresentX 1566)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 19043 MB

Not tested

  • AMD and Intel GPUs, Wine.
  • The world on this PR's head without the local revert.
  • XCL_VIEW_KEEP, an fp16 swap chain, a resize.
  • The new rows have no test of their values: the device test checks that the rows are there, and a unit test checks the new line's text.

AI use

  • Claude Code (Claude Fable 5.2) wrote the five commits, ran the tests and the title runs on the owner's machine and wrote this description. Two read-only Claude Opus sub-agents reviewed the branch before it was opened.
<!-- greyfinch-sync:ivall/xcl:issue:5525334030 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2999). Originally posted by [pr1sm-dev](https://github.com/pr1sm-dev) on 2026-11-27T10:48:12Z. --- The memory line by owner (#2697, #2750, #2776) on `nvidia-dev`, with the two owners this branch has and `main` does not. Part of #2688 (workstream 1). Stacked on #2697, #2750 and #2776: the first three commits are @joeypercia's, cherry-picked onto `nvidia-dev` with their authorship (three conflicts, both sides kept; `git range-diff` against the originals shows context lines only). **Only the last five commits belong here: 93 added and 5 removed lines.** The whole branch is 731 added and 14 removed. **What is in it** - `bind.rs`, `memory_report.rs`: a `two-pass buffers` row, read from the count the buffers' cap keeps (the bytes asked for). On `nvidia-dev` these buffers were in `other`. - `sparse.rs`, `texture_upload.rs`: two census places, `sparse readback jobs` and `texture upload jobs` (both pooled; made on a pool miss only). - `sparse.rs`, `memory_report.rs`: a `GPU-view tiles` row, taken out of `sparse tiles`. A view tile parked since the last submit, or kept with `XCL_VIEW_KEEP`, still counts with the windows' own. - `present.rs`, `memory_report.rs`, `host.rs`: one more `XCL_ACTIVITY` line beside `other`: the swap chain's size (bytes computed, not counted) and `pso_async`'s pipeline builds so far. - `README.md`: the `XCL_ACTIVITY` entry names the lines. On `nvidia-dev`, `sparse pools free` also holds the tiles that are cooling or quarantined (`pool_bytes` leaves them out of the mapped ones here). **Tested** - RTX 3070 8 GB (driver 621.40), Ryzen 7 5800X, 64 GB RAM, Windows 11 build 26300, rustc 1.100.0. - Head `71dad56b`, debug: `cargo test --workspace --offline --no-fail-fast -- --test-threads=4`: 1829 passed, 8 failed, 48 ignored; 28 `SKIPPED` (no wave64: 21, per-lane f16 forms refused: 3, no heap windows: 2, no xgameruntime.dll: 2). - Base `nvidia-dev` `3f39671d`, same command: 1824 passed, 8 failed, 48 ignored; the same 28 `SKIPPED`. The 8 failures are the same six tests on both: `texture_upload`'s `pieces_hold_the_texels_of_their_levels` and `gpu_parts_of_a_texture_go_up_and_the_rest_stays`, `async_compute_pso_registers_real_pso_and_not_standin`, `console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly`, and `split_compute_prefers_the_offline_whole_pipeline` and `two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs`, each reported twice. The five more passes are this branch's tests. - In the world, on this PR's head plus one **local** commit (`3292b096` reverted, which this card needs to stay in the world, #2867): Series S profile, `XCL_UMA_WINDOWS=16 XCL_HEAP_WINDOWS=1 XCL_COHERENT_HEAPS=sparse:1024 XCL_TWO_PASS_MB=3072 XCL_TEXTURE_LEVEL_PAGES=1 XCL_GFX_PSO_WAIT_MS=100 XCL_PREPARE_GRAPHICS=0 XCL_FRAME_DUMP=60`, 2 GiB shader heap (#2590), warm caches, 540 s of title time, 421 s of it in the world. The lines at the end: ``` memory by owner (MB): commit 36569 (UMA window 968, sparse CPU copy 6157, D3D12 heaps 18826, other 10616); video memory 17231 of a 7145 budget (placed texture pages 4225, placed texture pools free 574, arenas 249, sparse tiles 5227, GPU-view tiles 930, sparse pools free 242, sparse pools retired 0, committed textures 173, two-pass buffers 3069, other 2538); non-local 2564 of a 48295 budget (UMA window 968, sparse readback 16, sparse readback jobs 0, sparse staging 64, sparse zero buffer 1, texture upload jobs 513, other 1001) memory: XCL's own resources (alive): frame dump readback 0 of 37 made, 0 MB; sparse readback 1 of 1 made, 16 MB; sparse readback jobs 3 of 3 made, 0 MB; sparse staging 1 of 1 made, 64 MB; sparse zero buffer 1 of 1 made, 1 MB; texture upload jobs 16 of 18 made, 513 MB memory: not in the rows: swap chain 3 buffers of 3840x2160, about 94 MB; pipeline builds so far: 9352 finished, 0 failed, 74919 pending ``` Without the two rows, `other` would have read 5,607 MB of the 17,231 and `sparse tiles` 6,157. Video memory was level by then (17,170 MB at 480 s). `report.json` had the same table. **Regression run** 60 s each, the same settings (Series S profile, `XCL_UMA_WINDOWS=16 XCL_HEAP_WINDOWS=1 XCL_COHERENT_HEAPS=sparse:1024 XCL_TWO_PASS_MB=3072 XCL_PREPARE_GRAPHICS=0`), no input: the title's first screens. `main` `b49be183` (the commit #2697 is based on): ``` xcl-smoke v1 commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7 gpu: NVIDIA GeForce RTX 3070 title: 47452d35 seconds: 60 exit: 0x0 frames shown: 493 (PresentX 494) presents per 2 s (last 3): 40 41 44 device removals: 0 crashes: 0 peak commit: 19296 MB ``` `nvidia-dev` `3f39671d` (the base): ``` xcl-smoke v1 commit: 3f39671d5239c33100ba25b692d60b6582b779d2 gpu: NVIDIA GeForce RTX 3070 title: 47452d35 seconds: 60 exit: 0x0 frames shown: 1563 (PresentX 1563) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 18384 MB ``` This PR's head: ``` xcl-smoke v1 commit: 71dad56b13e366dd36a64b14af8defa448a82ed3 gpu: NVIDIA GeForce RTX 3070 title: 47452d35 seconds: 60 exit: 0x0 frames shown: 1566 (PresentX 1566) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 19043 MB ``` **Not tested** - AMD and Intel GPUs, Wine. - The world on this PR's head without the local revert. - `XCL_VIEW_KEEP`, an fp16 swap chain, a resize. - The new rows have no test of their values: the device test checks that the rows are there, and a unit test checks the new line's text. **AI use** - Claude Code (Claude Fable 5.2) wrote the five commits, ran the tests and the title runs on the owner's machine and wrote this description. Two read-only Claude Opus sub-agents reviewed the branch before it was opened.
Decodere commented 2026-11-27 11:48:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T11:48:01Z.


Independent desktop NVIDIA RTX 4060 (8 GB) / Windows 11 --release verification of PR #2999 at 71dad56b13e366dd36a64b14af8defa448a82ed3 (8 commits stacked on exact parent and nvidia-dev merge-base 3f39671d5239c33100ba25b692d60b6582b779d2: 73a39337 -> 2c4a79e3 -> 2f7b2210 -> fda79731 -> 744c1419 -> ec24e607 -> fa74f7d0 -> 71dad56b).

Environment

  • OS: Windows 11 Home (build 26200)
  • CPU / RAM: Intel Core i5-11400F (6C / 12T), 32 GB RAM
  • GPU / Driver: NVIDIA GeForce RTX 4060 (8 GB VRAM, Ada, 32-lane waves), driver 32.0.16.2114 (NVIDIA 621.14), WDDM 3.2
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC, DXC 1.9.2609.5

Release build & targeted --release --lib tests

All runs executed sequentially (--test-threads=1 --nocapture) on 71dad56b13e366dd36a64b14af8defa448a82ed3 against the RTX 4060:

  • cargo build --release -p xcl: passed (2m 00s), 0 new compiler warnings compared to exact parent 3f39671d (identical 8 pre-existing xcl lib warnings; 0 warnings in memory_report.rs, resource_census.rs, or modified hunks).
  • cargo test --release -p xcl --lib hle::d3d12x::memory_report:: -- --test-threads=1 --nocapture: 3/3 runs passed (4 passed; 0 failed; 0 ignored; 0 skipped, 0.37s–0.38s each) — includes live RTX 4060 execution of a_snapshot_on_the_device_has_its_budget_and_owners plus the_rest_is_the_total_less_the_parts, the_line_beside_other_has_the_swap_chain_and_the_builds, and the_table_keeps_the_last_snapshot_and_the_peak_of_video_memory.
  • cargo test --release -p xcl --lib hle::d3d12x::resource_census:: -- --test-threads=1 --nocapture: 3/3 runs passed (1 passed; 0 failed; 0 ignored; 0 skipped, 0.37s–0.39s each) — live RTX 4060 execution of a_tracked_resource_counts_until_it_is_destroyed (verifying DEFAULT local video vs UPLOAD non-local tracking, refcount retention across clones, and live-count drop on destruction while preserving made).
  • cargo test --release -p xcl --lib hle::d3d12x::sparse:: -- --test-threads=1 --nocapture: 3/3 runs passed (66 passed; 0 failed; 1 ignored [early_commit_timing], 0 skipped, 4.09s–5.01s each) — covers the new committed_bytes() assertions alongside the sparse tile/view test suite.
  • cargo test --release -p xcl --lib hle::d3d12x::title_textures:: -- --test-threads=1 --nocapture: 3/3 runs passed (29 passed; 0 failed; 0 ignored; 0 skipped, 1.36s–1.39s each).
  • cargo test --release -p xcl --lib hle::d3d12x::bind:: -- --test-threads=1 --nocapture: 3/3 runs passed (53 passed; 0 failed; 0 ignored; 1 skipped, 0.60s–0.61s each; two_pass_binds_set_the_shared_view_heap skipped as expected without opt-in XCL_HEAP_WINDOWS=1).
  • cargo test --release -p xcl --lib report:: -- --test-threads=1 --nocapture: 1/1 run passed (5 passed; 0 failed; 0 ignored; 0 skipped, 0.49s; includes report::tests::a_crash_is_kept_while_another_thread_writes_the_report).

Paired quiet 60 s retail smoke (XCL_PREPARE=0, XCL_NETWORK=0)

Both runs used scripts/smoke.ps1 -Seconds 60 -StartupTimeoutSeconds 180 (which sets XCL_ACTIVITY=1) with XCL_PREPARE=0 and XCL_NETWORK=0 on a quiet machine against the same local retail title (title: 29640639):

Exact parent (3f39671d5239c33100ba25b692d60b6582b779d2):

xcl-smoke v1
commit: 3f39671d5239c33100ba25b692d60b6582b779d2
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1535 (PresentX 1535)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14725 MB

PR #2999 (71dad56b13e366dd36a64b14af8defa448a82ed3):

xcl-smoke v1
commit: 71dad56b13e366dd36a64b14af8defa448a82ed3
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1583 (PresentX 1583)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14790 MB

Both runs finished cleanly in 63 s wall time with 0 device removals, 0 crashes, steady 60 60 60 presents per 2 s, and no regression in frame count (1583 vs 1535) or peak commit (14790 vs 14725 MB). All 29 legacy memory: N MB committed lines were emitted alongside the new lines and parsed cleanly by scripts/smoke.ps1.

Runtime memory-by-owner telemetry & report.json verification

During the 60 s 71dad56b smoke on the RTX 4060 (8 GB), xcl.log emitted 29 memory by owner (MB) snapshots (t = 2.002 s to 58.097 s), 28 memory: XCL's own resources (alive) census lines (t = 4.003 s to 58.097 s), and 28 memory: not in the rows beside lines (t = 4.004 s to 58.100 s), with 0 negative other values across all 29 snapshots and 0 over-budget warnings:

  • Peak local VRAM snapshot (t = 18.032 s):
    • commit: 14694 MB (UMA window 4095, sparse CPU copy 838, D3D12 heaps 6822, other 2937)
    • video memory: 6177 of a 6901 MB budget (placed texture pages 3546, placed texture pools free 37, arenas 465, sparse tiles 838, GPU-view tiles 0, sparse pools free 57, sparse pools retired 0, committed textures 402, two-pass buffers 0, other 830 — ~86.5% accounted by named owners)
    • non-local: 4740 of a 15556 MB budget (UMA window 4095, sparse staging 64, sparse zero buffer 1, texture upload jobs 195, other 384 — ~91.9% accounted)
  • Final snapshot (t = 58.097 s):
    • commit: 14743 MB (UMA window 4095, sparse CPU copy 838, D3D12 heaps 6835, other 2973)
    • video memory: 6116 of a 6892 MB budget (placed texture pages 3498, placed texture pools free 86, arenas 401, sparse tiles 838, GPU-view tiles 0, sparse pools free 57, sparse pools retired 0, committed textures 402, two-pass buffers 0, other 832)
    • non-local: 4815 of a 15556 MB budget (UMA window 4095, sparse staging 64, sparse zero buffer 1, texture upload jobs 195, other 459)
  • Census line (t = 58.097 s): memory: XCL's own resources (alive): sparse staging 1 of 1 made, 64 MB; sparse zero buffer 1 of 1 made, 1 MB; texture upload jobs 8 of 8 made, 195 MB (all 3 active sites also routed into non-local in both xcl.log and report.json).
  • Beside line (t = 58.100 s): memory: not in the rows: swap chain 3 buffers of 3840x2160, about 94 MB; pipeline builds so far: 4324 finished, 0 failed, 56429 pending (up from 1759 finished, 0 failed, 42106 pending at t = 4.004 s).
  • report.json (memory_by_owner): Absent on baseline 3f39671d, present and populated on 71dad56b. Both memory_by_owner.peak_video (seconds: 18.0317998, video_mb: 6177, video_budget_mb: 6901) and memory_by_owner.last (seconds: 58.0972428, video_mb: 6116, commit_mb: 14743) match the corresponding xcl.log lines exactly, with every segment's parts + other_mb reconciling to the DXGI/process total within 1–2 MB of integer >> 20 truncation.

Limits of coverage

  • Both paired 60 s smokes ran with XCL_PREPARE=0 (XCL_NETWORK=0), bypassing startup prepare_for_launch shader precompilation (reusing the existing local DXIL cache).
  • During this 60 s run of title 29640639, two-pass buffers, GPU-view tiles, and sparse pools retired stayed at 0 MB, and the remaining 10 resource_census sites (upload staging, ExecuteIndirect argument order, copy scratch, fill pattern, timestamp readback, predication, frame dump readback, dispatch chain scratch, sparse readback, sparse readback jobs) were not allocated; those paths were covered only by unit tests / code inspection here rather than non-zero retail smoke traffic.
  • Single-segment iGPU routing (non_local.budget == 0 -> Kind::Video) and Wine commit unknown handling were verified via unit tests (the_rest_is_the_total_less_the_parts), not on iGPU or Wine hosts.
  • hle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap skipped as expected without opt-in XCL_HEAP_WINDOWS=1, hle::d3d12x::sparse::tests::early_commit_timing is #[ignore], and the full workspace test suite / visual screenshot capture were not run.

AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).

<!-- greyfinch-sync:ivall/xcl:comment:7217489154 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2999#issuecomment-7217489154). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T11:48:01Z. --- Independent desktop NVIDIA RTX 4060 (8 GB) / Windows 11 `--release` verification of PR #2999 at `71dad56b13e366dd36a64b14af8defa448a82ed3` (8 commits stacked on exact parent and `nvidia-dev` merge-base `3f39671d5239c33100ba25b692d60b6582b779d2`: `73a39337` -> `2c4a79e3` -> `2f7b2210` -> `fda79731` -> `744c1419` -> `ec24e607` -> `fa74f7d0` -> `71dad56b`). ### Environment - **OS:** Windows 11 Home (build 26200) - **CPU / RAM:** Intel Core i5-11400F (6C / 12T), 32 GB RAM - **GPU / Driver:** NVIDIA GeForce RTX 4060 (8 GB VRAM, Ada, 32-lane waves), driver `32.0.16.2114` (NVIDIA `621.14`), WDDM 3.2 - **Toolchain:** `rustc 1.100.0 (0ef1bc386 2026-11-09)` MSVC, DXC `1.9.2609.5` ### Release build & targeted `--release --lib` tests All runs executed sequentially (`--test-threads=1 --nocapture`) on `71dad56b13e366dd36a64b14af8defa448a82ed3` against the RTX 4060: - `cargo build --release -p xcl`: passed (`2m 00s`), `0` new compiler warnings compared to exact parent `3f39671d` (identical 8 pre-existing `xcl` lib warnings; `0` warnings in `memory_report.rs`, `resource_census.rs`, or modified hunks). - `cargo test --release -p xcl --lib hle::d3d12x::memory_report:: -- --test-threads=1 --nocapture`: **3/3 runs passed** (`4 passed; 0 failed; 0 ignored; 0 skipped`, `0.37s–0.38s` each) — includes live RTX 4060 execution of `a_snapshot_on_the_device_has_its_budget_and_owners` plus `the_rest_is_the_total_less_the_parts`, `the_line_beside_other_has_the_swap_chain_and_the_builds`, and `the_table_keeps_the_last_snapshot_and_the_peak_of_video_memory`. - `cargo test --release -p xcl --lib hle::d3d12x::resource_census:: -- --test-threads=1 --nocapture`: **3/3 runs passed** (`1 passed; 0 failed; 0 ignored; 0 skipped`, `0.37s–0.39s` each) — live RTX 4060 execution of `a_tracked_resource_counts_until_it_is_destroyed` (verifying `DEFAULT` local video vs `UPLOAD` non-local tracking, refcount retention across clones, and live-count drop on destruction while preserving `made`). - `cargo test --release -p xcl --lib hle::d3d12x::sparse:: -- --test-threads=1 --nocapture`: **3/3 runs passed** (`66 passed; 0 failed; 1 ignored` [`early_commit_timing`], `0 skipped`, `4.09s–5.01s` each) — covers the new `committed_bytes()` assertions alongside the sparse tile/view test suite. - `cargo test --release -p xcl --lib hle::d3d12x::title_textures:: -- --test-threads=1 --nocapture`: **3/3 runs passed** (`29 passed; 0 failed; 0 ignored; 0 skipped`, `1.36s–1.39s` each). - `cargo test --release -p xcl --lib hle::d3d12x::bind:: -- --test-threads=1 --nocapture`: **3/3 runs passed** (`53 passed; 0 failed; 0 ignored; 1 skipped`, `0.60s–0.61s` each; `two_pass_binds_set_the_shared_view_heap` skipped as expected without opt-in `XCL_HEAP_WINDOWS=1`). - `cargo test --release -p xcl --lib report:: -- --test-threads=1 --nocapture`: **1/1 run passed** (`5 passed; 0 failed; 0 ignored; 0 skipped`, `0.49s`; includes `report::tests::a_crash_is_kept_while_another_thread_writes_the_report`). ### Paired quiet 60 s retail smoke (`XCL_PREPARE=0`, `XCL_NETWORK=0`) Both runs used `scripts/smoke.ps1 -Seconds 60 -StartupTimeoutSeconds 180` (which sets `XCL_ACTIVITY=1`) with `XCL_PREPARE=0` and `XCL_NETWORK=0` on a quiet machine against the same local retail title (`title: 29640639`): **Exact parent (`3f39671d5239c33100ba25b692d60b6582b779d2`):** ``` xcl-smoke v1 commit: 3f39671d5239c33100ba25b692d60b6582b779d2 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1535 (PresentX 1535) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14725 MB ``` **PR #2999 (`71dad56b13e366dd36a64b14af8defa448a82ed3`):** ``` xcl-smoke v1 commit: 71dad56b13e366dd36a64b14af8defa448a82ed3 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1583 (PresentX 1583) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14790 MB ``` Both runs finished cleanly in `63 s` wall time with `0` device removals, `0` crashes, steady `60 60 60` presents per 2 s, and no regression in frame count (`1583` vs `1535`) or peak commit (`14790` vs `14725 MB`). All 29 legacy `memory: N MB committed` lines were emitted alongside the new lines and parsed cleanly by `scripts/smoke.ps1`. ### Runtime memory-by-owner telemetry & `report.json` verification During the 60 s `71dad56b` smoke on the RTX 4060 (8 GB), `xcl.log` emitted `29` `memory by owner (MB)` snapshots (`t = 2.002 s` to `58.097 s`), `28` `memory: XCL's own resources (alive)` census lines (`t = 4.003 s` to `58.097 s`), and `28` `memory: not in the rows` beside lines (`t = 4.004 s` to `58.100 s`), with `0` negative `other` values across all `29` snapshots and `0` over-budget warnings: - **Peak local VRAM snapshot (`t = 18.032 s`):** - `commit`: `14694 MB` (`UMA window 4095`, `sparse CPU copy 838`, `D3D12 heaps 6822`, `other 2937`) - `video memory`: `6177` of a `6901 MB` budget (`placed texture pages 3546`, `placed texture pools free 37`, `arenas 465`, `sparse tiles 838`, `GPU-view tiles 0`, `sparse pools free 57`, `sparse pools retired 0`, `committed textures 402`, `two-pass buffers 0`, `other 830` — ~`86.5%` accounted by named owners) - `non-local`: `4740` of a `15556 MB` budget (`UMA window 4095`, `sparse staging 64`, `sparse zero buffer 1`, `texture upload jobs 195`, `other 384` — ~`91.9%` accounted) - **Final snapshot (`t = 58.097 s`):** - `commit`: `14743 MB` (`UMA window 4095`, `sparse CPU copy 838`, `D3D12 heaps 6835`, `other 2973`) - `video memory`: `6116` of a `6892 MB` budget (`placed texture pages 3498`, `placed texture pools free 86`, `arenas 401`, `sparse tiles 838`, `GPU-view tiles 0`, `sparse pools free 57`, `sparse pools retired 0`, `committed textures 402`, `two-pass buffers 0`, `other 832`) - `non-local`: `4815` of a `15556 MB` budget (`UMA window 4095`, `sparse staging 64`, `sparse zero buffer 1`, `texture upload jobs 195`, `other 459`) - **Census line (`t = 58.097 s`):** `memory: XCL's own resources (alive): sparse staging 1 of 1 made, 64 MB; sparse zero buffer 1 of 1 made, 1 MB; texture upload jobs 8 of 8 made, 195 MB` (all 3 active sites also routed into `non-local` in both `xcl.log` and `report.json`). - **Beside line (`t = 58.100 s`):** `memory: not in the rows: swap chain 3 buffers of 3840x2160, about 94 MB; pipeline builds so far: 4324 finished, 0 failed, 56429 pending` (up from `1759 finished, 0 failed, 42106 pending` at `t = 4.004 s`). - **`report.json` (`memory_by_owner`):** Absent on baseline `3f39671d`, present and populated on `71dad56b`. Both `memory_by_owner.peak_video` (`seconds: 18.0317998`, `video_mb: 6177`, `video_budget_mb: 6901`) and `memory_by_owner.last` (`seconds: 58.0972428`, `video_mb: 6116`, `commit_mb: 14743`) match the corresponding `xcl.log` lines exactly, with every segment's `parts + other_mb` reconciling to the DXGI/process total within `1–2 MB` of integer `>> 20` truncation. ### Limits of coverage - Both paired 60 s smokes ran with `XCL_PREPARE=0` (`XCL_NETWORK=0`), bypassing startup `prepare_for_launch` shader precompilation (reusing the existing local DXIL cache). - During this 60 s run of title `29640639`, `two-pass buffers`, `GPU-view tiles`, and `sparse pools retired` stayed at `0 MB`, and the remaining 10 `resource_census` sites (`upload staging`, `ExecuteIndirect argument order`, `copy scratch`, `fill pattern`, `timestamp readback`, `predication`, `frame dump readback`, `dispatch chain scratch`, `sparse readback`, `sparse readback jobs`) were not allocated; those paths were covered only by unit tests / code inspection here rather than non-zero retail smoke traffic. - Single-segment iGPU routing (`non_local.budget == 0` -> `Kind::Video`) and Wine `commit unknown` handling were verified via unit tests (`the_rest_is_the_total_less_the_parts`), not on iGPU or Wine hosts. - `hle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap` skipped as expected without opt-in `XCL_HEAP_WINDOWS=1`, `hle::d3d12x::sparse::tests::early_commit_timing` is `#[ignore]`, and the full workspace test suite / visual screenshot capture were not run. *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
JJAutoCompare commented 2026-11-27 12:25:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-27T12:25:45Z.


Tested

  • Exact head 71dad56b13e366dd36a64b14af8defa448a82ed3 on Intel Arc A770 (16,258 MiB, driver 32.0.101.9175), Ryzen 7 3800X, Windows 11 25H2 build 26200.9974, Rust 1.100.0 MSVC x64, debug. Built the checked-in tests and a separate test-only probe with rustc --test and lockfile-matched cached dependencies after an interrupted Cargo launch.
  • Ran xcl-stock.exe --exact <filter> --test-threads=1 --nocapture for hle::d3d12x::memory_report::tests::{the_rest_is_the_total_less_the_parts,the_line_beside_other_has_the_swap_chain_and_the_builds,a_snapshot_on_the_device_has_its_budget_and_owners}. Ran xcl-probe.exe --exact hle::d3d12x::bind::probe_two_pass_owner_lifetime_on_arc --test-threads=1 --nocapture. The last stock test and the probe used the Arc mutex with XCL_ADAPTER=A770 and XCL_TWO_PASS_MB=64. All four tests passed, with 0 failed, 0 ignored, and 0 skipped. All native children and the GPU wrapper exited 0.
  • The production two-pass allocator created one 3,211,264-byte committed default-heap UAV. The production snapshot’s two-pass buffers video owner and raw live counter both read 0 before allocation, 3,211,264 bytes while live, held for allocator release, and pooled, and 0 after reuse-pool retrieval and final drop. DXGI local usage went from 3,997,696 to 7,208,960 and back to 3,997,696 bytes. Local other stayed at 3,997,696 bytes. The rendered line and in-memory report record showed 3 MiB while the buffer was held.

Not tested

  • Title rendering or submitted GPU work, allocator vtable routing, age-based eviction, swap chain, full JSON output, retail smoke, the workspace suite, and performance.

AI use

  • T3 Code through the Codex harness, gpt-6.2-sol with high reasoning effort, ran the controls and synthetic probe, checked the raw outputs, and drafted this report.
<!-- greyfinch-sync:ivall/xcl:comment:7218231919 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2999#issuecomment-7218231919). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-27T12:25:45Z. --- **Tested** - Exact head `71dad56b13e366dd36a64b14af8defa448a82ed3` on Intel Arc A770 (16,258 MiB, driver 32.0.101.9175), Ryzen 7 3800X, Windows 11 25H2 build 26200.9974, Rust 1.100.0 MSVC x64, debug. Built the checked-in tests and a separate test-only probe with `rustc --test` and lockfile-matched cached dependencies after an interrupted Cargo launch. - Ran `xcl-stock.exe --exact <filter> --test-threads=1 --nocapture` for `hle::d3d12x::memory_report::tests::{the_rest_is_the_total_less_the_parts,the_line_beside_other_has_the_swap_chain_and_the_builds,a_snapshot_on_the_device_has_its_budget_and_owners}`. Ran `xcl-probe.exe --exact hle::d3d12x::bind::probe_two_pass_owner_lifetime_on_arc --test-threads=1 --nocapture`. The last stock test and the probe used the Arc mutex with `XCL_ADAPTER=A770` and `XCL_TWO_PASS_MB=64`. All four tests passed, with 0 failed, 0 ignored, and 0 skipped. All native children and the GPU wrapper exited 0. - The production two-pass allocator created one 3,211,264-byte committed default-heap UAV. The production snapshot’s `two-pass buffers` video owner and raw live counter both read 0 before allocation, 3,211,264 bytes while live, held for allocator release, and pooled, and 0 after reuse-pool retrieval and final drop. DXGI local usage went from 3,997,696 to 7,208,960 and back to 3,997,696 bytes. Local `other` stayed at 3,997,696 bytes. The rendered line and in-memory report record showed 3 MiB while the buffer was held. **Not tested** - Title rendering or submitted GPU work, allocator vtable routing, age-based eviction, swap chain, full JSON output, retail smoke, the workspace suite, and performance. **AI use** - T3 Code through the Codex harness, `gpt-6.2-sol` with high reasoning effort, ran the controls and synthetic probe, checked the raw outputs, and drafted this report.
DarkPanda69 commented 2026-11-27 20:12:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-27T20:12:29Z.


AMD run (listed as untested), with an RTX 3060 in the same PC: the 5 new tests pass on both, and the PR adds no failure.

Tested: head 71dad56 applied on its base nvidia-dev d1be810, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, card picked with XCL_ADAPTER (log: backend 'real' – AMD Radeon RX 9070 XT / – NVIDIA GeForce RTX 3060).
cargo test -p xcl --lib -- hle::d3d12x:: memory_report resource_census report:: --test-threads=4 --nocapture:

  • AMD RX 9070 XT (RDNA4), driver 32.0.32029.2010: 559 passed, 2 failed, 2 ignored (nvidia-dev alone: 554 passed, 2 failed).
  • NVIDIA RTX 3060, driver 32.0.16.1088: the same counts.

New and ok on both cards: a_snapshot_on_the_device_has_its_budget_and_owners, a_tracked_resource_counts_until_it_is_destroyed, the_line_beside_other_has_the_swap_chain_and_the_builds, the_rest_is_the_total_less_the_parts, the_table_keeps_the_last_snapshot_and_the_peak_of_video_memory.

The 2 failures are the same with and without the PR, on both cards, so they come from nvidia-dev at d1be810: texture_upload::tests::pieces_hold_the_texels_of_their_levels and gpu_parts_of_a_texture_go_up_and_the_rest_stays.

Not tested: the report's values in a title, XCL_VIEW_KEEP, an fp16 swap chain, a resize, Intel, Wine.

AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7227279056 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2999#issuecomment-7227279056). Originally posted by [DarkPanda69](https://github.com/DarkPanda69) on 2026-11-27T20:12:29Z. --- AMD run (listed as untested), with an RTX 3060 in the same PC: the 5 new tests pass on both, and the PR adds no failure. **Tested:** head `71dad56` applied on its base `nvidia-dev` `d1be810`, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, card picked with `XCL_ADAPTER` (log: `backend 'real' – AMD Radeon RX 9070 XT` / `– NVIDIA GeForce RTX 3060`). `cargo test -p xcl --lib -- hle::d3d12x:: memory_report resource_census report:: --test-threads=4 --nocapture`: - AMD RX 9070 XT (RDNA4), driver 32.0.32029.2010: 559 passed, 2 failed, 2 ignored (`nvidia-dev` alone: 554 passed, 2 failed). - NVIDIA RTX 3060, driver 32.0.16.1088: the same counts. New and ok on both cards: `a_snapshot_on_the_device_has_its_budget_and_owners`, `a_tracked_resource_counts_until_it_is_destroyed`, `the_line_beside_other_has_the_swap_chain_and_the_builds`, `the_rest_is_the_total_less_the_parts`, `the_table_keeps_the_last_snapshot_and_the_peak_of_video_memory`. The 2 failures are the same with and without the PR, on both cards, so they come from `nvidia-dev` at `d1be810`: `texture_upload::tests::pieces_hold_the_texels_of_their_levels` and `gpu_parts_of_a_texture_go_up_and_the_rest_stays`. **Not tested:** the report's values in a title, `XCL_VIEW_KEEP`, an fp16 swap chain, a resize, Intel, Wine. AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
thehollowedone commented 2026-11-28 00:27:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-28T00:27:41Z.


merge-check
base: ba9d1f9473
head: 71dad56b13
merge: conflicts in crates/xcl/src/hle/d3d12x/bind.rs and sparse.rs on the current nvidia-dev base; the base was force-pushed while this check ran
build: cargo build --workspace -> not run on this conflicted merge
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> not run on this conflicted merge; earlier results on superseded bases are not current-base evidence
review: In real::uma_imported_bytes, every Some in UMA_HEAPS is treated as an imported coherent window. With XCL_UMA_SHADOW=1, open_uma instead retains the CPU window and creates a separate D3D12_HEAP_TYPE_DEFAULT shadow heap, but stores that heap as Some too. memory_report::snapshot then subtracts its size from the D3D12 heap charge and attributes the same size to the UMA non-local row. On a discrete GPU, this hides real local video-memory usage and understates the owner split. Count only windows whose GPU heap actually shares the coherent CPU allocation (imported or driver-mapped), and add a shadow-mode regression for the owner/segment totals. The conflicts in bind.rs and sparse.rs also need a rebase and review of the resolved paths.
performance: The new tracker queries each XCL-created resource's allocation and heap properties and attaches a COM lifetime object by default; the snapshot runs on the existing activity interval. I did not measure frame time or a retail run on this head.
verdict: not yet: current-base conflicts and the shadow-heap accounting error need resolution and a fresh build, full suite, and required smoke evidence after the rebase
hardware / tool and model: Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti 12 GiB (621.35), DXC 1.8.2502.11; Codex (GPT-6.2 Sol) traced the merge and accounting paths and ran the superseded-base build and suite.

<!-- greyfinch-sync:ivall/xcl:comment:7230929229 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2999#issuecomment-7230929229). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-28T00:27:41Z. --- merge-check base: ba9d1f9473ebeb73fd5216c13a367d968f0a1c07 head: 71dad56b13e366dd36a64b14af8defa448a82ed3 merge: conflicts in `crates/xcl/src/hle/d3d12x/bind.rs` and `sparse.rs` on the current `nvidia-dev` base; the base was force-pushed while this check ran build: cargo build --workspace -> not run on this conflicted merge tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> not run on this conflicted merge; earlier results on superseded bases are not current-base evidence review: In `real::uma_imported_bytes`, every `Some` in `UMA_HEAPS` is treated as an imported coherent window. With `XCL_UMA_SHADOW=1`, `open_uma` instead retains the CPU window and creates a separate `D3D12_HEAP_TYPE_DEFAULT` shadow heap, but stores that heap as `Some` too. `memory_report::snapshot` then subtracts its size from the D3D12 heap charge and attributes the same size to the UMA non-local row. On a discrete GPU, this hides real local video-memory usage and understates the owner split. Count only windows whose GPU heap actually shares the coherent CPU allocation (imported or driver-mapped), and add a shadow-mode regression for the owner/segment totals. The conflicts in `bind.rs` and `sparse.rs` also need a rebase and review of the resolved paths. performance: The new tracker queries each XCL-created resource's allocation and heap properties and attaches a COM lifetime object by default; the snapshot runs on the existing activity interval. I did not measure frame time or a retail run on this head. verdict: not yet: current-base conflicts and the shadow-heap accounting error need resolution and a fresh build, full suite, and required smoke evidence after the rebase hardware / tool and model: Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti 12 GiB (621.35), DXC 1.8.2502.11; Codex (GPT-6.2 Sol) traced the merge and accounting paths and ran the superseded-base build and suite.
Aniseto commented 2026-11-28 07:16:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-28T07:16:01Z.


Ran the memory-report tests at 71dad56b on an NVIDIA Blackwell desktop part:

Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5, debug build.

XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::memory_report -- --test-threads=1
4 passed; 0 failed; 0 ignored; 0 measured; 1728 filtered out      (exit 0)

All four tests pass, including the_rest_is_the_total_less_the_parts, the_line_beside_other_has_the_swap_chain_and_the_builds and the peak/last snapshot table test. They are CPU-side report/serialization tests; no DXGI query or D3D12 device is involved. The thread has NVIDIA runs on RTX 4060 and RTX 3060 but no 5070 Ti, so this adds a third NVIDIA datapoint with driver 32.0.16.2124.

Not tested: a real XCL_ACTIVITY line from a title, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data.

AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.

<!-- greyfinch-sync:ivall/xcl:comment:7235823537 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2999#issuecomment-7235823537). Originally posted by [Aniseto](https://github.com/Aniseto) on 2026-11-28T07:16:01Z. --- Ran the memory-report tests at `71dad56b` on an NVIDIA Blackwell desktop part: Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5, debug build. ``` XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::memory_report -- --test-threads=1 4 passed; 0 failed; 0 ignored; 0 measured; 1728 filtered out (exit 0) ``` All four tests pass, including `the_rest_is_the_total_less_the_parts`, `the_line_beside_other_has_the_swap_chain_and_the_builds` and the peak/last snapshot table test. They are CPU-side report/serialization tests; no DXGI query or D3D12 device is involved. The thread has NVIDIA runs on RTX 4060 and RTX 3060 but no 5070 Ti, so this adds a third NVIDIA datapoint with driver 32.0.16.2124. Not tested: a real `XCL_ACTIVITY` line from a title, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data. AI-assisted (OpenCode), model: **DeepSeek V4.1 Flash Free** - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
cj-tomlin commented 2026-11-28 22:18:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by cj-tomlin on 2026-11-28T22:18:44Z.


@pr1sm-dev, a question before I duplicate anything: this PR now targets main (retargeted after #3203 merged nvidia-dev), but the head is still 71dad56 from 27 Nov and conflicts. Do you plan to rebase it onto main's report (d3e60ec)?

I'm on the commit side of memory by owner for #3211 (C), and my runs on main support the D3D12 heaps part this PR carries from #2697 (RTX 3080, within ~150 MB up to 37.9 GB of commit: details).

One thing for the rebase: memory_report::snapshot() on main, and uma_imported_bytes() here, call uma::get(), which creates the UMA window if it doesn't exist yet, so a report in a process without one (the child process @thehollowedone hit on #2697) maps a 4 GB window just to read its size. A read-only accessor would avoid that.

If you're rebasing, I'll leave it to you and test your head; if not, I'd bring just the heaps part, uma_imported_bytes() and that fix to main in a small PR, crediting @joeypercia, and leave the two-pass buffers and GPU-view tiles rows to you.

AI use: Claude Code (Claude Opus 5.5) drafted this; I checked it.

<!-- greyfinch-sync:ivall/xcl:comment:7246646822 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2999#issuecomment-7246646822). Originally posted by [cj-tomlin](https://github.com/cj-tomlin) on 2026-11-28T22:18:44Z. --- @pr1sm-dev, a question before I duplicate anything: this PR now targets `main` (retargeted after #3203 merged `nvidia-dev`), but the head is still `71dad56` from 27 Nov and conflicts. Do you plan to rebase it onto `main`'s report (d3e60ec)? I'm on the commit side of `memory by owner` for #3211 (C), and my runs on `main` support the `D3D12 heaps` part this PR carries from #2697 (RTX 3080, within ~150 MB up to 37.9 GB of commit: [details](https://github.com/xcl-dev/xcl/issues/3211#issuecomment-7246572722)). One thing for the rebase: `memory_report::snapshot()` on `main`, and `uma_imported_bytes()` here, call `uma::get()`, which creates the UMA window if it doesn't exist yet, so a report in a process without one (the child process @thehollowedone hit on #2697) maps a 4 GB window just to read its size. A read-only accessor would avoid that. If you're rebasing, I'll leave it to you and test your head; if not, I'd bring just the heaps part, `uma_imported_bytes()` and that fix to `main` in a small PR, crediting @joeypercia, and leave the two-pass buffers and GPU-view tiles rows to you. AI use: Claude Code (Claude Opus 5.5) drafted this; I checked it.
cj-tomlin commented 2026-11-29 09:44:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by cj-tomlin on 2026-11-29T09:44:34Z.


@pr1sm-dev no answer yet, so I've opened the small part on main as two PRs: #3343 (the report no longer makes the UMA window, @thehollowedone's accessor and regression) and #3344 stacked on it (the D3D12 heaps commit part and uma_imported_bytes() from #2697, crediting @joeypercia). The two-pass buffers and GPU-view tiles rows stay yours. If you rebase this first, I'll close mine.

AI use: Claude Code (Claude Opus 5.5) drafted this; I checked it.

<!-- greyfinch-sync:ivall/xcl:comment:7253965419 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2999#issuecomment-7253965419). Originally posted by [cj-tomlin](https://github.com/cj-tomlin) on 2026-11-29T09:44:34Z. --- @pr1sm-dev no answer yet, so I've opened the small part on `main` as two PRs: #3343 (the report no longer makes the UMA window, @thehollowedone's accessor and regression) and #3344 stacked on it (the `D3D12 heaps` commit part and `uma_imported_bytes()` from #2697, crediting @joeypercia). The two-pass buffers and GPU-view tiles rows stay yours. If you rebase this first, I'll close mine. AI use: Claude Code (Claude Opus 5.5) drafted this; I checked it.
Foniass commented 2026-12-01 09:18:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:18:18Z.


Triage (#1607) – head 71dad56

This PR is stacked on #2697, #2750 and #2776, and all three were closed. Main has its own adaptation of #2697 (d3e60ecb, "report memory by tracked owner", with owners such as "tracked committed sampled textures"). The first three commits here re-add the original 424-line memory_report.rs and resource_census.rs, so the PR conflicts with main. Merged as it is, it would replace main's version.
The last five commits (the two-pass buffers and GPU-view tiles rows, the census places for sparse readback jobs and texture upload jobs, and the swap chain and pipeline builds line) are not on main, and no other open PR adds them. They need to be rebuilt on main's memory_report.rs, without the closed base commits.
No problems found in those five commits.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7306508040 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2999#issuecomment-7306508040). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T09:18:18Z. --- **Triage (#1607)** – head 71dad56 This PR is stacked on #2697, #2750 and #2776, and all three were closed. Main has its own adaptation of #2697 (d3e60ecb, "report memory by tracked owner", with owners such as "tracked committed sampled textures"). The first three commits here re-add the original 424-line `memory_report.rs` and `resource_census.rs`, so the PR conflicts with main. Merged as it is, it would replace main's version. The last five commits (the two-pass buffers and GPU-view tiles rows, the census places for sparse readback jobs and texture upload jobs, and the swap chain and pipeline builds line) are not on main, and no other open PR adds them. They need to be rebuilt on main's `memory_report.rs`, without the closed base commits. No problems found in those five commits. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2999:upstream-pr/2999'
git switch 'upstream-pr/2999'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2999'
git switch 'upstream-pr/2999'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2999'
git switch 'upstream-pr/2999'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2999'
git switch 'main'
git merge --squash 'upstream-pr/2999'
git switch 'main'
git merge --ff-only 'upstream-pr/2999'
git switch 'main'
git merge 'upstream-pr/2999'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2999
No description provided.