Recompiler: an access may take its base address's window (XCL_WINDOW_NO_CARRY) #2486

Open
S1m0ne1997 wants to merge 1 commit from upstream-pr/2496 into main
S1m0ne1997 commented 2026-11-25 20:35:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by S1m0ne1997 on 2026-11-25T20:35:37Z.


The direct DXIL translator selects the memory window of every access from its 64-bit address, with the offsets added and carried into the high dword (window_at). Each access then gets its own window index, range check and heap handle, and accesses off the same base share none of them. XCL's allocations never straddle windows (gpu::uma), and with the switch the title's reservations do not either. So an access inside the allocation its base points into never carries or borrows: its window is its base's. With XCL_WINDOW_NO_CARRY=1 and heap windows (XCL_HEAP_WINDOWS=1) the window is taken from the base address, which makes the driver's code for big compute programs smaller. Root-UAV windows keep the carry: they have no bounds, so an access that leaves its allocation and wraps inside its base's window could hang the GPU (a window test did on an RTX 3090, below); heap views read 0 past the window's end. Off by default.

Part of #2403: on NVIDIA the code of the pipelines in use is limited, and the retail title's world needs more than that.

What is in it

  • crates/xcl/src/gpu/dxil/lower_window.rs: no_carry() (XCL_WINDOW_NO_CARRY=1, or with_no_carry for a thread); with it and heap windows, window_at selects the window from the base's high dword.
  • crates/xcl/src/gpu/dxil/kernel.rs: window_no_carry(); the translator thread takes its caller's setting.
  • crates/xcl/src/gpu/recomp/pso.rs: the setting is part of the translation cache's identity, as XCL_DIRECT_COMPACT is, and of the direct translator's output identity (programs that go direct as enormous without XCL_DIRECT_DXIL).
  • crates/xcl/src/gpu/uma.rs: with the switch, a title reservation (sparse_reserve) of 4 GiB or less that would cross a window boundary starts at the next window, so nothing the title places in it spans two windows (pointed out by @Kalmarv below). A larger reservation cannot stay in one window and is logged. Where no window has room for a reservation in one piece, it is placed across a boundary as without the switch (and logged) rather than refused: a reservation the sparse windows refuse goes to plain memory (kernelx), which the switch must not make more frequent. Test a_reservation_crosses_a_boundary_when_no_window_has_room (fails without this). Test title_reservations_stay_in_one_window_without_the_carry.
  • crates/xcl/src/gpu/recomp/tests.rs: the two carry tests pin the switch off (with_no_carry(false)). gpu_window_no_carry_reads_inside_allocations_alike. Accesses inside an allocation (global loads with positive and negative offsets, an s_load with an offset) read the same words with and without the switch, with the windows in root UAVs and in the descriptor heap, the DXIL is smaller with it with heap windows and unchanged with root UAVs. A 32-bit (hi == 0) pointer still reads window 0, and a base outside the UMA still reads 0.

Tested

  • NVIDIA GeForce RTX 4090 24 GB (driver 621.40), AMD Ryzen 9 9950X3D, Windows 11 Home 26300, rustc 1.100.0, debug for the tests, release for the runs.
  • cargo build --workspace, then cargo test --workspace -- --test-threads=4 at the head: 1438 passed, 0 failed, 47 ignored. SKIPPED: the wave64 cases (no wave64 on this card), pso_measurement_compiles_an_exact_synthetic_record (no Developer Mode), the D3D12 debug layer tests (no d3d12SDKLayers.dll), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • With XCL_DIRECT_DXIL=1 XCL_WINDOW_NO_CARRY=1, the whole suite again: 1438 passed, 0 failed, 47 ignored. The two existing tests that check the 64-bit sum on purpose (gpu_window_at_32bit_carry_edge_cases, memory_windows_reject_out_of_uma_aliasing) now pin the switch off for their translations, so they test the carry path whatever the environment; the new test covers the path without it.
  • Driver code (GetCachedBlob) of the retail title's compute programs, as the runtime translates them (direct DXIL, heap windows), 12 programs of each family:
family without with XCL_WINDOW_NO_CARRY=1 change
CS_RaytracingResolve 8129 KB 6692 KB −17.7 %
CS_IrradianceCache_Shade 2747 KB 2411 KB −12.2 %
CS_ShadowRenderTiled 7854 KB 7393 KB −5.9 %
  • The retail title with the switch, on a local tree of an older main (0829441) with #2057 and the same change (direct DXIL, heap windows, warm caches): the world-load removal of #2403 came 72 s after the start of the world load, against 8–9 s in two runs without it. Bound at the removal: 1295 pipelines, against 1145–1172. It is still removed: this makes the limit come later, it does not avoid it.

Regression run (the switch is off by default, so this run is the default path)

main:

xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 4090
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1318 (PresentX 1318)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 17225 MB

PR:

xcl-smoke v1
commit: 816406772fcc319fac5f535e1753c966a0146d8b
gpu: NVIDIA GeForce RTX 4090
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1595 (PresentX 1595)
presents per 2 s (last 3): 51 53 40
device removals: 0
crashes: 0
peak commit: 21394 MB

PR with XCL_WINDOW_NO_CARRY=1 XCL_HEAP_WINDOWS=1 (the switch on; same head, same script):

xcl-smoke v1
commit: 816406772fcc319fac5f535e1753c966a0146d8b
gpu: NVIDIA GeForce RTX 4090
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1624 (PresentX 1624)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 18680 MB

The switch-off peak commit (21,394 MB) is 124 % of main's in this pair; with the switch off this PR's code paths are main's, and the same arm read 16,474–18,374 MB in the runs of the earlier heads.

Not tested

  • Title reservations over 4 GiB: the retail title makes two (24,576 and 6,236 MB). They still span windows; an access from a base in one that crosses a boundary stays in its base's window. No placed title buffer crossing a boundary was seen (reported below), but raw accesses were not checked.
  • Root-UAV windows: the switch does nothing there.
  • AMD, Intel, other NVIDIA cards and drivers; wave64 hardware (see the reports below for other cards).
  • The HLSL path: it keeps the 64-bit sum (the switch applies to direct DXIL only).
  • Accesses that leave their allocation: with the switch they wrap inside their base's window instead of reaching the next window (or reading 0 past the UMA). No title access of that kind was seen, but I did not check every program for it.
  • The title in the world on this head with the switch on (the world run above was on the older local tree); the 60 s run with the switch covers the menus only. How much address space the single-window reservations skip over a session: no reservation failed in that run, but the log does not record each one.

AI use

  • Claude Code (Claude Opus 5.5): measured where the code size comes from, wrote the change and the test, ran the suite, the smoke runs and the title, and wrote this description. I checked the results and pressed through the title's menus.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5498745008 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2496). Originally posted by [S1m0ne1997](https://github.com/S1m0ne1997) on 2026-11-25T20:35:37Z. --- The direct DXIL translator selects the memory window of every access from its 64-bit address, with the offsets added and carried into the high dword (`window_at`). Each access then gets its own window index, range check and heap handle, and accesses off the same base share none of them. XCL's allocations never straddle windows (`gpu::uma`), and with the switch the title's reservations do not either. So an access inside the allocation its base points into never carries or borrows: its window is its base's. With `XCL_WINDOW_NO_CARRY=1` and heap windows (`XCL_HEAP_WINDOWS=1`) the window is taken from the base address, which makes the driver's code for big compute programs smaller. Root-UAV windows keep the carry: they have no bounds, so an access that leaves its allocation and wraps inside its base's window could hang the GPU (a window test did on an RTX 3090, below); heap views read 0 past the window's end. Off by default. Part of #2403: on NVIDIA the code of the pipelines in use is limited, and the retail title's world needs more than that. **What is in it** - `crates/xcl/src/gpu/dxil/lower_window.rs`: `no_carry()` (`XCL_WINDOW_NO_CARRY=1`, or `with_no_carry` for a thread); with it and heap windows, `window_at` selects the window from the base's high dword. - `crates/xcl/src/gpu/dxil/kernel.rs`: `window_no_carry()`; the translator thread takes its caller's setting. - `crates/xcl/src/gpu/recomp/pso.rs`: the setting is part of the translation cache's identity, as `XCL_DIRECT_COMPACT` is, and of the direct translator's output identity (programs that go direct as `enormous` without `XCL_DIRECT_DXIL`). - `crates/xcl/src/gpu/uma.rs`: with the switch, a title reservation (`sparse_reserve`) of 4 GiB or less that would cross a window boundary starts at the next window, so nothing the title places in it spans two windows (pointed out by @Kalmarv below). A larger reservation cannot stay in one window and is logged. Where no window has room for a reservation in one piece, it is placed across a boundary as without the switch (and logged) rather than refused: a reservation the sparse windows refuse goes to plain memory (`kernelx`), which the switch must not make more frequent. Test `a_reservation_crosses_a_boundary_when_no_window_has_room` (fails without this). Test `title_reservations_stay_in_one_window_without_the_carry`. - `crates/xcl/src/gpu/recomp/tests.rs`: the two carry tests pin the switch off (`with_no_carry(false)`). `gpu_window_no_carry_reads_inside_allocations_alike`. Accesses inside an allocation (global loads with positive and negative offsets, an `s_load` with an offset) read the same words with and without the switch, with the windows in root UAVs and in the descriptor heap, the DXIL is smaller with it with heap windows and unchanged with root UAVs. A 32-bit (`hi == 0`) pointer still reads window 0, and a base outside the UMA still reads 0. **Tested** - NVIDIA GeForce RTX 4090 24 GB (driver 621.40), AMD Ryzen 9 9950X3D, Windows 11 Home 26300, `rustc 1.100.0`, debug for the tests, release for the runs. - `cargo build --workspace`, then `cargo test --workspace -- --test-threads=4` at the head: **1438 passed, 0 failed, 47 ignored**. SKIPPED: the wave64 cases (no wave64 on this card), `pso_measurement_compiles_an_exact_synthetic_record` (no Developer Mode), the D3D12 debug layer tests (no `d3d12SDKLayers.dll`), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - With `XCL_DIRECT_DXIL=1 XCL_WINDOW_NO_CARRY=1`, the whole suite again: **1438 passed, 0 failed, 47 ignored**. The two existing tests that check the 64-bit sum on purpose (`gpu_window_at_32bit_carry_edge_cases`, `memory_windows_reject_out_of_uma_aliasing`) now pin the switch off for their translations, so they test the carry path whatever the environment; the new test covers the path without it. - Driver code (`GetCachedBlob`) of the retail title's compute programs, as the runtime translates them (direct DXIL, heap windows), 12 programs of each family: | family | without | with `XCL_WINDOW_NO_CARRY=1` | change | |---|---|---|---| | `CS_RaytracingResolve` | 8129 KB | 6692 KB | −17.7 % | | `CS_IrradianceCache_Shade` | 2747 KB | 2411 KB | −12.2 % | | `CS_ShadowRenderTiled` | 7854 KB | 7393 KB | −5.9 % | - The retail title with the switch, on a local tree of an older `main` (`0829441`) with #2057 and the same change (direct DXIL, heap windows, warm caches): the world-load removal of #2403 came 72 s after the start of the world load, against 8–9 s in two runs without it. Bound at the removal: 1295 pipelines, against 1145–1172. It is still removed: this makes the limit come later, it does not avoid it. **Regression run** (the switch is off by default, so this run is the default path) main: ``` xcl-smoke v1 commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7 gpu: NVIDIA GeForce RTX 4090 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1318 (PresentX 1318) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 17225 MB ``` PR: ``` xcl-smoke v1 commit: 816406772fcc319fac5f535e1753c966a0146d8b gpu: NVIDIA GeForce RTX 4090 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1595 (PresentX 1595) presents per 2 s (last 3): 51 53 40 device removals: 0 crashes: 0 peak commit: 21394 MB ``` PR with `XCL_WINDOW_NO_CARRY=1 XCL_HEAP_WINDOWS=1` (the switch on; same head, same script): ``` xcl-smoke v1 commit: 816406772fcc319fac5f535e1753c966a0146d8b gpu: NVIDIA GeForce RTX 4090 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1624 (PresentX 1624) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 18680 MB ``` The switch-off peak commit (21,394 MB) is 124 % of `main`'s in this pair; with the switch off this PR's code paths are `main`'s, and the same arm read 16,474–18,374 MB in the runs of the earlier heads. **Not tested** - Title reservations over 4 GiB: the retail title makes two (24,576 and 6,236 MB). They still span windows; an access from a base in one that crosses a boundary stays in its base's window. No placed title buffer crossing a boundary was seen (reported below), but raw accesses were not checked. - Root-UAV windows: the switch does nothing there. - AMD, Intel, other NVIDIA cards and drivers; wave64 hardware (see the reports below for other cards). - The HLSL path: it keeps the 64-bit sum (the switch applies to direct DXIL only). - Accesses that leave their allocation: with the switch they wrap inside their base's window instead of reaching the next window (or reading 0 past the UMA). No title access of that kind was seen, but I did not check every program for it. - The title in the world on this head with the switch on (the world run above was on the older local tree); the 60 s run with the switch covers the menus only. How much address space the single-window reservations skip over a session: no reservation failed in that run, but the log does not record each one. **AI use** - Claude Code (Claude Opus 5.5): measured where the code size comes from, wrote the change and the test, ran the suite, the smoke runs and the title, and wrote this description. I checked the results and pressed through the title's menus. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Kalmarv commented 2026-11-25 21:05:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-25T21:00:46Z.


@S1m0ne1997 one point on the premise "Allocations never straddle windows (gpu::uma)", from reading main 6d12f58a. XCL's own allocations hold to it. The title's own reservations may not:

  • Uma::sparse_reserve (gpu/uma.rs:390) calls take_sparse_in(..., single_window: false) both times. Only single_window: true keeps a block inside one 4 GiB window (uma.rs:154), so a sparse reservation is first fit at 64 KiB grain and can cross a boundary.
  • The title's reservations go through it. In hle/kernelx.rs, VirtualAlloc of 64 KiB pages lands at line 271, and graphics reservations without the top type bit at line 307. Titles reserve a range, then commit or map pages and place resources inside it, so a buffer the title places in such a range can span two windows.

For an access whose base is in window k and whose final address is in k + 1, window_at with carry picks k + 1, while no-carry picks k. We have not seen such an access in the retail title. We only checked the allocator, so this is a possibility, not an observed failure. One way to keep the saving would be single_window: true for title reservations of 4 GiB or less, or a carry only where the base is in sparse title space. Either would need a run to see what it costs in address space.

AI use: Claude Code (Claude Opus 5.5) read the allocator and the reservation paths on main and wrote this comment.

<!-- greyfinch-sync:ivall/xcl:comment:7174489704 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2496#issuecomment-7174489704). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-25T21:00:46Z. --- @S1m0ne1997 one point on the premise "Allocations never straddle windows (`gpu::uma`)", from reading `main` `6d12f58a`. XCL's own allocations hold to it. The title's own reservations may not: - `Uma::sparse_reserve` (`gpu/uma.rs:390`) calls `take_sparse_in(..., single_window: false)` both times. Only `single_window: true` keeps a block inside one 4 GiB window (`uma.rs:154`), so a sparse reservation is first fit at 64 KiB grain and can cross a boundary. - The title's reservations go through it. In `hle/kernelx.rs`, `VirtualAlloc` of 64 KiB pages lands at line 271, and graphics reservations without the top type bit at line 307. Titles reserve a range, then commit or map pages and place resources inside it, so a buffer the title places in such a range can span two windows. For an access whose base is in window k and whose final address is in k + 1, `window_at` with carry picks k + 1, while no-carry picks k. We have not seen such an access in the retail title. We only checked the allocator, so this is a possibility, not an observed failure. One way to keep the saving would be `single_window: true` for title reservations of 4 GiB or less, or a carry only where the base is in sparse title space. Either would need a run to see what it costs in address space. AI use: Claude Code (Claude Opus 5.5) read the allocator and the reservation paths on `main` and wrote this comment.
SlopTart commented 2026-11-25 21:05:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T21:00:54Z.


gpu_ suite (cold cache): 165 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR.

<!-- greyfinch-sync:ivall/xcl:comment:7174492814 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2496#issuecomment-7174492814). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-25T21:00:54Z. --- `gpu_` suite (cold cache): 165 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR.
DavidM1911 commented 2026-11-25 21:05:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T21:03:24Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7174549634 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2496#issuecomment-7174549634). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T21:03:24Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
S1m0ne1997 commented 2026-11-25 22:06:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by S1m0ne1997 on 2026-11-25T21:08:43Z.


@SlopTart Thanks for the run on your machine.

<!-- greyfinch-sync:ivall/xcl:comment:7174671156 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2496#issuecomment-7174671156). Originally posted by [S1m0ne1997](https://github.com/S1m0ne1997) on 2026-11-25T21:08:43Z. --- @SlopTart Thanks for the run on your machine.
S1m0ne1997 commented 2026-11-25 22:06:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by S1m0ne1997 on 2026-11-25T21:08:41Z.


@Kalmarv Thanks, you're right. I checked sparse_reserve and the two kernelx.rs paths: title reservations were first fit across window boundaries, so the premise held for XCL's own allocations only.

The change now makes it hold for the title's too, the way you suggested: with XCL_WINDOW_NO_CARRY=1, a title reservation of 4 GiB or less that would cross a boundary starts at the next window instead. Without the switch nothing changes. Test: title_reservations_stay_in_one_window_without_the_carry (with the switch the second reservation starts in the next window; without it, it crosses as before).

The PR is now one commit, 78bba5c (the code is the same as the two commits it replaced). Results at it (RTX 4090, driver 621.40):

  • cargo test --workspace -- --test-threads=4: 1425 passed, 0 failed, 46 ignored (on the same tree before the squash).
  • scripts/smoke.ps1 -Seconds 60 on the retail title, switch off (the default path): 1615 frames, 0 removals, 0 crashes. Block in the description.
  • The same with XCL_WINDOW_NO_CARRY=1: 1661 frames, 0 removals, 0 crashes, and no title reservation failed in the log.

What these runs don't show: that run covers the start and the menus, not a session in the world. The log does not record each reservation, so I can't put a number on the address space the skipped window tails cost.

AI use: Claude Code (Claude Opus 5.5) checked the allocator, wrote the change and the test, ran the suite and the smoke runs, and drafted this reply.

<!-- greyfinch-sync:ivall/xcl:comment:7174670695 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2496#issuecomment-7174670695). Originally posted by [S1m0ne1997](https://github.com/S1m0ne1997) on 2026-11-25T21:08:41Z. --- @Kalmarv Thanks, you're right. I checked `sparse_reserve` and the two `kernelx.rs` paths: title reservations were first fit across window boundaries, so the premise held for XCL's own allocations only. The change now makes it hold for the title's too, the way you suggested: with `XCL_WINDOW_NO_CARRY=1`, a title reservation of 4 GiB or less that would cross a boundary starts at the next window instead. Without the switch nothing changes. Test: `title_reservations_stay_in_one_window_without_the_carry` (with the switch the second reservation starts in the next window; without it, it crosses as before). The PR is now one commit, `78bba5c` (the code is the same as the two commits it replaced). Results at it (RTX 4090, driver 621.40): - `cargo test --workspace -- --test-threads=4`: 1425 passed, 0 failed, 46 ignored (on the same tree before the squash). - `scripts/smoke.ps1 -Seconds 60` on the retail title, switch off (the default path): 1615 frames, 0 removals, 0 crashes. Block in the description. - The same with `XCL_WINDOW_NO_CARRY=1`: 1661 frames, 0 removals, 0 crashes, and no title reservation failed in the log. What these runs don't show: that run covers the start and the menus, not a session in the world. The log does not record each reservation, so I can't put a number on the address space the skipped window tails cost. AI use: Claude Code (Claude Opus 5.5) checked the allocator, wrote the change and the test, ran the suite and the smoke runs, and drafted this reply.
Eterst commented 2026-11-25 23:09:05 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Eterst on 2026-11-25T22:12:39Z.


A run on NVIDIA as asked on #2403, with one caveat: it has this PR and #2427 (XCL_HEAP_FLAT=1) together, so the two are not separated.

Setup: RTX 4070 SUPER 12 GB, driver 616.92, Windows 10 19045, release. A local test tree (#2057 and a few other open PRs on main), before: main 06055a7; after: main 6d12f58 + 78bba5c (this PR) + d356a74 (#2427). The retail title with XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1, split programs off (XCL_DIRECT_SPLIT_INSTRUCTIONS=0), caches rebuilt by a full precompile (xcl shaders --precompile --only cs --pipelines, then xcl pipelines) with the same switches as the run.

Where the device is removed

runs end
before 4 0x887a0005 at 261–303 s, always at the same point of the title (last frame before it 2,300–2,480); DRED page fault VA 0, no event
XCL_WINDOW_NO_CARRY=1 XCL_HEAP_FLAT=1 1 no removal: frame 2,630 at 395 s, stopped at 418 s by my own RAM guard (free RAM 0.4 GB), not by the title or the driver

Driver code of the compute programs the precompile rebuilt (.pso files, the GetCachedBlob bytes):

programs total median 90th pct ≥ 1 MB
before 2,227 905 MB 215 KB 1,055 KB 308 (343 MB)
with both switches 2,565 757 MB 136 KB 848 KB 32 (40 MB)

The two rows are not the same set of programs (each counts what that precompile built anew), so read them as distributions, not as a per-program saving.

Not tested: this PR without #2427 and the other way round; more than one run; AMD / Intel; a bound-code counter in the title (the sizes above are of what was built, not of what was in use at once).

AI use: Claude Code (Claude Opus 5.5) merged the PRs into the test tree, ran the precompiles and the runs, and wrote this; posted with my OK.

<!-- greyfinch-sync:ivall/xcl:comment:7176075746 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2496#issuecomment-7176075746). Originally posted by [Eterst](https://github.com/Eterst) on 2026-11-25T22:12:39Z. --- A run on NVIDIA as asked on #2403, with one caveat: it has this PR **and #2427** (`XCL_HEAP_FLAT=1`) together, so the two are not separated. **Setup:** RTX 4070 SUPER 12 GB, driver 616.92, Windows 10 19045, release. A local test tree (#2057 and a few other open PRs on `main`), before: `main` `06055a7`; after: `main` `6d12f58` + `78bba5c` (this PR) + `d356a74` (#2427). The retail title with `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1`, split programs off (`XCL_DIRECT_SPLIT_INSTRUCTIONS=0`), caches rebuilt by a full precompile (`xcl shaders --precompile --only cs --pipelines`, then `xcl pipelines`) with the same switches as the run. **Where the device is removed** | | runs | end | |---|---|---| | before | 4 | `0x887a0005` at 261–303 s, always at the same point of the title (last frame before it 2,300–2,480); DRED page fault VA 0, no event | | `XCL_WINDOW_NO_CARRY=1 XCL_HEAP_FLAT=1` | 1 | **no removal**: frame 2,630 at 395 s, stopped at 418 s by my own RAM guard (free RAM 0.4 GB), not by the title or the driver | **Driver code of the compute programs the precompile rebuilt** (`.pso` files, the `GetCachedBlob` bytes): | | programs | total | median | 90th pct | ≥ 1 MB | |---|---|---|---|---|---| | before | 2,227 | 905 MB | 215 KB | 1,055 KB | 308 (343 MB) | | with both switches | 2,565 | 757 MB | 136 KB | 848 KB | **32 (40 MB)** | The two rows are not the same set of programs (each counts what that precompile built anew), so read them as distributions, not as a per-program saving. **Not tested:** this PR without #2427 and the other way round; more than one run; AMD / Intel; a bound-code counter in the title (the sizes above are of what was built, not of what was in use at once). **AI use:** Claude Code (Claude Opus 5.5) merged the PRs into the test tree, ran the precompiles and the runs, and wrote this; posted with my OK.
pvfreis commented 2026-11-25 23:09:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by pvfreis on 2026-11-25T22:23:58Z.


By reading only, at 78bba5c:

  1. Cache identity. direct_output_identity (pso.rs:503) lacks the switch, and identity() adds it only when the backend is not HLSL. With XCL_DIRECT_DXIL unset, compute programs over 8 MiB of HLSL still go direct (enormous), without the carry when the switch is set, and are stored under rerouted_identity. A later run without the switch loads that DXIL while its reservations cross windows again; the other way round, the switch does nothing for those programs. I have not seen a crossing access. #2257 fixed the same gap for the nesting tag.
  2. Description. Reservations over 4 GiB still span windows (uma.rs:332 describes one of 8 GiB + 4 MiB); that case is missing under Not tested.

AI use: Claude Code (Claude Opus 5.5) found this; a second Claude Opus 5.5 re-derived it; Claude Fable 5.2 reviewed the text; checked by a person before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7176313267 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2496#issuecomment-7176313267). Originally posted by [pvfreis](https://github.com/pvfreis) on 2026-11-25T22:23:58Z. --- By reading only, at `78bba5c`: 1. **Cache identity.** `direct_output_identity` (`pso.rs:503`) lacks the switch, and `identity()` adds it only when the backend is not HLSL. With `XCL_DIRECT_DXIL` unset, compute programs over 8 MiB of HLSL still go direct (`enormous`), without the carry when the switch is set, and are stored under `rerouted_identity`. A later run without the switch loads that DXIL while its reservations cross windows again; the other way round, the switch does nothing for those programs. I have not seen a crossing access. #2257 fixed the same gap for the nesting tag. 2. **Description.** Reservations over 4 GiB still span windows (`uma.rs:332` describes one of 8 GiB + 4 MiB); that case is missing under **Not tested**. **AI use:** Claude Code (Claude Opus 5.5) found this; a second Claude Opus 5.5 re-derived it; Claude Fable 5.2 reviewed the text; checked by a person before posting.
Oliwettoo commented 2026-11-25 23:09:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Oliwettoo on 2026-11-25T22:28:04Z.


Review on 78bba5c (read from the diff, not run), following up @Kalmarv's point: the fix keeps title reservations of ≤ 4 GiB in one window, but one case of the "allocations never straddle windows" premise is still open. take_sparse_in lets a reservation larger than a window (size > WINDOW) cross a boundary even with single_window: true (uma.rs:154). A buffer the title places across that boundary inside such a reservation is within its allocation, yet with XCL_WINDOW_NO_CARRY=1 its accesses wrap into the base's window and touch the wrong memory, with no warning.

Since the switch is opt-in, a log line when a reservation over 4 GiB is made with no_carry on (or a note in the README entry) would make such runs easy to spot.

<!-- greyfinch-sync:ivall/xcl:comment:7176397878 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2496#issuecomment-7176397878). Originally posted by [Oliwettoo](https://github.com/Oliwettoo) on 2026-11-25T22:28:04Z. --- Review on 78bba5c (read from the diff, not run), following up @Kalmarv's point: the fix keeps title reservations of ≤ 4 GiB in one window, but one case of the "allocations never straddle windows" premise is still open. `take_sparse_in` lets a reservation larger than a window (`size > WINDOW`) cross a boundary even with `single_window: true` (uma.rs:154). A buffer the title places across that boundary inside such a reservation is within its allocation, yet with `XCL_WINDOW_NO_CARRY=1` its accesses wrap into the base's window and touch the wrong memory, with no warning. Since the switch is opt-in, a log line when a reservation over 4 GiB is made with `no_carry` on (or a note in the README entry) would make such runs easy to spot.
KDenKC commented 2026-11-25 23:09:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-25T22:27:02Z.


@S1m0ne1997 the NVIDIA in-title A/B you asked for, RTX 5090. XCL_WINDOW_NO_CARRY=1 makes the driver code smaller (about −5 to −6 % of the code bound in the title, −10 % per split piece), but both arms lost the device at the same point in the title. One run per arm.

Tested

  • RTX 5090 32 GB (driver 621.24), Ryzen 7 9800X3D, 62 GB RAM, Windows 11 26200, release. Tree: main 2898511 + #2404 (5ca9c23) + this PR (78bba5c, cherry-picked), plus a local diagnostic not in any PR: XCL_LOCAL_CODE_SUM=1 calls GetCachedBlob on each PC pipeline at its first bind (the PC list's SetPipelineState hook) and logs the running sum.
  • Both arms: XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_NETWORK=0, default XCL_PSO_WAIT_MS. Each started from its own copy of the same warm cache, ran xcl shaders --precompile --only cs --pipelines with its switches, then the retail title for 600 s.
switch off XCL_WINDOW_NO_CARRY=1
precompile: pipelines made / split programs (pieces) 8,687 / 816 (6,814) 8,311 / 811 (6,433)
mean .chain.pso blob (driver code per split piece) 121.7 KiB 109.9 KiB (−9.7 %)
bound code at 2,400 / 2,800 / 3,005 pipelines 338 / 382 / 406 MB 317 / 358 / 384 MB (−5.4 to −6.4 %)
world rendering 128–186 s (88 presents) 124–182 s (83 presents)
device removed 0x887a0005 409.9 s 324.6 s
last logged bound code before it 416 MB (3,082 pipelines) 384 MB (3,005 pipelines)
  • Both arms rendered the same ~58 s of the opening, then stalled on the same cold graphics pipelines (one title thread building them serially, see #2088), and lost the device 1.6–2.4 s after the last of them finished and world submission resumed. So the removal is tied to the same point in the title in both, not to the clock. The 85 s difference is order: the switch-off arm ran first and paid 91 s of driver time for 30 graphics pipelines that the second arm then got from NVIDIA's cache (0.1 s).
  • No nvlddmkm / Display events at the removal.

Not tested / caveats

  • One run per arm, with the diagnostic on (its GetCachedBlob calls add CPU time at each first bind). An earlier run on the same cache lineage without the diagnostic or this PR was removed at 123.8 s, right at world start, so the run-to-run spread is large.
  • The counter does see the pieces XCL binds itself (split pieces, the slicer, whole forms): XCL patches the PC list's SetPipelineState slot in place, so its own calls go through the hook (checked in the code). Only pipelines set at CreateCommandList / Reset / ClearState and never set again are missed.
  • This PR's own tests, graphics-only effects (the switch doesn't change graphics DXIL), other GPUs.

So on this card the saving is real but not enough to move the #2403 removal. With ~400 MB logged at the end, a 6 % cut buys tens of MB against a cliff the title crosses anyway at this scene.

AI use: Claude Code (Claude Opus 5.5) built and ran both arms and wrote this; Antigravity CLI (Gemini 4 Neon) analysed the logs and cache.

<!-- greyfinch-sync:ivall/xcl:comment:7176376933 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2496#issuecomment-7176376933). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-11-25T22:27:02Z. --- @S1m0ne1997 the NVIDIA in-title A/B you asked for, RTX 5090. **`XCL_WINDOW_NO_CARRY=1` makes the driver code smaller (about −5 to −6 % of the code bound in the title, −10 % per split piece), but both arms lost the device at the same point in the title.** One run per arm. **Tested** - RTX 5090 32 GB (driver 621.24), Ryzen 7 9800X3D, 62 GB RAM, Windows 11 26200, release. Tree: `main` `2898511` + #2404 (`5ca9c23`) + this PR (`78bba5c`, cherry-picked), plus a local diagnostic not in any PR: `XCL_LOCAL_CODE_SUM=1` calls `GetCachedBlob` on each PC pipeline at its first bind (the PC list's `SetPipelineState` hook) and logs the running sum. - Both arms: `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_NETWORK=0`, default `XCL_PSO_WAIT_MS`. Each started from its own copy of the same warm cache, ran `xcl shaders --precompile --only cs --pipelines` with its switches, then the retail title for 600 s. | | switch off | `XCL_WINDOW_NO_CARRY=1` | |---|---|---| | precompile: pipelines made / split programs (pieces) | 8,687 / 816 (6,814) | 8,311 / 811 (6,433) | | mean `.chain.pso` blob (driver code per split piece) | 121.7 KiB | 109.9 KiB (−9.7 %) | | bound code at 2,400 / 2,800 / 3,005 pipelines | 338 / 382 / 406 MB | 317 / 358 / 384 MB (−5.4 to −6.4 %) | | world rendering | 128–186 s (88 presents) | 124–182 s (83 presents) | | device removed `0x887a0005` | **409.9 s** | **324.6 s** | | last logged bound code before it | 416 MB (3,082 pipelines) | 384 MB (3,005 pipelines) | - Both arms rendered the same ~58 s of the opening, then stalled on the same cold graphics pipelines (one title thread building them serially, see #2088), and lost the device 1.6–2.4 s after the last of them finished and world submission resumed. So the removal is tied to the same point in the title in both, not to the clock. The 85 s difference is order: the switch-off arm ran first and paid 91 s of driver time for 30 graphics pipelines that the second arm then got from NVIDIA's cache (0.1 s). - No `nvlddmkm` / Display events at the removal. **Not tested / caveats** - One run per arm, with the diagnostic on (its `GetCachedBlob` calls add CPU time at each first bind). An earlier run on the same cache lineage without the diagnostic or this PR was removed at 123.8 s, right at world start, so the run-to-run spread is large. - The counter does see the pieces XCL binds itself (split pieces, the slicer, whole forms): XCL patches the PC list's `SetPipelineState` slot in place, so its own calls go through the hook (checked in the code). Only pipelines set at `CreateCommandList` / `Reset` / `ClearState` and never set again are missed. - This PR's own tests, graphics-only effects (the switch doesn't change graphics DXIL), other GPUs. So on this card the saving is real but not enough to move the #2403 removal. With ~400 MB logged at the end, a 6 % cut buys tens of MB against a cliff the title crosses anyway at this scene. AI use: Claude Code (Claude Opus 5.5) built and ran both arms and wrote this; Antigravity CLI (Gemini 4 Neon) analysed the logs and cache.
pvfreis commented 2026-11-26 00:05:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by pvfreis on 2026-11-25T23:25:01Z.


Test report for 78bba5c with #2428 ab2855f (#2427 d356a74 in it) on main e1d84b7d (tree 76fc443d): outputs and driver code size with XCL_WINDOW_NO_CARRY=1.

Tested

  • RTX 3060 (617.14), Ryzen 9 5900XT, Windows 11 26300. Sandbox: non-interactive session, Low integrity, debug, --test-threads=4, NVIDIA 32-lane waves only. One run each.
  • Suite (plus our test arms and a test-build-only fault switch in two runtime files): 1429 passed, 1 failed, 46 ignored, 24 SKIPPED. main e1d84b7d: 1422 / 1 / 46, 25. The failure on both is e2e presents.
  • Outputs: no carry with root UAV, guarded and flat heap windows, wave32 and split wave64, in a new test (offsets of both signs, window edges, out of range, inactive lanes): all expected values met. Three no-carry arms in #2427's test equal its switch-form run. Three one-line breaks of the no-carry path each fail the new test.
  • Expected values: our arithmetic from AMD's public RDNA2 ISA (sections 7.2.1, 8.1.5, 9.1–9.4, 12.18.3); out of range is XCL's contract; a load leaving its base's window follows this PR's documentation, not the 64-bit sum.
  • Size only: GetCachedBlob bytes, 60 compute programs (30 largest, 30 sampled, chosen first), unsplit, built at opt-level 3 without debug assertions; plain debug gives the same DXIL and root signatures (60/60, every arm).
    • guarded heap 42.19 → 35.96 MB (0.852; per program 0.797–0.991)
    • flat heap 41.11 → 34.76 MB (0.845; 0.785–0.987)
  • Failed check: repeats of the flat arm without the switch gave equal sizes 60/60 but different contents in 18/60, and 8/60 in a second job; cause not investigated.

Not tested: outputs in release, split chains, GS, mesh, graphics; reservations over 4 GiB; code in use in a title; timing; other GPUs.

AI use: Claude Code. Claude Opus 5.5 wrote the test, ran it and wrote this; Claude Fable 5.2 rechecked it.

<!-- greyfinch-sync:ivall/xcl:comment:7177530502 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2496#issuecomment-7177530502). Originally posted by [pvfreis](https://github.com/pvfreis) on 2026-11-25T23:25:01Z. --- Test report for `78bba5c` with #2428 `ab2855f` (#2427 `d356a74` in it) on `main` `e1d84b7d` (tree `76fc443d`): outputs and driver code size with `XCL_WINDOW_NO_CARRY=1`. **Tested** - RTX 3060 (617.14), Ryzen 9 5900XT, Windows 11 26300. Sandbox: non-interactive session, Low integrity, debug, `--test-threads=4`, NVIDIA 32-lane waves only. One run each. - Suite (plus our test arms and a test-build-only fault switch in two runtime files): 1429 passed, 1 failed, 46 ignored, 24 SKIPPED. `main` `e1d84b7d`: 1422 / 1 / 46, 25. The failure on both is e2e `presents`. - **Outputs:** no carry with root UAV, guarded and flat heap windows, wave32 and split wave64, in a new test (offsets of both signs, window edges, out of range, inactive lanes): all expected values met. Three no-carry arms in #2427's test equal its switch-form run. Three one-line breaks of the no-carry path each fail the new test. - **Expected values:** our arithmetic from AMD's public RDNA2 ISA (sections 7.2.1, 8.1.5, 9.1–9.4, 12.18.3); out of range is XCL's contract; a load leaving its base's window follows this PR's documentation, not the 64-bit sum. - **Size only:** `GetCachedBlob` bytes, 60 compute programs (30 largest, 30 sampled, chosen first), unsplit, built at opt-level 3 without debug assertions; plain debug gives the same DXIL and root signatures (60/60, every arm). - guarded heap 42.19 → 35.96 MB (0.852; per program 0.797–0.991) - flat heap 41.11 → 34.76 MB (0.845; 0.785–0.987) - Failed check: repeats of the flat arm without the switch gave equal sizes 60/60 but different contents in 18/60, and 8/60 in a second job; cause not investigated. **Not tested:** outputs in release, split chains, GS, mesh, graphics; reservations over 4 GiB; code in use in a title; timing; other GPUs. **AI use:** Claude Code. Claude Opus 5.5 wrote the test, ran it and wrote this; Claude Fable 5.2 rechecked it.
DavidM1911 commented 2026-11-26 02:08:24 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T01:49:55Z.


Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

<!-- greyfinch-sync:ivall/xcl:comment:7180180642 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2496#issuecomment-7180180642). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T01:49:55Z. --- Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
bielfreedom commented 2026-11-26 02:08:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bielfreedom on 2026-11-26T01:55:12Z.


AMD Windows driver timing for #2496: on the RX 9070 XT, XCL_WINDOW_NO_CARRY=1 makes AMD's CreateComputePipelineState about 13 % faster over 26 large retail compute programs, with 11 % less direct DXIL over all 2,689. Nothing failed in either arm. This measures cost only, not whether the window premise holds (the thread above).

Setup

  • GPU: RX 9070 XT 16 GB (RDNA4, native wave64), AMD driver 32.0.32029.2010.
  • CPU and memory: Ryzen 7 7700 (16 threads), 32 GB RAM, Windows 11, release.
  • Build: this PR at 78bba5c merged onto main 08db802, plus a local timing patch in xcl shaders that writes each program's DXIL size and each CreateComputePipelineState time to a file. One binary for both arms; only the switch differs.
  • Offline: xcl shaders <retail shaders.rpf> --precompile --only cs --pipelines with XCL_DIRECT_DXIL=1, XCL_PSO_DISK_CACHE=0, one driver thread, a fresh translation cache and a fresh executable name for every run (the AMD driver keys its own cache on the exe name, so every build is cold).

DXIL size, all 2,689 compute programs (translation only)

windows switch off XCL_WINDOW_NO_CARRY=1 change programs changed
switch (default) 885.9 MB 788.1 MB −11.0 % 2,659
heap (XCL_HEAP_WINDOWS=1) 728.9 MB 674.0 MB −7.5 % 2,659

With the switch off the output matches main byte for byte.

Driver time, 26 large programs (switch windows), 2 interleaved rounds (off, on, then on, off)

arm pipelines (incl. split pieces) DXIL to driver driver time r1 / r2 peak memory
off 76 9.63 MB 78.7 / 83.3 s 1.51 GB
XCL_WINDOW_NO_CARRY=1 66 8.28 MB 67.5 / 73.2 s 1.43 GB

Mean 81.0 → 70.4 s (−13 %). Every one of the 20 unsplit programs in the set was faster with the switch, by 3–24 %. The largest ones:

program DXIL off → on driver ms off driver ms on
620491641aa9bad6 378 → 346 KB 10,830 / 11,334 9,486 / 10,579
6d1e4583f8129771 638 → 590 KB 6,819 / 6,994 5,974 / 6,336
6fd9a5ebc95aee46 322 → 289 KB 3,055 / 2,960 2,403 / 2,601
d2d3c6c5d8463f50 151 → 135 KB 1,405 / 1,471 1,126 / 1,246

The pieces also change: with the switch, the six programs that are split produce 46 pieces instead of 56.

Not tested: heap windows in the driver, GPU output, and a title run.

AI use: Claude Code (Claude Opus 5.5) built the binaries, ran the measurements and wrote this report; I posted it.

<!-- greyfinch-sync:ivall/xcl:comment:7180280324 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2496#issuecomment-7180280324). Originally posted by [bielfreedom](https://github.com/bielfreedom) on 2026-11-26T01:55:12Z. --- **AMD Windows driver timing for #2496: on the RX 9070 XT, `XCL_WINDOW_NO_CARRY=1` makes AMD's `CreateComputePipelineState` about 13 % faster over 26 large retail compute programs, with 11 % less direct DXIL over all 2,689.** Nothing failed in either arm. This measures cost only, not whether the window premise holds (the thread above). **Setup** - GPU: RX 9070 XT 16 GB (RDNA4, native wave64), AMD driver 32.0.32029.2010. - CPU and memory: Ryzen 7 7700 (16 threads), 32 GB RAM, Windows 11, release. - Build: this PR at `78bba5c` merged onto `main` `08db802`, plus a local timing patch in `xcl shaders` that writes each program's DXIL size and each `CreateComputePipelineState` time to a file. One binary for both arms; only the switch differs. - Offline: `xcl shaders <retail shaders.rpf> --precompile --only cs --pipelines` with `XCL_DIRECT_DXIL=1`, `XCL_PSO_DISK_CACHE=0`, one driver thread, a fresh translation cache and a fresh executable name for every run (the AMD driver keys its own cache on the exe name, so every build is cold). **DXIL size, all 2,689 compute programs (translation only)** | windows | switch off | `XCL_WINDOW_NO_CARRY=1` | change | programs changed | |---|---:|---:|---:|---:| | switch (default) | 885.9 MB | 788.1 MB | −11.0 % | 2,659 | | heap (`XCL_HEAP_WINDOWS=1`) | 728.9 MB | 674.0 MB | −7.5 % | 2,659 | With the switch off the output matches `main` byte for byte. **Driver time, 26 large programs (switch windows), 2 interleaved rounds (off, on, then on, off)** | arm | pipelines (incl. split pieces) | DXIL to driver | driver time r1 / r2 | peak memory | |---|---:|---:|---:|---:| | off | 76 | 9.63 MB | 78.7 / 83.3 s | 1.51 GB | | `XCL_WINDOW_NO_CARRY=1` | 66 | 8.28 MB | 67.5 / 73.2 s | 1.43 GB | Mean 81.0 → 70.4 s (−13 %). Every one of the 20 unsplit programs in the set was faster with the switch, by 3–24 %. The largest ones: | program | DXIL off → on | driver ms off | driver ms on | |---|---:|---:|---:| | `620491641aa9bad6` | 378 → 346 KB | 10,830 / 11,334 | 9,486 / 10,579 | | `6d1e4583f8129771` | 638 → 590 KB | 6,819 / 6,994 | 5,974 / 6,336 | | `6fd9a5ebc95aee46` | 322 → 289 KB | 3,055 / 2,960 | 2,403 / 2,601 | | `d2d3c6c5d8463f50` | 151 → 135 KB | 1,405 / 1,471 | 1,126 / 1,246 | The pieces also change: with the switch, the six programs that are split produce 46 pieces instead of 56. **Not tested:** heap windows in the driver, GPU output, and a title run. **AI use:** Claude Code (Claude Opus 5.5) built the binaries, ran the measurements and wrote this report; I posted it.
CharlyRien commented 2026-11-26 04:07:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by CharlyRien on 2026-11-26T04:02:15Z.


Test report, RTX 3090 (616.56), one run per arm. With XCL_WINDOW_NO_CARRY=1 the title ran 187 s into the world, through the heavy scene where our earlier run without the switch lost the device, and the run ended on its time limit with no removal. The witness, same settings without the switch, lost the device (0x887a0005) earlier than that: at world + 44 s. The code we count as bound was lower with the switch: 406 MB at most, against 420 MB at the witness's removal. Two more things measured:

  • the title makes two reservations over 4 GiB (the case @Oliwettoo raised);
  • with the switch set for the whole test process, two window tests hang the GPU on this card. Both use root-UAV windows, and both put an address below its base's window on purpose.

In the title, same settings, only the switch differs

VNIGHT2, switch off VNC2, XCL_WINDOW_NO_CARRY=1
world (first 2 s with > 7,000 draws) 120.2 s 122.5 s
end 0x887a0005 at 164.4 s, world + 44 s, in busy world rendering (1,100-2,400 draws per 2 s) ran to 309 s, world + 187 s, stopped by its time limit; no removal
heavy scene (2 s with ~4,500 draws and ~13,000 dispatches after about a minute of near-idle frames) not reached 230.3 s, passed
bound code, world + 0 to + 44 s (10 s reports and budget warnings) 361.6 → 383.7 MB; compute 235.4 → 253.1 MB 312.5-378.8 MB; compute 188.8-227.4 MB
bound code at the end at the removal: 366.2 MB bound + 54.2 MB awaiting release = 420.4 MB. Compute 255.4, mesh 46.4, graphics 64.5 peak over the run 406.2 MB (bound + awaiting). Compute peak 257.6 MB, in the heavy scene (389.2 MB bound then)
process commit, peak in the log 44.1 GB 45.0 GB
  • "Bound code" is our local pipeline budget's count: the GetCachedBlob size of each pipeline XCL built for a stand-in, from its first bind to its release.
    • Our budget releases idle pipelines past 380 MB, but it cannot release a pipeline that an open command-list recording references. At the witness's removal nearly all of it was referenced, 325 MB of it by lists that had bound within the last second.
    • On this card we lose the device at 418-437 MB of that count; the #2403 test does it at 446 MB.
  • Earlier pair, same trees, with more memory for page and GPU-view buffers (2048 / 1536 MB) and frame dumps:
    • without the switch (VNIGHT1): 0x887a0005 0.2 s into the heavy scene, world + 158 s, at 437.1 MB with compute 273.6 MB;
    • with the switch (VNC1): ran 6 s into the same scene, with 427.1 MB at most and compute 254.1 MB. Then our own memory guard stopped it (free system commit under 5 GB), not the driver.
    • The two witnesses were lost at different points of the title (world + 44 s and + 158 s), so the point of removal moves from run to run.
  • The switch run had one long stall in the heavy scene: 0 submits and 0 presents from 238 to 248 s.
    • Measured: in that window one compute pipeline of 22,188 bytes of DXIL was compiled with no blob on disk, in 14.8 s ("kept on disk", 32 KB of code). Our budget's longest rebuild of a released pipeline, 14.4 s, ended at the same time.
    • Its DXIL has no blob in the cache we used without the switch, so it is a program whose DXIL the switch changed and that our precompile and warm-up run had not built. Probably a mesh or GS compute pass: the offline tool does not build those as pipelines. That last part is our reading, not checked.
    • So switching costs some cold compiles in the title until the cache is warm. We did not see a cost of the switch's code itself.
  • With the switch, 0 placed title buffers crossed a window boundary in VNC2 (local log at CreatePlacedResourceX).
    • But the title reserves 24,576 MB and 6,236 MB in its first 10 s, in both switch runs (5.2 / 6.9 s in VNC1, 6.1 / 9.1 s in VNC2). These reservations span window boundaries even with this PR.
    • We did not check raw accesses that cross a boundary from one base inside them.
    • VNC2 made no frame dumps, so its image was not compared. In VNC1 the image showed no clear difference against VNIGHT1, but it was 3 frames against 6.

Window tests in our tree (cargo test --release -p xcl --lib -- window, 42 tests)

  • Switch unset: 42 passed. That includes gpu_window_no_carry_reads_inside_allocations_alike (it runs both arms itself, root and heap windows) and title_reservations_stay_in_one_window_without_the_carry.
  • XCL_DIRECT_DXIL=1 XCL_WINDOW_NO_CARRY=1 for the whole process, all tests at once: 12 failed. 10 of them failed with "GPU fence still pending after 10000 ms", then 0x887a0006: one test hung the GPU and the others followed, the HLSL arms included.
  • The same, one process per test (--exact --test-threads=1): 37 passed, 5 failed. All 5 pass with the switch unset, run the same way. Each one crosses a window on purpose:
test with the switch what it builds
window_at_lowers_to_32bit_carry_without_int64 assertion "expected UMul in DXIL" checks the DXIL shape of the carry
raw_loads_in_root_windows_respect_exec_and_bounds assertion at wave32 lane 7 (slot 7), global_load_dwordx2 a 64-bit load at a window edge
gpu_heap_windows_reject_out_of_uma_aliasing assertion "64-bit carry global_load must cross from w0 into w1" (w0 + 0xFFFF_FFF0) + 0x20: it reads w0 + 0x10
gpu_memory_windows_reject_out_of_uma_aliasing GPU fence still pending after 10 s the same program, windows in root UAVs
gpu_window_at_32bit_carry_edge_cases GPU fence still pending after 10 s root-UAV windows
  • The two hangs are the two root-UAV tests. The heap form of the same program only gives a wrong value.
    • Our reading of the test code, not instrumented: both root-UAV tests contain an access that borrows below the start of its base's window. The out-of-UMA test does w0 + 0 - 16; the edge-case test does a store at (w0 + 0x30) - 0x30 - 16.
    • Without the switch that access leaves the UMA: it reads 0 and its store is dropped.
    • With the switch it stays in window 0 at offset 0xFFFF_FFF0. The test arena backs 1 MB per window and a root UAV has no bounds, so we take it to be a page fault.
  • So, as far as these tests show: the switch only misses data when an access leaves its base's window, unless the windows are root UAVs. Then an access that lands on unbacked memory hangs the GPU on this card instead of reading 0.
    • We did not get the removal reason for these two processes.
    • @pvfreis's out-of-range cases met their expected values with root UAVs on a 3060. We did not compare the addresses those cases use.

Setup

  • RTX 3090 24 GB, driver 616.56, Windows 11 22631, release build; the tests in release too.

  • Tree: main e1d84b7d, merged into our integrated tree:

    • merges or ports of #2384, #1055 / #1102, #541 (with #304), #724 (rebased, not a PR yet), #1887, #1803, #1982, #1405 and #1464;
    • local changes:
      • a pipeline-code budget (XCL_LOCAL_PSO_BUDGET_MB=380): it releases idle pipelines and rebuilds them on demand; our own command-list segments drop their pipeline references when the title's recording ends;
      • fault-safe title texture reads;
      • sparse blocks for title buffers;
      • a memory census.
  • Witness: that tree at 2a9f3638.

  • Switch arm: 734e12f7 = #2496 cherry-picked at 78bba5ca, plus 178052a3.

    • The cherry-pick had two conflicts, in the cache identity code and in the translator thread's arguments, because our tree computes the identity in one function.
    • Our additions:
      • the switch also goes into direct_output_identity (@pvfreis's point);
      • a warning per title reservation over 4 GiB made with the switch;
      • 178052a3: a log of placed title buffers that cross a window boundary.
  • Env, both arms:

    XCL_HEAP_WINDOWS=1 XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_LOCAL_SKIP_CS_KB=4096 XCL_RUN_SECONDS=330 XCL_UMA_SHADOW=1 XCL_GPU_WAIT_TIMEOUT_MS=250 XCL_LOCAL_NO_WATCHDOG=1 XCL_LOCAL_RTSUM=1 XCL_LOCAL_RTSUM_AFTER_S=100 XCL_LOCAL_RTSUM_PCT=1 XCL_FRAME_DUMP=100000 XCL_LOCAL_FRAME_DUMP_AFTER_S=9999 XCL_LOCAL_FRAME_DUMP_WAIT_MS=20000 XCL_LOCAL_RTSUM_DUMP_MAX=12 XCL_LOCAL_RODATA_GETPC_ONLY=1 XCL_LOCAL_OOW_COPY=0 XCL_GPU_VIEW_BUFFERS=1 XCL_LOCAL_GPU_VIEW_ROOT_KB=512 XCL_LOCAL_TEX_OVERLAP=1 XCL_DIRECT_DXIL=1 XCL_DIRECT_SPLIT_INSTRUCTIONS=0 XCL_LOCAL_CODE_IN_USE=1 XCL_LOCAL_PSO_BUDGET_MB=380 XCL_LOCAL_ASIDE_EAGER=1 XCL_LOCAL_MEM_CENSUS=1 XCL_HUGE_PSO_CONCURRENCY=4 XCL_LOCAL_FAST_SAFE_READ=1 XCL_PAGE_BUDGET_MB=1024 XCL_GPU_VIEW_MB=1024

    • The switch arm adds XCL_WINDOW_NO_CARRY=1.
    • Scripted A presses from 4 s.
    • XCL_LOCAL_NO_WATCHDOG=1 keeps the title's stall watchdog from aborting.
    • The earlier pair (VNIGHT1 / VNC1) had XCL_PAGE_BUDGET_MB=2048 XCL_GPU_VIEW_MB=1536 and frame dumps from world + 20 s.
  • Caches:

    • each arm had its own, filled before the runs by a full precompile with its own switches (xcl shaders --precompile --only cs --pipelines, then --only ms);
    • the switch arm also had one warm-up run for the mesh and GS compute passes;
    • VS/PS stay on the HLSL path, so their DXIL and blobs do not change.

Not measured

  • More than one run per arm. The witnesses lost the device at two different points (world + 44 s and + 158 s).
  • Whether the switch run would hold past 187 s of world.
  • Raw accesses that cross a window boundary inside the two big reservations.
  • The image in VNC2.
  • The removal reason in the two hanging tests.
  • Other cards and drivers.
  • This PR without our local pipeline budget.

AI use: Claude Code with Claude Opus 5.5, as the coordinating session and as its agents. The agents ported the PR, resolved the conflicts, wrote the diagnostic and the test and run jobs, read the logs and drafted this report. The coordinating session ran the builds, the tests and the runs, and checked the numbers quoted here.

<!-- greyfinch-sync:ivall/xcl:comment:7182238106 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2496#issuecomment-7182238106). Originally posted by [CharlyRien](https://github.com/CharlyRien) on 2026-11-26T04:02:15Z. --- **Test report, RTX 3090 (616.56), one run per arm. With `XCL_WINDOW_NO_CARRY=1` the title ran 187 s into the world, through the heavy scene where our earlier run without the switch lost the device, and the run ended on its time limit with no removal. The witness, same settings without the switch, lost the device (`0x887a0005`) earlier than that: at world + 44 s. The code we count as bound was lower with the switch: 406 MB at most, against 420 MB at the witness's removal.** Two more things measured: - the title makes two reservations over 4 GiB (the case @Oliwettoo raised); - with the switch set for the whole test process, two window tests hang the GPU on this card. Both use root-UAV windows, and both put an address below its base's window on purpose. **In the title, same settings, only the switch differs** | | VNIGHT2, switch off | VNC2, `XCL_WINDOW_NO_CARRY=1` | |---|---|---| | world (first 2 s with > 7,000 draws) | 120.2 s | 122.5 s | | end | **`0x887a0005` at 164.4 s, world + 44 s**, in busy world rendering (1,100-2,400 draws per 2 s) | **ran to 309 s, world + 187 s, stopped by its time limit; no removal** | | heavy scene (2 s with ~4,500 draws and ~13,000 dispatches after about a minute of near-idle frames) | not reached | 230.3 s, passed | | bound code, world + 0 to + 44 s (10 s reports and budget warnings) | 361.6 → 383.7 MB; compute 235.4 → 253.1 MB | 312.5-378.8 MB; compute 188.8-227.4 MB | | bound code at the end | at the removal: 366.2 MB bound + 54.2 MB awaiting release = 420.4 MB. Compute 255.4, mesh 46.4, graphics 64.5 | peak over the run 406.2 MB (bound + awaiting). Compute peak 257.6 MB, in the heavy scene (389.2 MB bound then) | | process commit, peak in the log | 44.1 GB | 45.0 GB | - "Bound code" is our local pipeline budget's count: the `GetCachedBlob` size of each pipeline XCL built for a stand-in, from its first bind to its release. - Our budget releases idle pipelines past 380 MB, but it cannot release a pipeline that an open command-list recording references. At the witness's removal nearly all of it was referenced, 325 MB of it by lists that had bound within the last second. - On this card we lose the device at 418-437 MB of that count; the #2403 test does it at 446 MB. - Earlier pair, same trees, with more memory for page and GPU-view buffers (2048 / 1536 MB) and frame dumps: - without the switch (VNIGHT1): `0x887a0005` 0.2 s into the heavy scene, world + 158 s, at 437.1 MB with compute 273.6 MB; - with the switch (VNC1): ran 6 s into the same scene, with 427.1 MB at most and compute 254.1 MB. Then our own memory guard stopped it (free system commit under 5 GB), not the driver. - The two witnesses were lost at different points of the title (world + 44 s and + 158 s), so the point of removal moves from run to run. - The switch run had one long stall in the heavy scene: 0 submits and 0 presents from 238 to 248 s. - Measured: in that window one compute pipeline of 22,188 bytes of DXIL was compiled with no blob on disk, in 14.8 s ("kept on disk", 32 KB of code). Our budget's longest rebuild of a released pipeline, 14.4 s, ended at the same time. - Its DXIL has no blob in the cache we used without the switch, so it is a program whose DXIL the switch changed and that our precompile and warm-up run had not built. Probably a mesh or GS compute pass: the offline tool does not build those as pipelines. That last part is our reading, not checked. - So switching costs some cold compiles in the title until the cache is warm. We did not see a cost of the switch's code itself. - With the switch, 0 placed title buffers crossed a window boundary in VNC2 (local log at `CreatePlacedResourceX`). - But the title reserves 24,576 MB and 6,236 MB in its first 10 s, in both switch runs (5.2 / 6.9 s in VNC1, 6.1 / 9.1 s in VNC2). These reservations span window boundaries even with this PR. - We did not check raw accesses that cross a boundary from one base inside them. - VNC2 made no frame dumps, so its image was not compared. In VNC1 the image showed no clear difference against VNIGHT1, but it was 3 frames against 6. **Window tests in our tree (`cargo test --release -p xcl --lib -- window`, 42 tests)** - Switch unset: 42 passed. That includes `gpu_window_no_carry_reads_inside_allocations_alike` (it runs both arms itself, root and heap windows) and `title_reservations_stay_in_one_window_without_the_carry`. - `XCL_DIRECT_DXIL=1 XCL_WINDOW_NO_CARRY=1` for the whole process, all tests at once: 12 failed. 10 of them failed with "GPU fence still pending after 10000 ms", then `0x887a0006`: one test hung the GPU and the others followed, the HLSL arms included. - The same, one process per test (`--exact --test-threads=1`): **37 passed, 5 failed**. All 5 pass with the switch unset, run the same way. Each one crosses a window on purpose: | test | with the switch | what it builds | |---|---|---| | `window_at_lowers_to_32bit_carry_without_int64` | assertion "expected UMul in DXIL" | checks the DXIL shape of the carry | | `raw_loads_in_root_windows_respect_exec_and_bounds` | assertion at wave32 lane 7 (slot 7), `global_load_dwordx2` | a 64-bit load at a window edge | | `gpu_heap_windows_reject_out_of_uma_aliasing` | assertion "64-bit carry global_load must cross from w0 into w1" | `(w0 + 0xFFFF_FFF0) + 0x20`: it reads `w0 + 0x10` | | `gpu_memory_windows_reject_out_of_uma_aliasing` | **GPU fence still pending after 10 s** | the same program, windows in root UAVs | | `gpu_window_at_32bit_carry_edge_cases` | **GPU fence still pending after 10 s** | root-UAV windows | - The two hangs are the two root-UAV tests. The heap form of the same program only gives a wrong value. - Our reading of the test code, not instrumented: both root-UAV tests contain an access that borrows below the start of its base's window. The out-of-UMA test does `w0 + 0 - 16`; the edge-case test does a store at `(w0 + 0x30) - 0x30 - 16`. - Without the switch that access leaves the UMA: it reads 0 and its store is dropped. - With the switch it stays in window 0 at offset `0xFFFF_FFF0`. The test arena backs 1 MB per window and a root UAV has no bounds, so we take it to be a page fault. - So, as far as these tests show: the switch only misses data when an access leaves its base's window, unless the windows are root UAVs. Then an access that lands on unbacked memory hangs the GPU on this card instead of reading 0. - We did not get the removal reason for these two processes. - @pvfreis's out-of-range cases met their expected values with root UAVs on a 3060. We did not compare the addresses those cases use. **Setup** - RTX 3090 24 GB, driver 616.56, Windows 11 22631, release build; the tests in release too. - Tree: `main` `e1d84b7d`, merged into our integrated tree: - merges or ports of #2384, #1055 / #1102, #541 (with #304), #724 (rebased, not a PR yet), #1887, #1803, #1982, #1405 and #1464; - local changes: - a pipeline-code budget (`XCL_LOCAL_PSO_BUDGET_MB=380`): it releases idle pipelines and rebuilds them on demand; our own command-list segments drop their pipeline references when the title's recording ends; - fault-safe title texture reads; - sparse blocks for title buffers; - a memory census. - Witness: that tree at `2a9f3638`. - Switch arm: `734e12f7` = #2496 cherry-picked at `78bba5ca`, plus `178052a3`. - The cherry-pick had two conflicts, in the cache identity code and in the translator thread's arguments, because our tree computes the identity in one function. - Our additions: - the switch also goes into `direct_output_identity` (@pvfreis's point); - a warning per title reservation over 4 GiB made with the switch; - `178052a3`: a log of placed title buffers that cross a window boundary. - Env, both arms: `XCL_HEAP_WINDOWS=1 XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_LOCAL_SKIP_CS_KB=4096 XCL_RUN_SECONDS=330 XCL_UMA_SHADOW=1 XCL_GPU_WAIT_TIMEOUT_MS=250 XCL_LOCAL_NO_WATCHDOG=1 XCL_LOCAL_RTSUM=1 XCL_LOCAL_RTSUM_AFTER_S=100 XCL_LOCAL_RTSUM_PCT=1 XCL_FRAME_DUMP=100000 XCL_LOCAL_FRAME_DUMP_AFTER_S=9999 XCL_LOCAL_FRAME_DUMP_WAIT_MS=20000 XCL_LOCAL_RTSUM_DUMP_MAX=12 XCL_LOCAL_RODATA_GETPC_ONLY=1 XCL_LOCAL_OOW_COPY=0 XCL_GPU_VIEW_BUFFERS=1 XCL_LOCAL_GPU_VIEW_ROOT_KB=512 XCL_LOCAL_TEX_OVERLAP=1 XCL_DIRECT_DXIL=1 XCL_DIRECT_SPLIT_INSTRUCTIONS=0 XCL_LOCAL_CODE_IN_USE=1 XCL_LOCAL_PSO_BUDGET_MB=380 XCL_LOCAL_ASIDE_EAGER=1 XCL_LOCAL_MEM_CENSUS=1 XCL_HUGE_PSO_CONCURRENCY=4 XCL_LOCAL_FAST_SAFE_READ=1 XCL_PAGE_BUDGET_MB=1024 XCL_GPU_VIEW_MB=1024` - The switch arm adds `XCL_WINDOW_NO_CARRY=1`. - Scripted A presses from 4 s. - `XCL_LOCAL_NO_WATCHDOG=1` keeps the title's stall watchdog from aborting. - The earlier pair (VNIGHT1 / VNC1) had `XCL_PAGE_BUDGET_MB=2048 XCL_GPU_VIEW_MB=1536` and frame dumps from world + 20 s. - Caches: - each arm had its own, filled before the runs by a full precompile with its own switches (`xcl shaders --precompile --only cs --pipelines`, then `--only ms`); - the switch arm also had one warm-up run for the mesh and GS compute passes; - VS/PS stay on the HLSL path, so their DXIL and blobs do not change. **Not measured** - More than one run per arm. The witnesses lost the device at two different points (world + 44 s and + 158 s). - Whether the switch run would hold past 187 s of world. - Raw accesses that cross a window boundary inside the two big reservations. - The image in VNC2. - The removal reason in the two hanging tests. - Other cards and drivers. - This PR without our local pipeline budget. **AI use**: Claude Code with Claude Opus 5.5, as the coordinating session and as its agents. The agents ported the PR, resolved the conflicts, wrote the diagnostic and the test and run jobs, read the logs and drafted this report. The coordinating session ran the builds, the tests and the runs, and checked the numbers quoted here.
S1m0ne1997 commented 2026-11-26 07:03:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by S1m0ne1997 on 2026-11-26T06:37:51Z.


Updated to ae56502 (rebased onto main b49be18, still one commit). What changed, from the review points above:

  • Root-UAV windows keep the carry. With the switch for the whole test process, two root-UAV window tests hung the GPU on an RTX 3090 (@CharlyRien). An access that leaves its allocation wraps inside its base's window. A root UAV has no bounds, so that access can land past the window's buffer. A heap view is bounds-checked and reads 0 there. The switch now applies to heap windows only. The new test checks both forms: same results with and without the switch, less DXIL with heap windows, identical DXIL with root UAVs.
  • Cache identity (@pvfreis): the switch is now part of direct_output_identity too, so the enormous programs that go direct without XCL_DIRECT_DXIL are kept apart as well.
  • Reservations over 4 GiB (@Oliwettoo, @pvfreis, @CharlyRien: the title makes two, of 24,576 and 6,236 MB) still span windows. They can't fit in one. With the switch, each is logged once, and the description lists the case under Not tested. @CharlyRien saw no placed title buffer cross a boundary with the switch. An access from a base in such a reservation that crosses a boundary would stay in its base's window.

Tests at ae56502 (RTX 4090, driver 621.40):

  • cargo test --workspace -- --test-threads=4: 1437 passed, 0 failed, 47 ignored.
  • The same with XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_WINDOW_NO_CARRY=1 (--no-fail-fast): 1436 passed, 1 failed, 47 ignored. The failure is gpu_heap_windows_reject_out_of_uma_aliasing, on the case it builds on purpose (an address that crosses into another window). No GPU hang.
  • Smoke, 60 s, retail title: main 1318 frames; this PR 1662 frames with the switch off and 1531 with it on; 0 removals and 0 crashes in all three. Blocks in the description.

Results so far, from the reports above:

  • Driver code is smaller everywhere it was measured: −5 to −6 % of the code bound in the title on an RTX 5090, −15 % over 60 programs on an RTX 3060, and on an RX 9070 XT −11 % of DXIL with switch-form windows and −7.5 % with heap windows, plus 13 % faster driver compiles.
  • On the removal itself, the results are mixed. It moved past the point where it came before on an RTX 4070 SUPER (with #2427) and on an RTX 3090. On the RTX 5090 both arms were removed at the same point of the title. One run per arm everywhere, and the point of removal moves between runs, so this reduces the code but does not remove the limit.

AI use: Claude Code (Claude Opus 5.5) made the changes, ran the suite and the smoke runs, and drafted this.

<!-- greyfinch-sync:ivall/xcl:comment:7184621028 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2496#issuecomment-7184621028). Originally posted by [S1m0ne1997](https://github.com/S1m0ne1997) on 2026-11-26T06:37:51Z. --- Updated to `ae56502` (rebased onto `main` `b49be18`, still one commit). What changed, from the review points above: - **Root-UAV windows keep the carry.** With the switch for the whole test process, two root-UAV window tests hung the GPU on an RTX 3090 (@CharlyRien). An access that leaves its allocation wraps inside its base's window. A root UAV has no bounds, so that access can land past the window's buffer. A heap view is bounds-checked and reads 0 there. The switch now applies to heap windows only. The new test checks both forms: same results with and without the switch, less DXIL with heap windows, identical DXIL with root UAVs. - **Cache identity** (@pvfreis): the switch is now part of `direct_output_identity` too, so the `enormous` programs that go direct without `XCL_DIRECT_DXIL` are kept apart as well. - **Reservations over 4 GiB** (@Oliwettoo, @pvfreis, @CharlyRien: the title makes two, of 24,576 and 6,236 MB) still span windows. They can't fit in one. With the switch, each is logged once, and the description lists the case under **Not tested**. @CharlyRien saw no placed title buffer cross a boundary with the switch. An access from a base in such a reservation that crosses a boundary would stay in its base's window. Tests at `ae56502` (RTX 4090, driver 621.40): - `cargo test --workspace -- --test-threads=4`: 1437 passed, 0 failed, 47 ignored. - The same with `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_WINDOW_NO_CARRY=1` (`--no-fail-fast`): 1436 passed, 1 failed, 47 ignored. The failure is `gpu_heap_windows_reject_out_of_uma_aliasing`, on the case it builds on purpose (an address that crosses into another window). No GPU hang. - Smoke, 60 s, retail title: `main` 1318 frames; this PR 1662 frames with the switch off and 1531 with it on; 0 removals and 0 crashes in all three. Blocks in the description. **Results so far, from the reports above:** - Driver code is smaller everywhere it was measured: −5 to −6 % of the code bound in the title on an RTX 5090, −15 % over 60 programs on an RTX 3060, and on an RX 9070 XT −11 % of DXIL with switch-form windows and −7.5 % with heap windows, plus 13 % faster driver compiles. - On the removal itself, the results are mixed. It moved past the point where it came before on an RTX 4070 SUPER (with #2427) and on an RTX 3090. On the RTX 5090 both arms were removed at the same point of the title. One run per arm everywhere, and the point of removal moves between runs, so this reduces the code but does not remove the limit. AI use: Claude Code (Claude Opus 5.5) made the changes, ran the suite and the smoke runs, and drafted this.
S1m0ne1997 commented 2026-11-26 07:03:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by S1m0ne1997 on 2026-11-26T06:44:16Z.


Follow-up to the summary above: 2e8ff6b makes the two existing carry tests pin the switch off for their own translations, so they always test the 64-bit sum. With the switch set for the whole process (XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_WINDOW_NO_CARRY=1), the suite is now 1437 passed, 0 failed, 47 ignored, the same as without it. Smoke blocks for 2e8ff6b are in the description.

<!-- greyfinch-sync:ivall/xcl:comment:7184730955 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2496#issuecomment-7184730955). Originally posted by [S1m0ne1997](https://github.com/S1m0ne1997) on 2026-11-26T06:44:16Z. --- Follow-up to the summary above: `2e8ff6b` makes the two existing carry tests pin the switch off for their own translations, so they always test the 64-bit sum. With the switch set for the whole process (`XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_WINDOW_NO_CARRY=1`), the suite is now 1437 passed, 0 failed, 47 ignored, the same as without it. Smoke blocks for `2e8ff6b` are in the description.
bielfreedom commented 2026-11-26 17:22:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bielfreedom on 2026-11-26T17:22:37Z.


AMD Windows rerun for #2496 at 2e8ff6b: on the RX 9070 XT, with the root-UAV windows now keeping the carry, the switch no longer changes anything with the default switch windows. With heap windows it still cuts AMD's CreateComputePipelineState time by about 15 % over 26 large retail compute programs. No failures in any arm. This replaces my earlier numbers, which were from 78bba5c.

Setup: as in my comment above, with this PR at 2e8ff6b merged onto main b49be18. One binary for both arms; only XCL_WINDOW_NO_CARRY differs.

DXIL, all 2,689 compute programs (translation only)

windows switch off XCL_WINDOW_NO_CARRY=1 programs changed
switch (default) 885.9 MB 885.9 MB, the same bytes 0
heap (XCL_HEAP_WINDOWS=1) 728.9 MB 674.0 MB (−7.5 %) 2,659

With the switch off, both forms match main byte for byte.

Driver, 26 large programs, 2 interleaved rounds (off, on, then on, off)

windows arm pipelines (incl. split pieces) DXIL to the driver driver time r1 / r2 peak memory
switch off 76 9.63 MB 100.9 / 100.3 s 1.47 GB
switch on 76 9.63 MB 103.2 / 102.0 s 1.47 GB
heap off 66 7.94 MB 93.3 / 98.8 s 1.61 / 1.62 GB
heap on 63 7.43 MB 85.0 / 79.0 s 1.28 / 1.35 GB

With heap windows the mean is 96.1 → 82.0 s (−15 %); the six split programs make 43 pieces instead of 46. The switch-window arms differ by 2 %, which is noise for identical DXIL.

This machine is busier today than when I measured 78bba5c, so compare within a row pair, not across reports.

AI use: Claude Code (Claude Opus 5.5) built the binary, ran the measurements and wrote this; I posted it.

<!-- greyfinch-sync:ivall/xcl:comment:7198910195 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2496#issuecomment-7198910195). Originally posted by [bielfreedom](https://github.com/bielfreedom) on 2026-11-26T17:22:37Z. --- **AMD Windows rerun for #2496 at `2e8ff6b`: on the RX 9070 XT, with the root-UAV windows now keeping the carry, the switch no longer changes anything with the default switch windows. With heap windows it still cuts AMD's `CreateComputePipelineState` time by about 15 % over 26 large retail compute programs.** No failures in any arm. This replaces my earlier numbers, which were from `78bba5c`. **Setup:** as in my comment above, with this PR at `2e8ff6b` merged onto `main` `b49be18`. One binary for both arms; only `XCL_WINDOW_NO_CARRY` differs. **DXIL, all 2,689 compute programs (translation only)** | windows | switch off | `XCL_WINDOW_NO_CARRY=1` | programs changed | |---|---:|---:|---:| | switch (default) | 885.9 MB | 885.9 MB, the same bytes | 0 | | heap (`XCL_HEAP_WINDOWS=1`) | 728.9 MB | 674.0 MB (−7.5 %) | 2,659 | With the switch off, both forms match `main` byte for byte. **Driver, 26 large programs, 2 interleaved rounds (off, on, then on, off)** | windows | arm | pipelines (incl. split pieces) | DXIL to the driver | driver time r1 / r2 | peak memory | |---|---|---:|---:|---:|---:| | switch | off | 76 | 9.63 MB | 100.9 / 100.3 s | 1.47 GB | | switch | on | 76 | 9.63 MB | 103.2 / 102.0 s | 1.47 GB | | heap | off | 66 | 7.94 MB | 93.3 / 98.8 s | 1.61 / 1.62 GB | | heap | on | 63 | 7.43 MB | 85.0 / 79.0 s | 1.28 / 1.35 GB | With heap windows the mean is 96.1 → 82.0 s (−15 %); the six split programs make 43 pieces instead of 46. The switch-window arms differ by 2 %, which is noise for identical DXIL. This machine is busier today than when I measured `78bba5c`, so compare within a row pair, not across reports. **AI use:** Claude Code (Claude Opus 5.5) built the binary, ran the measurements and wrote this; I posted it.
Decodere commented 2026-11-26 20:09:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-26T20:09:02Z.


Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2496 updated head 816406772fcc319fac5f535e1753c966a0146d8b (exact parent & merge-base b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7). Measurements, targeted GPU/unit tests, and paired default + XCL_WINDOW_NO_CARRY=1 60 s smokes 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, quiet machine (zero concurrent builds/tests during timed runs; note gpu/dxil/* edits give 81640677 a fresh XCL_DIRECT_DXIL_SOURCE_ID namespace)
  • Workload: Retail workload title: 29640639 via scripts/smoke.ps1 -Seconds 60 (XCL_NETWORK=0, default flags and XCL_WINDOW_NO_CARRY=1, no input)

Targeted RTX 4060 release unit & GPU tests (81640677)

  • cargo test --release -p xcl --lib gpu_window_no_carry_reads_inside_allocations_alike -- --nocapture: 1 passed, 0 failed, 0 ignored (0.26 s, executed on RTX 4060, 0 SKIPPED).
  • cargo test --release -p xcl --lib memory_windows_reject_out_of_uma_aliasing -- --nocapture: 1 passed, 0 failed, 0 ignored (0.23 s, executed on RTX 4060, 0 SKIPPED).
  • cargo test --release -p xcl --lib a_reservation_crosses_a_boundary_when_no_window_has_room -- --nocapture: 1 passed, 0 failed, 0 ignored (0.00 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib title_reservations_stay_in_one_window_without_the_carry -- --nocapture: 1 passed, 0 failed, 0 ignored (0.00 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib gpu::uma:: (3 consecutive parallel passes): 14 passed, 0 failed, 0 ignored on all 3 passes (0.01 s / 0.01 s / 0.01 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib gpu::dxil::: 184 passed, 0 failed, 3 ignored (3.32 s; 1 SKIPPED: gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole skipped no wave64 on NVIDIA wave32 RTX 4060).

Paired 60 s RTX 4060 smokes (b49be183 vs 81640677 default and XCL_WINDOW_NO_CARRY=1)

All three runs completed cleanly at steady 60/2 s pacing with 0 device removals and 0 crashes (81640677 default vs XCL_WINDOW_NO_CARRY=1 xcl.log: 6,174/6,114 MB vs 6,176/6,115 MB peak/end local VRAM, 4,651 vs 4,650 MB end non-local VRAM, 19,630 vs 19,570 translated draws / 1,024 dispatches with 0 skipped, 4096 sparse submits in 294 ms vs 254 ms).

Exact parent (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

PR #2496 head (81640677, default flags):

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

PR #2496 head (81640677, with XCL_WINDOW_NO_CARRY=1):

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

Limits of coverage

  • Full workspace test suite was not run on 81640677 (only the 4 targeted tests individually, 3 parallel passes of gpu::uma::, all 184 passing tests in gpu::dxil::, release build, and paired 60 s smokes); dispatch_chain_native_wave64_builds_whole skipped no wave64 on wave32 NVIDIA hardware.
  • Both default and XCL_WINDOW_NO_CARRY=1 runs passed the 60 s no-input menu/intro smoke cleanly; visual inspection of extended interactive in-world gameplay under XCL_WINDOW_NO_CARRY=1 was not performed on this host.
  • 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 GPU/unit tests, release build, and paired default + XCL_WINDOW_NO_CARRY=1 quiet 60 s smoke runs with assistance from Google Antigravity (Gemini 4 Neon); all test counts, timings, memory figures, and smoke blocks were extracted directly from cargo test, xcl.log, and scripts/smoke.ps1 outputs.

<!-- greyfinch-sync:ivall/xcl:comment:7202354768 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2496#issuecomment-7202354768). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-26T20:09:02Z. --- **Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2496 updated head `816406772fcc319fac5f535e1753c966a0146d8b`** (exact parent & merge-base `b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`). Measurements, targeted GPU/unit tests, and paired default + `XCL_WINDOW_NO_CARRY=1` 60 s smokes 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, quiet machine (zero concurrent builds/tests during timed runs; note `gpu/dxil/*` edits give `81640677` a fresh `XCL_DIRECT_DXIL_SOURCE_ID` namespace) - **Workload:** Retail workload `title: 29640639` via `scripts/smoke.ps1 -Seconds 60` (`XCL_NETWORK=0`, default flags and `XCL_WINDOW_NO_CARRY=1`, no input) ### Targeted RTX 4060 release unit & GPU tests (`81640677`) - `cargo test --release -p xcl --lib gpu_window_no_carry_reads_inside_allocations_alike -- --nocapture`: **1 passed, 0 failed, 0 ignored** (`0.26 s`, executed on RTX 4060, `0` `SKIPPED`). - `cargo test --release -p xcl --lib memory_windows_reject_out_of_uma_aliasing -- --nocapture`: **1 passed, 0 failed, 0 ignored** (`0.23 s`, executed on RTX 4060, `0` `SKIPPED`). - `cargo test --release -p xcl --lib a_reservation_crosses_a_boundary_when_no_window_has_room -- --nocapture`: **1 passed, 0 failed, 0 ignored** (`0.00 s`, `0` `SKIPPED`). - `cargo test --release -p xcl --lib title_reservations_stay_in_one_window_without_the_carry -- --nocapture`: **1 passed, 0 failed, 0 ignored** (`0.00 s`, `0` `SKIPPED`). - `cargo test --release -p xcl --lib gpu::uma::` (3 consecutive parallel passes): **14 passed, 0 failed, 0 ignored** on all 3 passes (`0.01 s` / `0.01 s` / `0.01 s`, `0` `SKIPPED`). - `cargo test --release -p xcl --lib gpu::dxil::`: **184 passed, 0 failed, 3 ignored** (`3.32 s`; `1` `SKIPPED`: `gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole` skipped `no wave64` on NVIDIA wave32 RTX 4060). ### Paired 60 s RTX 4060 smokes (`b49be183` vs `81640677` default and `XCL_WINDOW_NO_CARRY=1`) All three runs completed cleanly at steady 60/2 s pacing with `0` device removals and `0` crashes (`81640677` default vs `XCL_WINDOW_NO_CARRY=1` `xcl.log`: `6,174`/`6,114 MB` vs `6,176`/`6,115 MB` peak/end local VRAM, `4,651` vs `4,650 MB` end non-local VRAM, `19,630` vs `19,570` translated draws / `1,024` dispatches with `0` skipped, `4096` sparse submits in `294 ms` vs `254 ms`). Exact parent (`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 ``` PR #2496 head (`81640677`, default flags): ``` xcl-smoke v1 commit: 816406772fcc319fac5f535e1753c966a0146d8b gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1604 (PresentX 1604) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13986 MB ``` PR #2496 head (`81640677`, with `XCL_WINDOW_NO_CARRY=1`): ``` xcl-smoke v1 commit: 816406772fcc319fac5f535e1753c966a0146d8b gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1586 (PresentX 1586) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13988 MB ``` ### Limits of coverage - Full workspace test suite was not run on `81640677` (only the 4 targeted tests individually, 3 parallel passes of `gpu::uma::`, all `184` passing tests in `gpu::dxil::`, release build, and paired 60 s smokes); `dispatch_chain_native_wave64_builds_whole` skipped `no wave64` on wave32 NVIDIA hardware. - Both default and `XCL_WINDOW_NO_CARRY=1` runs passed the 60 s no-input menu/intro smoke cleanly; visual inspection of extended interactive in-world gameplay under `XCL_WINDOW_NO_CARRY=1` was not performed on this host. - 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 GPU/unit tests, release build, and paired default + `XCL_WINDOW_NO_CARRY=1` quiet 60 s smoke runs with assistance from Google Antigravity (Gemini 4 Neon); all test counts, timings, memory figures, and smoke blocks were extracted directly from `cargo test`, `xcl.log`, and `scripts/smoke.ps1` outputs.
pvfreis commented 2026-11-26 21:23:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by pvfreis on 2026-11-26T21:23:33Z.


Follow-up, by reading only at 81640677: both points addressed. direct_output_identity now adds xcl-window-no-carry when the switch is set (pso.rs:517-519), so the enormous programs that go direct without XCL_DIRECT_DXIL are kept apart too, and the reservations over 4 GiB are listed under Not tested.

AI use: Claude Code (Claude Opus 5.5) checked the new head and wrote this; Claude Fable 5.2 rechecked it against the code and the thread; checked by a person before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7203681020 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2496#issuecomment-7203681020). Originally posted by [pvfreis](https://github.com/pvfreis) on 2026-11-26T21:23:33Z. --- Follow-up, by reading only at `81640677`: both points addressed. `direct_output_identity` now adds `xcl-window-no-carry` when the switch is set (`pso.rs:517-519`), so the `enormous` programs that go direct without `XCL_DIRECT_DXIL` are kept apart too, and the reservations over 4 GiB are listed under **Not tested**. AI use: Claude Code (Claude Opus 5.5) checked the new head and wrote this; Claude Fable 5.2 rechecked it against the code and the thread; checked by a person before posting.
ClosetPie107 commented 2026-11-27 18:00:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-11-27T18:00:44Z.


Tested on AMD / Linux: 81640677 (RX 9070 16 GB, RDNA4, Mesa 26.3.1 RADV; Ryzen 5 9600X, 32 GB; CachyOS; Proton Experimental experimental-11.0-20261112 with vkd3d-proton master ec207194 plus a local patch dropping the lpVtbl checks of command allocators and lists; DXC 1.9.2609.5; Rust 1.96.0, x86_64-pc-windows-gnu debug build, tests run under Wine)

The head as it is (base b49be183), with main f9a0cb80 the same session as the baseline.

Tests (XCL_REQUIRE_GPU=wave64)

  • cargo test -p xcl --lib -- gpu_window_no_carry_reads_inside_allocations_alike --test-threads=1: 1 passed, 0 failed, 0 ignored.
  • cargo test -p xcl --lib -- gpu::uma:: --test-threads=1: 14 passed, 0 failed, 0 ignored (includes a_reservation_crosses_a_boundary_when_no_window_has_room and title_reservations_stay_in_one_window_without_the_carry).
  • cargo test --workspace --no-fail-fast -- --test-threads=4 with --skip compositor_blends_ui_plane_over_scene_plane --skip failed_restore_stops_before_importing_an_unbacked_window --skip grooming_leaves_a_window_under_1_gib_only_its_hole (the first loses the RADV device here, the other two run out of memory under Wine): the lib binary ended partway with a device removal (0x887a0005), which happens intermittently on main here too (1 of its 3 four-thread runs). Lib again with --test-threads=1 and the same skips: 1303 passed, 8 failed, 27 ignored; main f9a0cb80 lib the same session: 1323 passed, 9 failed, 27 ignored (--test-threads=1 and two --test-threads=4 runs). All failures are among main's. The other binaries fail the same 3 tests as on main here (e2e, pls_quota, predication_e2e). d3d12_resource_and_sync ended the process, as it does on main here.

Not tested

  • A retail title, with or without XCL_WINDOW_NO_CARRY
  • Native Windows, NVIDIA / Intel

AI use

  • Claude Code (Claude Opus 5.5) wrote the test scripts, ran the builds and tests on my machine and wrote this report.
<!-- greyfinch-sync:ivall/xcl:comment:7225023351 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2496#issuecomment-7225023351). Originally posted by [ClosetPie107](https://github.com/ClosetPie107) on 2026-11-27T18:00:44Z. --- **Tested on AMD / Linux: `81640677`** (RX 9070 16 GB, RDNA4, Mesa 26.3.1 RADV; Ryzen 5 9600X, 32 GB; CachyOS; Proton Experimental `experimental-11.0-20261112` with vkd3d-proton master `ec207194` plus a local patch dropping the `lpVtbl` checks of command allocators and lists; DXC 1.9.2609.5; Rust 1.96.0, `x86_64-pc-windows-gnu` debug build, tests run under Wine) The head as it is (base `b49be183`), with `main` `f9a0cb80` the same session as the baseline. **Tests** (`XCL_REQUIRE_GPU=wave64`) - `cargo test -p xcl --lib -- gpu_window_no_carry_reads_inside_allocations_alike --test-threads=1`: **1 passed, 0 failed**, 0 ignored. - `cargo test -p xcl --lib -- gpu::uma:: --test-threads=1`: **14 passed, 0 failed**, 0 ignored (includes `a_reservation_crosses_a_boundary_when_no_window_has_room` and `title_reservations_stay_in_one_window_without_the_carry`). - `cargo test --workspace --no-fail-fast -- --test-threads=4` with `--skip compositor_blends_ui_plane_over_scene_plane --skip failed_restore_stops_before_importing_an_unbacked_window --skip grooming_leaves_a_window_under_1_gib_only_its_hole` (the first loses the RADV device here, the other two run out of memory under Wine): the lib binary ended partway with a device removal (`0x887a0005`), which happens intermittently on `main` here too (1 of its 3 four-thread runs). Lib again with `--test-threads=1` and the same skips: 1303 passed, 8 failed, 27 ignored; `main` `f9a0cb80` lib the same session: 1323 passed, 9 failed, 27 ignored (`--test-threads=1` and two `--test-threads=4` runs). All failures are among `main`'s. The other binaries fail the same 3 tests as on `main` here (`e2e`, `pls_quota`, `predication_e2e`). `d3d12_resource_and_sync` ended the process, as it does on `main` here. **Not tested** - A retail title, with or without `XCL_WINDOW_NO_CARRY` - Native Windows, NVIDIA / Intel **AI use** - Claude Code (Claude Opus 5.5) wrote the test scripts, ran the builds and tests on my machine and wrote this report.
Foniass commented 2026-12-01 08:11:52 +00:00 (Migrated from github.com)

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


Triage (#1607) – head 8164067

Nothing on main or in an open PR adds XCL_WINDOW_NO_CARRY. Other PRs for #2403 shrink driver code in other ways: #2427 and #1380 drop the window branch or switch, #2428 uses flat heap windows on NVIDIA, and #2469, #2526, #2590 and #2641 touch scratch, eviction, the profile and helpers. They can all be combined with this one; none makes the same change. The switch is off by default, applies only to heap windows (lower_window), and is part of the pipeline identity; Uma::sparse_reserve keeps a reservation inside one window when it can. No problems found in the diff.
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:7305001111 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2496#issuecomment-7305001111). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:11:52Z. --- **Triage (#1607)** – head 8164067 Nothing on main or in an open PR adds `XCL_WINDOW_NO_CARRY`. Other PRs for #2403 shrink driver code in other ways: #2427 and #1380 drop the window branch or switch, #2428 uses flat heap windows on NVIDIA, and #2469, #2526, #2590 and #2641 touch scratch, eviction, the profile and helpers. They can all be combined with this one; none makes the same change. The switch is off by default, applies only to heap windows (`lower_window`), and is part of the pipeline identity; `Uma::sparse_reserve` keeps a reservation inside one window when it can. No problems found in the diff. 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/2496:upstream-pr/2496'
git switch 'upstream-pr/2496'

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