D3D12.X: log buffers placed outside the memory windows and their first use #2791

Open
MacieGx wants to merge 3 commits from upstream-pr/2801 into main
MacieGx commented 2026-11-26 13:50:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by MacieGx on 2026-11-26T13:50:55Z.


Stacked on #2799; only the top commit belongs here.

Two log lines, each for the first four occurrences and then at every power of two:

  • where a buffer placed outside the memory windows lives in the sparse windows;
  • when a lazily placed buffer gets its video memory, with the MB placed and the MB in use so far.

They are what a run log needs to show whether a title's GPU-only buffers were placed and reached. Part of #505.

What is in it

  • crates/xcl/src/hle/d3d12x/real.rs: the placement line in place_outside_buffer.
  • crates/xcl/src/hle/d3d12x/sparse.rs: bytes placed lazily and in use (LAZY_BYTES), and the first-use line in use_range.

Tested

  • NVIDIA GeForce RTX 5080 16 GB, driver 621.24, Windows 11 Pro 26200, Rust stable MSVC, debug: cargo build -p xcl, no new warnings. Logging only, no test.
  • NVIDIA GeForce RTX 5080 16 GB (driver 621.24 = 32.0.16.2124), AMD Ryzen 7 5800X3D, 32 GB, Windows 11 Pro 10.0.26200, Rust 1.100.0 stable-x86_64-pc-windows-msvc, release.
  • cargo build --release --workspace && cargo test --release --workspace --no-fail-fast -- --test-threads=4 on efcfdc3: 1437 passed, 4 failed, 47 ignored. The 4 failures are gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3 (CreateComputePipelineState: out of memory (0x8007000E)), which fail on main as well. SKIPPED (the same as on main): 21 "no wave64", 3 refused by the per-lane form, heap_window_out_of_memory_falls_back_to_the_switch_form, pso_measurement_compiles_an_exact_synthetic_record.

Regression run
main:

xcl-smoke v1
commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb
gpu: NVIDIA GeForce RTX 5080
title: 16b5e5d4
seconds: 60
exit: 0x0
frames shown: 1383 (PresentX 1383)
presents per 2 s (last 3): 35 52 56
device removals: 0
crashes: 0
peak commit: 19703 MB

this PR:

xcl-smoke v1
commit: efcfdc30f5caf8038df6ed2a1c0d834d30ad61a3
gpu: NVIDIA GeForce RTX 5080
title: 16b5e5d4
seconds: 60
exit: 0x0
frames shown: 1616 (PresentX 1616)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14505 MB

Not tested

  • The lines in a title run with this branch (the lab tree logged the same facts in its own wording).

AI use

  • Claude Code with Claude Opus 5.5: wrote the change and this description; Claude Opus 5.5 (coordinating) ran the full suite and the regression runs and reviewed the diff.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5511246439 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2801). Originally posted by [MacieGx](https://github.com/MacieGx) on 2026-11-26T13:50:55Z. --- Stacked on #2799; only the top commit belongs here. Two log lines, each for the first four occurrences and then at every power of two: - where a buffer placed outside the memory windows lives in the sparse windows; - when a lazily placed buffer gets its video memory, with the MB placed and the MB in use so far. They are what a run log needs to show whether a title's GPU-only buffers were placed and reached. Part of #505. **What is in it** - `crates/xcl/src/hle/d3d12x/real.rs`: the placement line in `place_outside_buffer`. - `crates/xcl/src/hle/d3d12x/sparse.rs`: bytes placed lazily and in use (`LAZY_BYTES`), and the first-use line in `use_range`. **Tested** - NVIDIA GeForce RTX 5080 16 GB, driver 621.24, Windows 11 Pro 26200, Rust stable MSVC, debug: `cargo build -p xcl`, no new warnings. Logging only, no test. - NVIDIA GeForce RTX 5080 16 GB (driver 621.24 = 32.0.16.2124), AMD Ryzen 7 5800X3D, 32 GB, Windows 11 Pro 10.0.26200, Rust 1.100.0 `stable-x86_64-pc-windows-msvc`, release. - `cargo build --release --workspace && cargo test --release --workspace --no-fail-fast -- --test-threads=4` on `efcfdc3`: 1437 passed, 4 failed, 47 ignored. The 4 failures are `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3` (`CreateComputePipelineState: out of memory (0x8007000E)`), which fail on `main` as well. SKIPPED (the same as on `main`): 21 "no wave64", 3 refused by the per-lane form, `heap_window_out_of_memory_falls_back_to_the_switch_form`, `pso_measurement_compiles_an_exact_synthetic_record`. **Regression run** main: ``` xcl-smoke v1 commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb gpu: NVIDIA GeForce RTX 5080 title: 16b5e5d4 seconds: 60 exit: 0x0 frames shown: 1383 (PresentX 1383) presents per 2 s (last 3): 35 52 56 device removals: 0 crashes: 0 peak commit: 19703 MB ``` this PR: ``` xcl-smoke v1 commit: efcfdc30f5caf8038df6ed2a1c0d834d30ad61a3 gpu: NVIDIA GeForce RTX 5080 title: 16b5e5d4 seconds: 60 exit: 0x0 frames shown: 1616 (PresentX 1616) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14505 MB ``` **Not tested** - The lines in a title run with this branch (the lab tree logged the same facts in its own wording). **AI use** - Claude Code with Claude Opus 5.5: wrote the change and this description; Claude Opus 5.5 (coordinating) ran the full suite and the regression runs and reviewed the diff. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Decodere commented 2026-11-26 16:06:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-26T15:52:51Z.


Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2801 at efcfdc30f5caf8038df6ed2a1c0d834d30ad61a3 (stacked on PR #2799 321ada6adef2953aeb0f49720b7f929fee1693a9; merge-base origin/main b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7). Measurements, live log verification, and targeted test results only; not a full source review.

Setup

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6 cores / 12 threads), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200
  • Toolchain / caches: rustc 1.100.0 (0ef1bc386 2026-11-09), DXC 1.9.2609.5, release builds, warm DXIL/pipeline caches, quiet machine (zero concurrent builds/tests during timed runs)
  • Workload: Retail workload title: 29640639 via scripts/smoke.ps1 -Seconds 60 (XCL_NETWORK=0, default flags, no input)

Targeted RTX 4060 release unit tests (efcfdc30)

  • cargo test --release -p xcl --lib hle::d3d12x::sparse::: 19 passed, 0 failed, 1 ignored (0.38 s, early_commit_timing ignored, 0 SKIPPED; includes a_lazy_buffer_gets_its_tiles_at_its_first_use).
  • cargo test --release -p xcl --lib hle::d3d12x::bind::: 10 passed, 0 failed, 0 ignored (0.30 s, 0 SKIPPED; includes root_addresses_in_outside_buffers_name_their_address_in_the_windows and table_addresses_follow_the_table_arguments).
  • cargo test --release -p xcl --lib hle::d3d12x::device_x::: 14 passed, 0 failed, 0 ignored (0.20 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib hle::d3d12x::list_x::: 40 passed, 0 failed, 0 ignored (0.70 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib hle::d3d12x::real::: 62 passed, 0 failed, 0 ignored (0.69 s, 0 SKIPPED; includes outside_buffer_tests::cpu_pages_are_found_anywhere_in_the_range and outside_buffer_tests::outside_buffer_addresses_keep_their_offset).

Live PR #2801 log verification (xcl.log, 60 s RTX 4060 run)

  • place_outside_buffer cadence (real.rs): All 9 expected lines (k <= 4 || k.is_power_of_two()) fired live during startup (#1, #2, #3, #4, #8, #16, #32, #64, #128), confirming >= 128 and < 256 buffers were placed outside the memory windows in this run:
[   17.584][ 1576][INFO ] D3D12.X: buffer #1 placed outside the memory windows at 0x140c240000 (52428800 bytes) lives at 0x469a00000 in the sparse windows
[   17.586][ 1576][INFO ] D3D12.X: buffer #2 placed outside the memory windows at 0x140f440000 (26214400 bytes) lives at 0x46cc00000 in the sparse windows
[   17.613][ 1576][INFO ] D3D12.X: buffer #3 placed outside the memory windows at 0x146e370000 (1048576 bytes) lives at 0x463a70000 in the sparse windows
[   17.615][ 1576][INFO ] D3D12.X: buffer #4 placed outside the memory windows at 0x146e470000 (25165824 bytes) lives at 0x46e500000 in the sparse windows
[   17.623][ 1576][INFO ] D3D12.X: buffer #8 placed outside the memory windows at 0x1411140000 (393216 bytes) lives at 0x470090000 in the sparse windows
[   17.648][ 1576][INFO ] D3D12.X: buffer #16 placed outside the memory windows at 0x1469e70000 (9437184 bytes) lives at 0x475270000 in the sparse windows
[   17.711][ 1576][INFO ] D3D12.X: buffer #32 placed outside the memory windows at 0x1414b00000 (524288 bytes) lives at 0x479c00000 in the sparse windows
[   17.727][ 1576][INFO ] D3D12.X: buffer #64 placed outside the memory windows at 0x145f940000 (262144 bytes) lives at 0x47eb00000 in the sparse windows
[   17.809][ 1576][INFO ] D3D12.X: buffer #128 placed outside the memory windows at 0x144e9e0000 (3686400 bytes) lives at 0x48cbd0000 in the sparse windows
  • Lazy first-use backing (sparse.rs): 0 sparse windows: lazily placed buffer #k ... gets its video memory at its first use lines fired during the 60 s no-input run, directly explaining why the #2799 local VRAM savings held steady throughout the run (5,610 MB peak / 5,550 MB end local VRAM, 4,651 MB end non-local VRAM, 13,404 MB peak commit — matching parent #2799 321ada6a at 5,610 MB peak / 5,550 MB end local VRAM and 13,386 MB peak commit, vs 14,018 MB peak commit on main b49be183).

Paired 60 s RTX 4060 smoke (b49be183 / 321ada6a vs efcfdc30)

Merge-base origin/main (b49be183):

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

Parent PR #2799 (321ada6a):

xcl-smoke v1
commit: 321ada6adef2953aeb0f49720b7f929fee1693a9
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: 13386 MB

PR #2801 head (efcfdc30):

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

Limits of coverage

  • The sparse windows: lazily placed buffer #k ... gets its video memory at its first use log line did not trigger live during this 60 s no-input menu/intro smoke (0 hits in xcl.log); the lazy first-use backing path was exercised by the release unit test hle::d3d12x::sparse::tests::a_lazy_buffer_gets_its_tiles_at_its_first_use, not by interactive world-load draws.
  • Full workspace test suite was not re-run on efcfdc30 (only the 145 targeted release tests across sparse::, bind::, device_x::, list_x::, and real:: plus the 60 s quiet smoke).
  • Single discrete NVIDIA 8 GB GPU (RTX 4060) on native Windows 11; no AMD, Intel, or Wine/Linux run on this host.

AI use

Ran the targeted release unit tests, quiet 60 s smoke run, and xcl.log log/memory extraction with assistance from Google Antigravity (Gemini 4 Neon); all test counts, log lines, memory numbers, and smoke blocks were extracted directly from cargo test, xcl.log, and scripts/smoke.ps1 outputs.

<!-- greyfinch-sync:ivall/xcl:comment:7196876680 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2801#issuecomment-7196876680). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-26T15:52:51Z. --- **Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2801 at `efcfdc30f5caf8038df6ed2a1c0d834d30ad61a3`** (stacked on PR #2799 `321ada6adef2953aeb0f49720b7f929fee1693a9`; merge-base `origin/main` `b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`). Measurements, live log verification, and targeted test results only; not a full source review. ### Setup - **GPU:** NVIDIA GeForce RTX 4060 (8 GB / `7956 MiB` reported by D3D12), driver `32.0.16.2114` (NVIDIA `621.14`, WDDM 3.2) - **CPU / RAM / OS:** Intel Core i5-11400F (6 cores / 12 threads), 32 GB RAM (`31.9 GiB` usable), Windows 11 Home `26200` - **Toolchain / caches:** `rustc 1.100.0 (0ef1bc386 2026-11-09)`, DXC `1.9.2609.5`, release builds, warm DXIL/pipeline caches, quiet machine (zero concurrent builds/tests during timed runs) - **Workload:** Retail workload `title: 29640639` via `scripts/smoke.ps1 -Seconds 60` (`XCL_NETWORK=0`, default flags, no input) ### Targeted RTX 4060 release unit tests (`efcfdc30`) - `cargo test --release -p xcl --lib hle::d3d12x::sparse::`: **19 passed, 0 failed, 1 ignored** (`0.38 s`, `early_commit_timing` ignored, `0` `SKIPPED`; includes `a_lazy_buffer_gets_its_tiles_at_its_first_use`). - `cargo test --release -p xcl --lib hle::d3d12x::bind::`: **10 passed, 0 failed, 0 ignored** (`0.30 s`, `0` `SKIPPED`; includes `root_addresses_in_outside_buffers_name_their_address_in_the_windows` and `table_addresses_follow_the_table_arguments`). - `cargo test --release -p xcl --lib hle::d3d12x::device_x::`: **14 passed, 0 failed, 0 ignored** (`0.20 s`, `0` `SKIPPED`). - `cargo test --release -p xcl --lib hle::d3d12x::list_x::`: **40 passed, 0 failed, 0 ignored** (`0.70 s`, `0` `SKIPPED`). - `cargo test --release -p xcl --lib hle::d3d12x::real::`: **62 passed, 0 failed, 0 ignored** (`0.69 s`, `0` `SKIPPED`; includes `outside_buffer_tests::cpu_pages_are_found_anywhere_in_the_range` and `outside_buffer_tests::outside_buffer_addresses_keep_their_offset`). ### Live PR #2801 log verification (`xcl.log`, 60 s RTX 4060 run) - **`place_outside_buffer` cadence (`real.rs`):** All 9 expected lines (`k <= 4 || k.is_power_of_two()`) fired live during startup (`#1`, `#2`, `#3`, `#4`, `#8`, `#16`, `#32`, `#64`, `#128`), confirming `>= 128` and `< 256` buffers were placed outside the memory windows in this run: ```text [ 17.584][ 1576][INFO ] D3D12.X: buffer #1 placed outside the memory windows at 0x140c240000 (52428800 bytes) lives at 0x469a00000 in the sparse windows [ 17.586][ 1576][INFO ] D3D12.X: buffer #2 placed outside the memory windows at 0x140f440000 (26214400 bytes) lives at 0x46cc00000 in the sparse windows [ 17.613][ 1576][INFO ] D3D12.X: buffer #3 placed outside the memory windows at 0x146e370000 (1048576 bytes) lives at 0x463a70000 in the sparse windows [ 17.615][ 1576][INFO ] D3D12.X: buffer #4 placed outside the memory windows at 0x146e470000 (25165824 bytes) lives at 0x46e500000 in the sparse windows [ 17.623][ 1576][INFO ] D3D12.X: buffer #8 placed outside the memory windows at 0x1411140000 (393216 bytes) lives at 0x470090000 in the sparse windows [ 17.648][ 1576][INFO ] D3D12.X: buffer #16 placed outside the memory windows at 0x1469e70000 (9437184 bytes) lives at 0x475270000 in the sparse windows [ 17.711][ 1576][INFO ] D3D12.X: buffer #32 placed outside the memory windows at 0x1414b00000 (524288 bytes) lives at 0x479c00000 in the sparse windows [ 17.727][ 1576][INFO ] D3D12.X: buffer #64 placed outside the memory windows at 0x145f940000 (262144 bytes) lives at 0x47eb00000 in the sparse windows [ 17.809][ 1576][INFO ] D3D12.X: buffer #128 placed outside the memory windows at 0x144e9e0000 (3686400 bytes) lives at 0x48cbd0000 in the sparse windows ``` - **Lazy first-use backing (`sparse.rs`):** **0** `sparse windows: lazily placed buffer #k ... gets its video memory at its first use` lines fired during the 60 s no-input run, directly explaining why the `#2799` local VRAM savings held steady throughout the run (`5,610 MB` peak / `5,550 MB` end local VRAM, `4,651 MB` end non-local VRAM, `13,404 MB` peak commit — matching parent `#2799` `321ada6a` at `5,610 MB` peak / `5,550 MB` end local VRAM and `13,386 MB` peak commit, vs `14,018 MB` peak commit on `main` `b49be183`). ### Paired 60 s RTX 4060 smoke (`b49be183` / `321ada6a` vs `efcfdc30`) Merge-base `origin/main` (`b49be183`): ``` xcl-smoke v1 commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1518 (PresentX 1518) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14018 MB ``` Parent PR #2799 (`321ada6a`): ``` xcl-smoke v1 commit: 321ada6adef2953aeb0f49720b7f929fee1693a9 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: 13386 MB ``` PR #2801 head (`efcfdc30`): ``` xcl-smoke v1 commit: efcfdc30f5caf8038df6ed2a1c0d834d30ad61a3 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1535 (PresentX 1536) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13404 MB ``` ### Limits of coverage - The `sparse windows: lazily placed buffer #k ... gets its video memory at its first use` log line did not trigger live during this 60 s no-input menu/intro smoke (`0` hits in `xcl.log`); the lazy first-use backing path was exercised by the release unit test `hle::d3d12x::sparse::tests::a_lazy_buffer_gets_its_tiles_at_its_first_use`, not by interactive world-load draws. - Full workspace test suite was not re-run on `efcfdc30` (only the 145 targeted release tests across `sparse::`, `bind::`, `device_x::`, `list_x::`, and `real::` plus the 60 s quiet smoke). - Single discrete NVIDIA 8 GB GPU (`RTX 4060`) on native Windows 11; no AMD, Intel, or Wine/Linux run on this host. ### AI use Ran the targeted release unit tests, quiet 60 s smoke run, and `xcl.log` log/memory extraction with assistance from Google Antigravity (Gemini 4 Neon); all test counts, log lines, memory numbers, and smoke blocks were extracted directly from `cargo test`, `xcl.log`, and `scripts/smoke.ps1` outputs.
CharlyRien commented 2026-11-28 02:03:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by CharlyRien on 2026-11-28T02:03:13Z.


Test report for efcfdc3 as it is (the PR's head, so with #2798 and #2799 under it; base b49be18), on an RTX 3090.

Tested

  • RTX 3090 24 GB (Resizable BAR off), driver 616.56, Ryzen 9 5950X, 32 GB RAM, Windows 11 22631, Rust 1.100.0, debug for the suite, release for the smoke run.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 on efcfdc3, run with XCL_REQUIRE_GPU=mesh set (this card has mesh shaders but no wave64): 1434 passed, 7 failed, 47 ignored.
    • The 7 failures are skips that XCL_REQUIRE_GPU=mesh turns into failures, not test failures: skip_test fails under mesh any skip whose reason is not exactly no wave64. Their messages: 6 tests of gpu::recomp::lower_dxil::tests (f16_programs_on_the_gpu, f32_programs_on_the_gpu, f64_programs_on_the_gpu, integer_programs_on_the_gpu, const_and_null_mask_operands_agree_with_hlsl_on_the_gpu, mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu) say "<name>, wave64: no wave64, but XCL_REQUIRE_GPU=mesh", and heap_window_out_of_memory_falls_back_to_the_switch_form says "no heap windows, but XCL_REQUIRE_GPU=mesh". With the command exactly as in CONTRIBUTING (no XCL_REQUIRE_GPU) these 7 are SKIPPED lines (as in the author's run); I did not rerun it.
    • SKIPPED on this adapter: 9 lines, 8 "no wave64" and 1 "f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))".
  • The retail title through scripts/smoke.ps1, 200 s, below. The PR's log has 9 "placed outside the memory windows" lines (buffers #1 to #128, at 45 s) and 6 "lazily placed buffer" lines, the last (#16) at 183 s with 240 of 570 MB placed.

Regression run
main 6089122 and this head, same machine, same title, 200 s, the same scripted A presses (XCL_PRESS_A_AT), XCL_PREPARE=0 on both, each run with its own copy of the same shader cache. Both runs used main's scripts/smoke.ps1.

main:

xcl-smoke v1
commit: 6089122a1c96dff16e93b6fdf04c8ed20cfb6102
gpu: NVIDIA GeForce RTX 3090
title: 16b5e5d4
seconds: 200
exit: 0x0
frames shown: 1723 (PresentX 1723)
presents per 2 s (last 3): 0 0 2
device removals: 0
crashes: 0
peak commit: 29921 MB

this PR's head:

xcl-smoke v1
commit: efcfdc30f5caf8038df6ed2a1c0d834d30ad61a3
gpu: NVIDIA GeForce RTX 3090
title: 16b5e5d4
seconds: 200
exit: 0x0
frames shown: 1544 (PresentX 1544)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 34237 MB

Frames 89.6 % of main's, peak commit 114.4 % of main's, no device removal and no crash on this head. One run each.

Not tested

  • Whether the lines report every buffer the title places outside the windows (only their count and first lines were read).
  • This head merged into current main (it merges without conflicts here; the run is of the head as it is).
  • AMD, Intel.

AI use: Claude Code, model Claude Opus 5.5. It built the commits, ran the suite and the two smoke runs on the machine above, read the logs and wrote this. The person running these tests asked for this post.

<!-- greyfinch-sync:ivall/xcl:comment:7232096997 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2801#issuecomment-7232096997). Originally posted by [CharlyRien](https://github.com/CharlyRien) on 2026-11-28T02:03:13Z. --- Test report for `efcfdc3` as it is (the PR's head, so with #2798 and #2799 under it; base `b49be18`), on an RTX 3090. **Tested** - RTX 3090 24 GB (Resizable BAR off), driver 616.56, Ryzen 9 5950X, 32 GB RAM, Windows 11 22631, Rust 1.100.0, debug for the suite, release for the smoke run. - `cargo test --workspace --no-fail-fast -- --test-threads=4` on `efcfdc3`, run with `XCL_REQUIRE_GPU=mesh` set (this card has mesh shaders but no wave64): 1434 passed, 7 failed, 47 ignored. - The 7 failures are skips that `XCL_REQUIRE_GPU=mesh` turns into failures, not test failures: `skip_test` fails under `mesh` any skip whose reason is not exactly `no wave64`. Their messages: 6 tests of `gpu::recomp::lower_dxil::tests` (`f16_programs_on_the_gpu`, `f32_programs_on_the_gpu`, `f64_programs_on_the_gpu`, `integer_programs_on_the_gpu`, `const_and_null_mask_operands_agree_with_hlsl_on_the_gpu`, `mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu`) say "`<name>, wave64: no wave64, but XCL_REQUIRE_GPU=mesh`", and `heap_window_out_of_memory_falls_back_to_the_switch_form` says "`no heap windows, but XCL_REQUIRE_GPU=mesh`". With the command exactly as in CONTRIBUTING (no `XCL_REQUIRE_GPU`) these 7 are `SKIPPED` lines (as in the author's run); I did not rerun it. - `SKIPPED` on this adapter: 9 lines, 8 "no wave64" and 1 "f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))". - The retail title through `scripts/smoke.ps1`, 200 s, below. The PR's log has 9 "placed outside the memory windows" lines (buffers #1 to #128, at 45 s) and 6 "lazily placed buffer" lines, the last (#16) at 183 s with 240 of 570 MB placed. **Regression run** `main` `6089122` and this head, same machine, same title, 200 s, the same scripted A presses (`XCL_PRESS_A_AT`), `XCL_PREPARE=0` on both, each run with its own copy of the same shader cache. Both runs used `main`'s `scripts/smoke.ps1`. main: ``` xcl-smoke v1 commit: 6089122a1c96dff16e93b6fdf04c8ed20cfb6102 gpu: NVIDIA GeForce RTX 3090 title: 16b5e5d4 seconds: 200 exit: 0x0 frames shown: 1723 (PresentX 1723) presents per 2 s (last 3): 0 0 2 device removals: 0 crashes: 0 peak commit: 29921 MB ``` this PR's head: ``` xcl-smoke v1 commit: efcfdc30f5caf8038df6ed2a1c0d834d30ad61a3 gpu: NVIDIA GeForce RTX 3090 title: 16b5e5d4 seconds: 200 exit: 0x0 frames shown: 1544 (PresentX 1544) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 34237 MB ``` Frames 89.6 % of `main`'s, peak commit 114.4 % of `main`'s, no device removal and no crash on this head. One run each. **Not tested** - Whether the lines report every buffer the title places outside the windows (only their count and first lines were read). - This head merged into current `main` (it merges without conflicts here; the run is of the head as it is). - AMD, Intel. **AI use:** Claude Code, model Claude Opus 5.5. It built the commits, ran the suite and the two smoke runs on the machine above, read the logs and wrote this. The person running these tests asked for this post.
Foniass commented 2026-12-01 08:59:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:59:46Z.


Triage (#1607) – head efcfdc3

Stacked on #2799 (which is stacked on #2798); only the top commit efcfdc3 belongs here, and it adds two rate-limited log lines (real.rs:place_outside_buffer, sparse.rs:use_range) plus the LAZY_BYTES counters. The shared lines with #2799 / #2798 are those base commits, not a duplicate.
No problems found in the top commit. The stack conflicts with main and needs a rebase.
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:7306065238 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2801#issuecomment-7306065238). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:59:46Z. --- **Triage (#1607)** – head efcfdc3 Stacked on #2799 (which is stacked on #2798); only the top commit `efcfdc3` belongs here, and it adds two rate-limited log lines (`real.rs:place_outside_buffer`, `sparse.rs:use_range`) plus the `LAZY_BYTES` counters. The shared lines with #2799 / #2798 are those base commits, not a duplicate. No problems found in the top commit. The stack conflicts with main and needs a rebase. 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/2801:upstream-pr/2801'
git switch 'upstream-pr/2801'

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/2801'
git switch 'upstream-pr/2801'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2801'
git switch 'upstream-pr/2801'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2801'
git switch 'main'
git merge --squash 'upstream-pr/2801'
git switch 'main'
git merge --ff-only 'upstream-pr/2801'
git switch 'main'
git merge 'upstream-pr/2801'
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!2791
No description provided.