D3D12.X: the pieces of a split program read their slab from a root CBV #2623

Closed
Kalmarv wants to merge 15 commits from upstream-pr/2633 into main
Kalmarv commented 2026-11-26 03:30:19 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-26T03:30:19Z.


Stacked on #2404; only the top commit (19be659) belongs here.

A chained ExecuteIndirect (#2404) records, for each round and piece, a UAV barrier, the piece's pipeline and an ExecuteIndirect whose command signature sets the slab's eight root constants. On the RTX 5070 Ti such an ExecuteIndirect after the barrier takes 15.3 µs of GPU time, empty or not, so 32 rounds of 10 pieces cost 4.9 ms every time. With a Dispatch-only signature it takes 0.41 µs. The pieces read only the slab's size and origin, the same for every piece of a round, so the chain's root signature now gives them as a root CBV (b0, space2, the register the pieces already read) instead of root constants. The pieces' code does not change.

What is in it

  • D3D12.X: the pieces of a split program read their slab from a root CBV (19be659), in pso.rs, runner.rs, dispatch_chain.rs, real.rs and shaders.rs, with unit tests:
    • ExecuteIndirect: the slicer writes one 256-byte command a round (the slab's constants, its Dispatch 32 bytes in) instead of one 44-byte command per piece. The CPU points the CBV at the round's command, and the pieces' ExecuteIndirects use the Dispatch-only signature. The commands buffer for 32 rounds is 8 KiB, whatever the number of pieces.
    • Dispatch: the CPU writes the slabs' constants into 64 KiB upload-heap blocks of the list's allocator, used again once it is reset. A list with no allocator runs the whole form, as without scratch. Only blocks of 64 KiB are kept for use again, up to 8 MiB of them; bigger blocks and those past it are released at the reset (keep_free_constants; review by @luckyteagirl).
    • The driver blob of a piece kept on disk: the pieces' DXIL is the same as under #2404, so its file now also names the chain's root signature, as a hash of it serialized with the program's static samplers (pso::abi_signature_id, in driver_cache::name_for; the precompile names it the same way). A blob built for #2404's root constants, or for other static samplers, is then not read and refused, and #2404's and this PR's files sit side by side in one cache (review by @KDenKC; the samplers after #2723).

Tested

  • Ryzen 9 9950X, RTX 5070 Ti (NVIDIA 610.74), Windows 11 build 26200, rustc 1.99.0, DXC 1.9.2609; tests in debug, the smoke runs from release builds.
  • On 19be659 (on #2404's head 5b9d4ff), on the GPU (debug):
    • cargo test --workspace --no-fail-fast -- --test-threads=4: 1450 passed, 0 failed, 47 ignored, the new a_piece_is_named_after_its_static_samplers and main's precompile test split_compute_program_prebuilds_and_caches_chain_pieces among them. 25 SKIPPED, as below.
    • a_piece_is_named_after_its_static_samplers (two sampler sets, two names): with the id of db34184, which leaves the samplers out, failed; with this one, passed. The driver_cache unit tests: 6 passed.
  • On db34184, this change before the static samplers were in the name (on 5b9d4ff), on the GPU (debug):
    • cargo test --workspace --no-fail-fast -- --test-threads=4: 1449 passed, 0 failed, 47 ignored, the new a_piece_is_named_after_the_root_signature_it_was_built_with among them. 25 SKIPPED, as below.
    • direct_dispatches_write_their_constants_in_blocks_used_again_after_the_allocator_reset, with the new assertions that no block bigger than 64 KiB is kept and the kept ones stay within 8 MiB: 1 passed. With acba153's reset (every block kept): failed, "a block bigger than 65536 kept for use again".
    • The dispatch_chain, alloc_pool and driver_cache unit tests, --test-threads=1: 23 passed.
    • The dispatch_chain, split, execute_indirect and slab filters with the debug layer and GPU-based validation, --nocapture, on the local build described below, --test-threads=1: 51 passed, 0 failed, 1 ignored. 1 SKIPPED: dispatch_chain_native_wave64_builds_whole (no wave64). During the tests: 1 error, 884, and 275 warnings (195 of 1328, 80 of 926), as on 1202ac1 below.
    • Without the GPU: a_piece_is_named_after_the_root_signature_it_was_built_with and a_file_is_named_after_its_dxil_and_flags failed with the piece's file named as before (no signature), and pass with it.
  • On acba153, this change before the two review fixes (on #2404's then head 97a70a7): cargo test --workspace --no-fail-fast -- --test-threads=4: 1446 passed, 0 failed, 47 ignored, the new direct_dispatches_write_their_constants_in_blocks_used_again_after_the_allocator_reset among them. 25 SKIPPED: 21 for no native wave64 on this card, three per-lane FP16 forms the per-lane lowering refuses, and no heap windows.
  • The runs below on 1202ac1 are of the same change before its rebase onto 97a70a7 (on 551a75e).
  • On 1202ac1, the dispatch_chain, split, execute_indirect and slab filters with XCL_D3D12_DEBUG=1, --test-threads=4: 48 passed, 0 failed, 1 ignored. 1 SKIPPED: dispatch_chain_native_wave64_builds_whole (no wave64). The dispatch_chain unit tests, --test-threads=1: 7 passed. dispatch_chain_divergent_forward_edges_3d, three runs: 1 passed each.
  • The same filters with the debug layer and GPU-based validation, --nocapture, on a local build of the test runner that switches GPU-based validation on and prints every layer message (neither is an XCL option): 48 passed, 0 failed, 1 ignored. During the tests: 1 error, 884, from main's split_compute_program_prebuilds_and_caches_chain_pieces, which feeds the driver a deliberately invalid blob; and 275 warnings: 195 of 1328 (a buffer's initial state ignored) and 80 of 926 (a root view's address in a heap), as on #2404's head.
  • On 1202ac1, on an RTX 2060 (NVIDIA 595.91) under Wine (wine-staging 11.21) + vkd3d-proton 30b0eb9, a release windows-gnu test build, --test-threads=1, no XCL_D3D12_DEBUG or GPU-based validation set; correctness only: the dispatch_chain unit tests 7 passed; the dispatch_chain, split, execute_indirect and slab filters 48 passed, 0 failed, 1 ignored, SKIPPED dispatch_chain_native_wave64_builds_whole (no wave64); list_x 41 passed; alloc_pool 8 passed.
  • Tested by others: @luckyteagirl, on acba153, AMD Radeon RX 6800M (driver 30.0.13002.13003), Windows 11 build 26200, debug (review): dispatch_chain_divergent_forward_edges_3d with XCL_REQUIRE_GPU=wave64, --test-threads=1: 1 passed, 0 failed, no SKIPPED notice, both the 32- and 64-thread chains (3 pieces each). Not the whole suite.
  • Tested by others, on acba153: @pickles976, RTX 4060 Laptop GPU 8 GB (NVIDIA 590.48.1) under Wine 11.0 + vkd3d-proton 3.2.0, a local diagnostic build of it with relaxed checks (-Db_ndebug=true and two local from_iface relaxations), x86_64-pc-windows-msvc, one test thread (review): direct_dispatches_write_their_constants_in_blocks_used_again_after_the_allocator_reset: 1 passed, on the NVIDIA device. Correctness only, with no timing or title run.
  • Tested by others, on db34184 against #2404's 97a70a7: @SzczepanGrela, RX 9070, RADV (Mesa 26.3.1) under Wine 11.0 + vkd3d-proton, release windows-gnu test builds (review). dispatch_chain 9 passed, driver_cache 5 passed, alloc_pool 8 passed and 1 failed on both revisions: main's a_recording_outlives_the_reset_of_the_titles_allocator, whose allocator vkd3d-proton refuses once XCL has adopted it (real::adopt replaces its vtable). dispatch_chain_divergent_forward_edges_3d aborted in d3d12core.dll on both revisions; it passed natively on the RX 6800M below and on our card. In a local GPU-timestamp test, 32 rounds × 10 pieces of ExecuteIndirect took 533–738 µs against #2404's 1,801–2,543 µs. The direct control, 12 slabs × 10 pieces, took longer with this PR: 137.18 µs against 114.48 µs at 32 threads, in every pair, and 169.12 against 108.88 µs at 64.
  • Tested by others, on db34184 against its base 5b9d4ff: @KDenKC, RTX 5090 (NVIDIA 621.24), release, with #2551, each side precompiled from its own cache (227 split programs, 2,000 pieces, 0 refused), one run of the base and two of this PR (review). This PR's cache held only the new piece names, with no refusals. At 130 s: 2,768 and 3,139 chained ExecuteIndirects against 808, 8,939 and 7,564 slabs against 1,694, scratch peaks 613 and 537 MiB against 420. The base and the second run ended in #2403's removal (134.7 s, 131.7 s); the first run of this PR hung (0x887a0006) at 133.45 s. In four more runs with XCL_DRED=1 (review), no hang: three of #2403's removals and one crash of #751's race, so this PR hung in 1 of 4 runs. Neither side skipped a call or ran one whole before 130 s (review). The hang does not separate this PR from more GPU work reaching the card; it is under investigation.
  • Tested by others, on db34184 against 5b9d4ff: @Royalflamejlh, RTX 4060 Ti 16 GB (NVIDIA 615.71.09), Linux, Wine 11.21 Staging + vkd3d-proton 30b0eb9b (patched), on main b49be18 with #684, #751, #1599, #1860 and #2082, three runs a side (review). In the 20 s after each run's first world frame: 7,347–10,000 chained ExecuteIndirects and 18–22 presents against 2,406–2,849 and 6–7, so about as many per present (408–476 against 372–407); no call skipped or run whole. The world came 40–55 s sooner with this PR, from a warmer NVIDIA cache, so neither that nor the present rate is separated from the cache.
  • GPU timestamps, 16 rounds × 10 pieces, median per piece step, in a local-only test not in this PR, on the same change before its rebase (f29910f, on 809da30):
    empty one group
    ExecuteIndirect, root constants (before) 15.3 µs 15.6 µs
    ExecuteIndirect, root CBV, Dispatch-only signature 0.41 µs 1.01 µs
    Dispatch, root constants (before) 0.25 µs 0.61 µs
    Dispatch, root CBV in the upload heap 0.25 µs 0.61 µs
  • On db34184, the same local test at the shape of @SzczepanGrela's direct control (12 slabs × 10 pieces, one group each), 5 alternating trials, two runs: #2404's root constants and this PR's root CBV both 73.66 µs at 32 and at 64 threads (trial medians 73.63–73.70 µs).

Regression run

scripts/smoke.ps1 -Seconds 60, the same retail title, XCL_DIRECT_DXIL=1, a private XCL cache started from the same used-pipelines.txt. From release builds of clean trees, on the machine under Tested, each in the queue's title lane beside other jobs (builds, suites or precompiles; no other title run or timing job runs at the same time there): main's in one job with this PR's db34184, this PR's 19be659 alone, beside 3 other jobs.

main b49be18:

xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 5070 Ti
title: ea3b5e4d
seconds: 60
exit: 0x0
frames shown: 1228 (PresentX 1228)
presents per 2 s (last 3): 4 19 9
device removals: 0
crashes: 0
peak commit: 26156 MB

this PR, 19be659:

xcl-smoke v1
commit: 19be65904f91a232fabc540e96c2e037971f1bd8
gpu: NVIDIA GeForce RTX 5070 Ti
title: ea3b5e4d
seconds: 60
exit: 0x0
frames shown: 1360 (PresentX 1360)
presents per 2 s (last 3): 59 52 57
device removals: 0
crashes: 0
peak commit: 17515 MB

compute split counter at the end of each run:

  • main: compute split: 171 programs split, 1811 pieces built, 0 chained dispatches issued in 0 slabs; scratch 0 MiB (most 0, largest dispatch 0 in one slab)
  • this PR: compute split: 66 programs split, 684 pieces built, 0 chained dispatches issued in 0 slabs; scratch 0 MiB (most 0, largest dispatch 0 in one slab); ExecuteIndirect: 0 chained (0 of them whole, 0 slabs lost), 0 whole

Not tested

  • This 60 s run reaches no chained Dispatch or ExecuteIndirect on either side, so it checks for regressions only; this PR's paths did not run in the title.
  • The GPU time saved in a title: only the local test above measured it.
  • Why the direct path takes longer on RADV (above): not found, and not measurable here.
  • AMD beyond that one test on an RX 6800M; other NVIDIA generations than Blackwell.

Other branches

  • #2629 (a failed whole build is kept) conflicts with this PR in dispatch_chain.rs: both change Chain's fields and the read of its whole form in execute_indirect, and #2629's test sets Chain::signature, which this PR removes. Whichever lands second drops signature and build_whole there and reads the whole form with .flatten(). With that, the merge builds (cargo check -p xcl --lib --tests).

AI use

  • Claude Code with Claude Opus 5.5 wrote the code, the tests and this description, and ran the tests and the regression run on the hardware above.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5503474366 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2633). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-26T03:30:19Z. --- Stacked on #2404; only the top commit (`19be659`) belongs here. A chained `ExecuteIndirect` (#2404) records, for each round and piece, a UAV barrier, the piece's pipeline and an `ExecuteIndirect` whose command signature sets the slab's eight root constants. On the RTX 5070 Ti such an `ExecuteIndirect` after the barrier takes 15.3 µs of GPU time, empty or not, so 32 rounds of 10 pieces cost 4.9 ms every time. With a Dispatch-only signature it takes 0.41 µs. The pieces read only the slab's size and origin, the same for every piece of a round, so the chain's root signature now gives them as a root CBV (`b0, space2`, the register the pieces already read) instead of root constants. The pieces' code does not change. **What is in it** - `D3D12.X: the pieces of a split program read their slab from a root CBV` (`19be659`), in `pso.rs`, `runner.rs`, `dispatch_chain.rs`, `real.rs` and `shaders.rs`, with unit tests: - `ExecuteIndirect`: the slicer writes one 256-byte command a round (the slab's constants, its Dispatch 32 bytes in) instead of one 44-byte command per piece. The CPU points the CBV at the round's command, and the pieces' `ExecuteIndirect`s use the Dispatch-only signature. The commands buffer for 32 rounds is 8 KiB, whatever the number of pieces. - `Dispatch`: the CPU writes the slabs' constants into 64 KiB upload-heap blocks of the list's allocator, used again once it is reset. A list with no allocator runs the whole form, as without scratch. Only blocks of 64 KiB are kept for use again, up to 8 MiB of them; bigger blocks and those past it are released at the reset (`keep_free_constants`; review by @luckyteagirl). - The driver blob of a piece kept on disk: the pieces' DXIL is the same as under #2404, so its file now also names the chain's root signature, as a hash of it serialized with the program's static samplers (`pso::abi_signature_id`, in `driver_cache::name_for`; the precompile names it the same way). A blob built for #2404's root constants, or for other static samplers, is then not read and refused, and #2404's and this PR's files sit side by side in one cache (review by @KDenKC; the samplers after #2723). **Tested** - Ryzen 9 9950X, RTX 5070 Ti (NVIDIA 610.74), Windows 11 build 26200, rustc 1.99.0, DXC 1.9.2609; tests in debug, the smoke runs from release builds. - On `19be659` (on #2404's head `5b9d4ff`), on the GPU (debug): - `cargo test --workspace --no-fail-fast -- --test-threads=4`: 1450 passed, 0 failed, 47 ignored, the new `a_piece_is_named_after_its_static_samplers` and `main`'s precompile test `split_compute_program_prebuilds_and_caches_chain_pieces` among them. 25 SKIPPED, as below. - `a_piece_is_named_after_its_static_samplers` (two sampler sets, two names): with the id of `db34184`, which leaves the samplers out, failed; with this one, passed. The `driver_cache` unit tests: 6 passed. - On `db34184`, this change before the static samplers were in the name (on `5b9d4ff`), on the GPU (debug): - `cargo test --workspace --no-fail-fast -- --test-threads=4`: 1449 passed, 0 failed, 47 ignored, the new `a_piece_is_named_after_the_root_signature_it_was_built_with` among them. 25 SKIPPED, as below. - `direct_dispatches_write_their_constants_in_blocks_used_again_after_the_allocator_reset`, with the new assertions that no block bigger than 64 KiB is kept and the kept ones stay within 8 MiB: 1 passed. With `acba153`'s reset (every block kept): failed, "a block bigger than 65536 kept for use again". - The `dispatch_chain`, `alloc_pool` and `driver_cache` unit tests, `--test-threads=1`: 23 passed. - The `dispatch_chain`, `split`, `execute_indirect` and `slab` filters with the debug layer and GPU-based validation, `--nocapture`, on the local build described below, `--test-threads=1`: 51 passed, 0 failed, 1 ignored. 1 SKIPPED: `dispatch_chain_native_wave64_builds_whole` (no wave64). During the tests: 1 error, 884, and 275 warnings (195 of 1328, 80 of 926), as on `1202ac1` below. - Without the GPU: `a_piece_is_named_after_the_root_signature_it_was_built_with` and `a_file_is_named_after_its_dxil_and_flags` failed with the piece's file named as before (no signature), and pass with it. - On `acba153`, this change before the two review fixes (on #2404's then head `97a70a7`): `cargo test --workspace --no-fail-fast -- --test-threads=4`: 1446 passed, 0 failed, 47 ignored, the new `direct_dispatches_write_their_constants_in_blocks_used_again_after_the_allocator_reset` among them. 25 SKIPPED: 21 for no native wave64 on this card, three per-lane FP16 forms the per-lane lowering refuses, and no heap windows. - The runs below on `1202ac1` are of the same change before its rebase onto `97a70a7` (on `551a75e`). - On `1202ac1`, the `dispatch_chain`, `split`, `execute_indirect` and `slab` filters with `XCL_D3D12_DEBUG=1`, `--test-threads=4`: 48 passed, 0 failed, 1 ignored. 1 SKIPPED: `dispatch_chain_native_wave64_builds_whole` (no wave64). The `dispatch_chain` unit tests, `--test-threads=1`: 7 passed. `dispatch_chain_divergent_forward_edges_3d`, three runs: 1 passed each. - The same filters with the debug layer and GPU-based validation, `--nocapture`, on a local build of the test runner that switches GPU-based validation on and prints every layer message (neither is an XCL option): 48 passed, 0 failed, 1 ignored. During the tests: 1 error, 884, from `main`'s `split_compute_program_prebuilds_and_caches_chain_pieces`, which feeds the driver a deliberately invalid blob; and 275 warnings: 195 of 1328 (a buffer's initial state ignored) and 80 of 926 (a root view's address in a heap), as on #2404's head. - On `1202ac1`, on an RTX 2060 (NVIDIA 595.91) under Wine (wine-staging 11.21) + vkd3d-proton `30b0eb9`, a release `windows-gnu` test build, `--test-threads=1`, no `XCL_D3D12_DEBUG` or GPU-based validation set; correctness only: the `dispatch_chain` unit tests 7 passed; the `dispatch_chain`, `split`, `execute_indirect` and `slab` filters 48 passed, 0 failed, 1 ignored, SKIPPED `dispatch_chain_native_wave64_builds_whole` (no wave64); `list_x` 41 passed; `alloc_pool` 8 passed. - Tested by others: @luckyteagirl, on `acba153`, AMD Radeon RX 6800M (driver 30.0.13002.13003), Windows 11 build 26200, debug ([review](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7182266980)): `dispatch_chain_divergent_forward_edges_3d` with `XCL_REQUIRE_GPU=wave64`, `--test-threads=1`: 1 passed, 0 failed, no SKIPPED notice, both the 32- and 64-thread chains (3 pieces each). Not the whole suite. - Tested by others, on `acba153`: @pickles976, RTX 4060 Laptop GPU 8 GB (NVIDIA 590.48.1) under Wine 11.0 + vkd3d-proton 3.2.0, a local diagnostic build of it with relaxed checks (`-Db_ndebug=true` and two local `from_iface` relaxations), `x86_64-pc-windows-msvc`, one test thread ([review](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7183101906)): `direct_dispatches_write_their_constants_in_blocks_used_again_after_the_allocator_reset`: 1 passed, on the NVIDIA device. Correctness only, with no timing or title run. - Tested by others, on `db34184` against #2404's `97a70a7`: @SzczepanGrela, RX 9070, RADV (Mesa 26.3.1) under Wine 11.0 + vkd3d-proton, release `windows-gnu` test builds ([review](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7186055146)). `dispatch_chain` 9 passed, `driver_cache` 5 passed, `alloc_pool` 8 passed and 1 failed on both revisions: `main`'s `a_recording_outlives_the_reset_of_the_titles_allocator`, whose allocator vkd3d-proton refuses once XCL has adopted it (`real::adopt` replaces its vtable). `dispatch_chain_divergent_forward_edges_3d` aborted in `d3d12core.dll` on both revisions; it passed natively on the RX 6800M below and on our card. In a local GPU-timestamp test, 32 rounds × 10 pieces of `ExecuteIndirect` took 533–738 µs against #2404's 1,801–2,543 µs. The direct control, 12 slabs × 10 pieces, took longer with this PR: 137.18 µs against 114.48 µs at 32 threads, in every pair, and 169.12 against 108.88 µs at 64. - Tested by others, on `db34184` against its base `5b9d4ff`: @KDenKC, RTX 5090 (NVIDIA 621.24), release, with #2551, each side precompiled from its own cache (227 split programs, 2,000 pieces, 0 refused), one run of the base and two of this PR ([review](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7191463051)). This PR's cache held only the new piece names, with no refusals. At 130 s: 2,768 and 3,139 chained `ExecuteIndirect`s against 808, 8,939 and 7,564 slabs against 1,694, scratch peaks 613 and 537 MiB against 420. The base and the second run ended in #2403's removal (134.7 s, 131.7 s); the first run of this PR hung (`0x887a0006`) at 133.45 s. In four more runs with `XCL_DRED=1` ([review](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7191832423)), no hang: three of #2403's removals and one crash of #751's race, so this PR hung in 1 of 4 runs. Neither side skipped a call or ran one whole before 130 s ([review](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7192378903)). The hang does not separate this PR from more GPU work reaching the card; it is under investigation. - Tested by others, on `db34184` against `5b9d4ff`: @Royalflamejlh, RTX 4060 Ti 16 GB (NVIDIA 615.71.09), Linux, Wine 11.21 Staging + vkd3d-proton `30b0eb9b` (patched), on `main` `b49be18` with #684, #751, #1599, #1860 and #2082, three runs a side ([review](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7192638615)). In the 20 s after each run's first world frame: 7,347–10,000 chained `ExecuteIndirect`s and 18–22 presents against 2,406–2,849 and 6–7, so about as many per present (408–476 against 372–407); no call skipped or run whole. The world came 40–55 s sooner with this PR, from a warmer NVIDIA cache, so neither that nor the present rate is separated from the cache. - GPU timestamps, 16 rounds × 10 pieces, median per piece step, in a local-only test not in this PR, on the same change before its rebase (`f29910f`, on `809da30`): | | empty | one group | |---|---|---| | `ExecuteIndirect`, root constants (before) | 15.3 µs | 15.6 µs | | `ExecuteIndirect`, root CBV, Dispatch-only signature | 0.41 µs | 1.01 µs | | `Dispatch`, root constants (before) | 0.25 µs | 0.61 µs | | `Dispatch`, root CBV in the upload heap | 0.25 µs | 0.61 µs | - On `db34184`, the same local test at the shape of @SzczepanGrela's direct control (12 slabs × 10 pieces, one group each), 5 alternating trials, two runs: #2404's root constants and this PR's root CBV both 73.66 µs at 32 and at 64 threads (trial medians 73.63–73.70 µs). **Regression run** `scripts/smoke.ps1 -Seconds 60`, the same retail title, `XCL_DIRECT_DXIL=1`, a private XCL cache started from the same `used-pipelines.txt`. From release builds of clean trees, on the machine under **Tested**, each in the queue's title lane beside other jobs (builds, suites or precompiles; no other title run or timing job runs at the same time there): `main`'s in one job with this PR's `db34184`, this PR's `19be659` alone, beside 3 other jobs. `main` `b49be18`: ``` xcl-smoke v1 commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7 gpu: NVIDIA GeForce RTX 5070 Ti title: ea3b5e4d seconds: 60 exit: 0x0 frames shown: 1228 (PresentX 1228) presents per 2 s (last 3): 4 19 9 device removals: 0 crashes: 0 peak commit: 26156 MB ``` this PR, `19be659`: ``` xcl-smoke v1 commit: 19be65904f91a232fabc540e96c2e037971f1bd8 gpu: NVIDIA GeForce RTX 5070 Ti title: ea3b5e4d seconds: 60 exit: 0x0 frames shown: 1360 (PresentX 1360) presents per 2 s (last 3): 59 52 57 device removals: 0 crashes: 0 peak commit: 17515 MB ``` `compute split` counter at the end of each run: - `main`: `compute split: 171 programs split, 1811 pieces built, 0 chained dispatches issued in 0 slabs; scratch 0 MiB (most 0, largest dispatch 0 in one slab)` - this PR: `compute split: 66 programs split, 684 pieces built, 0 chained dispatches issued in 0 slabs; scratch 0 MiB (most 0, largest dispatch 0 in one slab); ExecuteIndirect: 0 chained (0 of them whole, 0 slabs lost), 0 whole` **Not tested** - This 60 s run reaches no chained `Dispatch` or `ExecuteIndirect` on either side, so it checks for regressions only; this PR's paths did not run in the title. - The GPU time saved in a title: only the local test above measured it. - Why the direct path takes longer on RADV (above): not found, and not measurable here. - AMD beyond that one test on an RX 6800M; other NVIDIA generations than Blackwell. **Other branches** - #2629 (a failed whole build is kept) conflicts with this PR in `dispatch_chain.rs`: both change `Chain`'s fields and the read of its whole form in `execute_indirect`, and #2629's test sets `Chain::signature`, which this PR removes. Whichever lands second drops `signature` and `build_whole` there and reads the whole form with `.flatten()`. With that, the merge builds (`cargo check -p xcl --lib --tests`). **AI use** - Claude Code with Claude Opus 5.5 wrote the code, the tests and this description, and ran the tests and the regression run on the hardware above. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
luckyteagirl commented 2026-11-26 04:07:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T04:04:13Z.


Focused RX 6800M check on clean PR head acba153caf086ef0e0ebe4cda4e76b7216217fc3: Windows 11 Home build 26200, Ryzen 9 5980HX, Radeon RX 6800M driver 30.0.13002.13003, Rust 1.99.0 MSVC, DXC 1.9.2609.5 (debug test build).

$env:XCL_ADAPTER = '6800M'
$env:XCL_REQUIRE_GPU = 'wave64'
cargo test --locked -p xcl --lib dispatch_chain_divergent_forward_edges_3d -- --test-threads=1 --show-output

Result: 1 passed, 0 failed, 0 ignored, 1,346 filtered, 0 SKIPPED notices. The guarded run exited 0 with no memory guard trigger. The test printed CHAIN_GPU=AMD Radeon RX 6800M and completed both split-chain forms:

Guest threads Pieces Scratch words per group Checked words Guard words
32 3 288 384 16
64 3 576 768 16

This is the focused synthetic split ExecuteIndirect fixture. I did not run the full workspace suite or reproduce a title-specific GPU fault on this PR head.

AI use: OpenAI Codex (GPT-6; exact serving variant unavailable) and a Luna subagent selected and ran the test, verified the live head and adapter, and prepared this report.

<!-- greyfinch-sync:ivall/xcl:comment:7182266980 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7182266980). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-26T04:04:13Z. --- Focused RX 6800M check on clean PR head `acba153caf086ef0e0ebe4cda4e76b7216217fc3`: Windows 11 Home build 26200, Ryzen 9 5980HX, Radeon RX 6800M driver `30.0.13002.13003`, Rust 1.99.0 MSVC, DXC 1.9.2609.5 (debug test build). ```powershell $env:XCL_ADAPTER = '6800M' $env:XCL_REQUIRE_GPU = 'wave64' cargo test --locked -p xcl --lib dispatch_chain_divergent_forward_edges_3d -- --test-threads=1 --show-output ``` Result: **1 passed, 0 failed, 0 ignored, 1,346 filtered, 0 `SKIPPED` notices**. The guarded run exited 0 with no memory guard trigger. The test printed `CHAIN_GPU=AMD Radeon RX 6800M` and completed both split-chain forms: | Guest threads | Pieces | Scratch words per group | Checked words | Guard words | | ---: | ---: | ---: | ---: | ---: | | 32 | 3 | 288 | 384 | 16 | | 64 | 3 | 576 | 768 | 16 | This is the focused synthetic split `ExecuteIndirect` fixture. I did not run the full workspace suite or reproduce a title-specific GPU fault on this PR head. AI use: OpenAI Codex (GPT-6; exact serving variant unavailable) and a Luna subagent selected and ran the test, verified the live head and adapter, and prepared this report.
pickles976 commented 2026-11-26 05:05:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by pickles976 on 2026-11-26T05:00:56Z.


Wine/NVIDIA cross-check of the new test — passes on the real adapter. Head acba153caf086ef0e0ebe4cda4e76b7216217fc3 (stacked on #2404's 97a70a73c, as described), RTX 4060 Laptop GPU 8 GiB, Wine 11.0, vkd3d-proton 3.2.0 diagnostic-relaxed build (same provenance commit as the stock DLL, -Db_ndebug=true + the two #175 from_iface relaxations, local-only; this test is not behind the vtable wall but the stack is uniform here), NVIDIA 590.48.1, --locked --target x86_64-pc-windows-msvc, one test thread, fresh Compiling xcl .../xcl-pr2633/... provenance.

direct_dispatches_write_their_constants_in_blocks_used_again_after_the_allocator_reset — 1/1 pass (0.65 s), with the real NVIDIA device opened (DXVK logs Found device: NVIDIA GeForce RTX 4060 Laptop GPU): the Dispatch-form slab constants go into 64 KiB upload-heap blocks of the list's allocator and the blocks are reused after reset, as the test's assertions check.

Scope: correctness fixture only — the 15.3 µs → 0.41 µs ExecuteIndirect claim remains the author's RTX 5070 Ti measurement; no perf numbers from this host, no title run. Log: .compat-xcl/logs/verify-pr2633-wine-cbv-slab-relaxed.log (local). AI-assisted verification and report (OpenAI Codex).

<!-- greyfinch-sync:ivall/xcl:comment:7183101906 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7183101906). Originally posted by [pickles976](https://github.com/pickles976) on 2026-11-26T05:00:56Z. --- **Wine/NVIDIA cross-check of the new test — passes on the real adapter.** Head `acba153caf086ef0e0ebe4cda4e76b7216217fc3` (stacked on #2404's `97a70a73c`, as described), RTX 4060 Laptop GPU 8 GiB, Wine 11.0, vkd3d-proton 3.2.0 diagnostic-relaxed build (same provenance commit as the stock DLL, `-Db_ndebug=true` + the two #175 `from_iface` relaxations, local-only; this test is not behind the vtable wall but the stack is uniform here), NVIDIA 590.48.1, `--locked --target x86_64-pc-windows-msvc`, one test thread, fresh `Compiling xcl .../xcl-pr2633/...` provenance. `direct_dispatches_write_their_constants_in_blocks_used_again_after_the_allocator_reset` — **1/1 pass** (0.65 s), with the real NVIDIA device opened (DXVK logs `Found device: NVIDIA GeForce RTX 4060 Laptop GPU`): the Dispatch-form slab constants go into 64 KiB upload-heap blocks of the list's allocator and the blocks are reused after reset, as the test's assertions check. Scope: correctness fixture only — the 15.3 µs → 0.41 µs `ExecuteIndirect` claim remains the author's RTX 5070 Ti measurement; no perf numbers from this host, no title run. Log: `.compat-xcl/logs/verify-pr2633-wine-cbv-slab-relaxed.log` (local). AI-assisted verification and report (OpenAI Codex).
Kalmarv commented 2026-11-26 05:05:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-26T05:01:34Z.


@pickles976 thank you for the Wine cross-check on acba153 (7183101906): the new test passing on the RTX 4060 Laptop's own device is the first run of it outside our machines. It is in the description under Tested, with your caveats: your local relaxed vkd3d-proton build, correctness only, no timing or title run.

AI use: Claude Code with Claude Opus 5.5 read the report and wrote this reply.

<!-- greyfinch-sync:ivall/xcl:comment:7183112638 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7183112638). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-26T05:01:34Z. --- @pickles976 thank you for the Wine cross-check on `acba153` (7183101906): the new test passing on the RTX 4060 Laptop's own device is the first run of it outside our machines. It is in the description under **Tested**, with your caveats: your local relaxed vkd3d-proton build, correctness only, no timing or title run. AI use: Claude Code with Claude Opus 5.5 read the report and wrote this reply.
luckyteagirl commented 2026-11-26 05:57:53 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T05:57:53Z.

Review: COMMENTED


Could the free constants pool have a byte budget, or release oversized blocks on allocator reset? Every block removed from CONSTANTS is retained in process-global FREE_CONSTANTS; reuse requires the same device and sufficient capacity, and I could not find a trim or device-cleanup path. A temporary burst of large slab constants can therefore leave its committed upload resources mapped for the rest of the process, even after the recording allocators retire. The reuse fixture could also assert that excess blocks are released. Exact-head source review at acba153caf086ef0e0ebe4cda4e76b7216217fc3; no measured memory footprint or title run. AI-assisted review with Codex.

<!-- greyfinch-sync:ivall/xcl:review:6069221831 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2633#pullrequestreview-6069221831). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-26T05:57:53Z. **Review:** COMMENTED --- Could the free constants pool have a byte budget, or release oversized blocks on allocator reset? Every block removed from `CONSTANTS` is retained in process-global `FREE_CONSTANTS`; reuse requires the same device and sufficient capacity, and I could not find a trim or device-cleanup path. A temporary burst of large slab constants can therefore leave its committed upload resources mapped for the rest of the process, even after the recording allocators retire. The reuse fixture could also assert that excess blocks are released. Exact-head source review at `acba153caf086ef0e0ebe4cda4e76b7216217fc3`; no measured memory footprint or title run. AI-assisted review with Codex.
KDenKC commented 2026-11-26 07:03:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-26T06:25:24Z.


Source review of acba153c, no run yet. One thing for anyone A/B-ing this against #2404 on a warm cache:

The pieces' DXIL doesn't change here, only their root signature does (parameter 7 goes from 8 root constants to a root CBV in abi_signature). But driver_cache::name_for (real.rs:4506) keys a piece's blob only on the DXIL hash, its length and the flags. So a .chain.pso written by #2404 (or main) has the same file name under this head, and it was built against the old root signature. Expected effect: the driver refuses it ("a driver blob kept on disk was refused … compiled again"), so the first run after switching builds every piece cold. A comparison on a shared cache would then charge that to this PR. And if a driver ever did accept the mismatched blob, it would be running pieces against the wrong root signature. A different extension for the CBV layout (or a layout version folded into name_for) would keep the two apart.

When we run it, we'll give each side its own cache.

My 5090 and I await the root-CBV era.

AI use: Gemini (Antigravity) noticed the shared file name in a review; Claude Code (Claude Opus 5.5) checked name_for, the piece DXIL and the refusal path at acba153c and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7184414003 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7184414003). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-11-26T06:25:24Z. --- Source review of `acba153c`, no run yet. One thing for anyone A/B-ing this against #2404 on a warm cache: The pieces' DXIL doesn't change here, only their root signature does (parameter 7 goes from 8 root constants to a root CBV in `abi_signature`). But `driver_cache::name_for` (`real.rs:4506`) keys a piece's blob only on the DXIL hash, its length and the flags. So a `.chain.pso` written by #2404 (or `main`) has the same file name under this head, and it was built against the old root signature. Expected effect: the driver refuses it ("a driver blob kept on disk was refused … compiled again"), so the first run after switching builds every piece cold. A comparison on a shared cache would then charge that to this PR. And if a driver ever did accept the mismatched blob, it would be running pieces against the wrong root signature. A different extension for the CBV layout (or a layout version folded into `name_for`) would keep the two apart. When we run it, we'll give each side its own cache. My 5090 and I await the root-CBV era. AI use: Gemini (Antigravity) noticed the shared file name in a review; Claude Code (Claude Opus 5.5) checked `name_for`, the piece DXIL and the refusal path at `acba153c` and wrote this.
Kalmarv commented 2026-11-26 08:04:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-26T07:39:13Z.


@luckyteagirl thank you for the review (6069221831): right, nothing ever released a block once it was in FREE_CONSTANTS. In db34184 an allocator's reset keeps only blocks of the usual 64 KiB for use again, up to 8 MiB of them (keep_free_constants); bigger blocks and those past it are released there. The reuse fixture now also asserts that no block bigger than 64 KiB is kept and that the kept ones stay within the 8 MiB. With the old reset it fails ("a block bigger than 65536 kept for use again").

@KDenKC thank you (7184414003), that was a real gap: the pieces' DXIL is the same under this PR, so a .chain.pso built for #2404's root constants had the same name. In db34184 a piece's file also names the chain's root signature, as a hash of it serialized (pso::abi_signature_id), so -<sig>.chain.pso files of #2404/main and of this PR sit side by side instead of being read and refused. Test: a_piece_is_named_after_the_root_signature_it_was_built_with (one DXIL, two root signatures, two names); with the old name it fails. On a shared cache each side's first run still builds its own pieces once, but switching no longer makes the driver refuse and drop the other side's files, and no blob of the other layout can be accepted. Separate caches per side remain the cleaner A/B.

AI use: Claude Code with Claude Opus 5.5 wrote both changes, their assertions and this reply, and ran the tests.

<!-- greyfinch-sync:ivall/xcl:comment:7185688222 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7185688222). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-26T07:39:13Z. --- @luckyteagirl thank you for the review (6069221831): right, nothing ever released a block once it was in `FREE_CONSTANTS`. In `db34184` an allocator's reset keeps only blocks of the usual 64 KiB for use again, up to 8 MiB of them (`keep_free_constants`); bigger blocks and those past it are released there. The reuse fixture now also asserts that no block bigger than 64 KiB is kept and that the kept ones stay within the 8 MiB. With the old reset it fails (`"a block bigger than 65536 kept for use again"`). @KDenKC thank you (7184414003), that was a real gap: the pieces' DXIL is the same under this PR, so a `.chain.pso` built for #2404's root constants had the same name. In `db34184` a piece's file also names the chain's root signature, as a hash of it serialized (`pso::abi_signature_id`), so `-<sig>.chain.pso` files of #2404/`main` and of this PR sit side by side instead of being read and refused. Test: `a_piece_is_named_after_the_root_signature_it_was_built_with` (one DXIL, two root signatures, two names); with the old name it fails. On a shared cache each side's first run still builds its own pieces once, but switching no longer makes the driver refuse and drop the other side's files, and no blob of the other layout can be accepted. Separate caches per side remain the cleaner A/B. AI use: Claude Code with Claude Opus 5.5 wrote both changes, their assertions and this reply, and ran the tests.
SzczepanGrela commented 2026-11-26 08:04:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SzczepanGrela on 2026-11-26T07:59:15Z.


RX 9070 / RADV paired check of #2633 db34184fe8c017347303433e714d2f6dd7fc5ee9 against its stacked #2404 base 97a70a73c96ee39cadffe1baafbc6725091277f6.

Tested

Ryzen 7 7700, RX 9070, CachyOS Linux 7.3.0-5-cachyos, RADV Mesa 26.3.1-arch3.5, GE-Proton11-12 / Wine 11.0, vkd3d-proton 8293130ebe370b1+ (local build with assertions disabled), DXC 1.9.2602.17, Rust 1.97.1. Windows GNU release binaries under Wine.

Built both exact revisions with cargo test --offline --locked --release --target x86_64-pc-windows-gnu -p xcl --lib --no-run. Ran wine <unit-test.exe> <filter> --skip retail_ --nocapture --test-threads=1, then the same filters with --test-threads=4.

The counts below were identical in both thread modes. Filters are under hle::d3d12x:::

Filter #2404 passed / failed #2633 passed / failed
real::dispatch_chain::tests:: 7 / 0 9 / 0
alloc_pool::tests:: 7 / 1 8 / 1
real::driver_cache::tests:: 4 / 0 5 / 0

Zero ignored tests and zero SKIPPED notices. The updated constants-reuse test, root-signature cache-name test and whole-build queue test passed. The shared failure is a_recording_outlives_the_reset_of_the_titles_allocator: CreateCommandList returns 0x80070057, with d3d12_command_list_Reset: Invalid command allocator on both revisions.

dispatch_chain_divergent_forward_edges_3d aborts on both revisions with 0xc0000005 at d3d12core.dll+0x2e7d48. Symbolized XCL frames lead to CreateComputePipelineState for a split piece in runner::dispatch_split_samples, before the fixture's indirect cases. This fixture did not pass; no cause is attributed to this PR.

Local GPU-timestamp diagnostic

Separate local copies add test-only repetition/timestamp instrumentation to runner::dispatch_split_indirect and a synthetic DXC fixture. Production recording functions are unchanged from their respective revisions. Ten cs_6_6 pieces use the chain ABI, pass values through scratch and add 55 per active word per repetition. The 20 shader blobs, for 32- and 64-thread groups, are byte-identical between versions. Every result word, 16 guard words and the indirect tail were checked.

Indirect samples cover the command-buffer transition back to UAV, the slicer and all 32 rounds of 10 pieces, with at most one group per slab. The direct control has 12 slabs of 10 pieces. PSO creation, allocation, initial uploads, final readback and CPU recording time are outside the timestamps. Five paired trials alternate A/B and B/A. Each case runs eight batches of 17 repetitions; discard two warmup batches and the first repetition of each remaining batch, keeping 96 samples per trial per case.

GPU microseconds per complete operation, median of the five trial medians; brackets give their min/max:

Threads Case #2404 us [min, max] #2633 us [min, max]
32 indirect, empty 1946.56 [1715.40, 2047.06] 533.24 [533.20, 536.72]
32 indirect, 1 group 1970.82 [1573.04, 2046.36] 544.52 [544.22, 547.80]
32 indirect, 12 groups 2010.48 [1563.16, 2092.08] 635.72 [635.40, 637.36]
32 direct, 12 groups 114.48 [96.48, 116.52] 137.18 [137.16, 137.26]
64 indirect, empty 2543.24 [1895.56, 2580.12] 625.44 [625.40, 625.44]
64 indirect, 1 group 1970.80 [1788.18, 2058.48] 637.12 [637.08, 637.12]
64 indirect, 12 groups 1801.40 [1704.22, 2086.68] 738.30 [736.44, 740.20]
64 direct, 12 groups 108.88 [104.88, 114.60] 169.12 [138.08, 169.12]

All ten diagnostic invocations passed: one test each, zero failed, ignored or skipped. Indirect operations take less GPU time in every paired trial. The 32-thread direct control takes 19.8% more at the reported medians, and more in every pair. The 64-thread direct result has larger variation. These are synthetic command-path results, not the author's per-step benchmark or a title-speed measurement; the direct-control difference has no established root cause.

Not tested

Native Windows, the full workspace suite, retail workloads or scripts/smoke.ps1, gameplay/FPS, persisted driver-blob acceptance across layouts, or translated guest wave64 correctness. The diagnostic uses DXC-built pieces and bypasses runtime allocator reuse and the title pipeline-cache path. XCL application caches were separate per version; the vkd3d shader disk cache was disabled. GPU clocks were not fixed.

AI use

OpenAI Codex (GPT-6; exact serving variant unavailable) audited the diffs, prepared and ran the comparisons and local diagnostic, checked the logs and drafted this report for user review.

<!-- greyfinch-sync:ivall/xcl:comment:7186055146 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7186055146). Originally posted by [SzczepanGrela](https://github.com/SzczepanGrela) on 2026-11-26T07:59:15Z. --- RX 9070 / RADV paired check of #2633 `db34184fe8c017347303433e714d2f6dd7fc5ee9` against its stacked #2404 base `97a70a73c96ee39cadffe1baafbc6725091277f6`. **Tested** Ryzen 7 7700, RX 9070, CachyOS Linux 7.3.0-5-cachyos, RADV Mesa 26.3.1-arch3.5, GE-Proton11-12 / Wine 11.0, vkd3d-proton `8293130ebe370b1+` (local build with assertions disabled), DXC 1.9.2602.17, Rust 1.97.1. Windows GNU release binaries under Wine. Built both exact revisions with `cargo test --offline --locked --release --target x86_64-pc-windows-gnu -p xcl --lib --no-run`. Ran `wine <unit-test.exe> <filter> --skip retail_ --nocapture --test-threads=1`, then the same filters with `--test-threads=4`. The counts below were identical in both thread modes. Filters are under `hle::d3d12x::`: | Filter | #2404 passed / failed | #2633 passed / failed | | :--- | ---: | ---: | | `real::dispatch_chain::tests::` | 7 / 0 | 9 / 0 | | `alloc_pool::tests::` | 7 / 1 | 8 / 1 | | `real::driver_cache::tests::` | 4 / 0 | 5 / 0 | Zero ignored tests and zero `SKIPPED` notices. The updated constants-reuse test, root-signature cache-name test and whole-build queue test passed. The shared failure is `a_recording_outlives_the_reset_of_the_titles_allocator`: `CreateCommandList` returns `0x80070057`, with `d3d12_command_list_Reset: Invalid command allocator` on both revisions. `dispatch_chain_divergent_forward_edges_3d` aborts on both revisions with `0xc0000005` at `d3d12core.dll+0x2e7d48`. Symbolized XCL frames lead to `CreateComputePipelineState` for a split piece in `runner::dispatch_split_samples`, before the fixture's indirect cases. This fixture did not pass; no cause is attributed to this PR. **Local GPU-timestamp diagnostic** Separate local copies add test-only repetition/timestamp instrumentation to `runner::dispatch_split_indirect` and a synthetic DXC fixture. Production recording functions are unchanged from their respective revisions. Ten `cs_6_6` pieces use the chain ABI, pass values through scratch and add 55 per active word per repetition. The 20 shader blobs, for 32- and 64-thread groups, are byte-identical between versions. Every result word, 16 guard words and the indirect tail were checked. Indirect samples cover the command-buffer transition back to UAV, the slicer and all 32 rounds of 10 pieces, with at most one group per slab. The direct control has 12 slabs of 10 pieces. PSO creation, allocation, initial uploads, final readback and CPU recording time are outside the timestamps. Five paired trials alternate A/B and B/A. Each case runs eight batches of 17 repetitions; discard two warmup batches and the first repetition of each remaining batch, keeping 96 samples per trial per case. GPU microseconds per complete operation, median of the five trial medians; brackets give their min/max: | Threads | Case | #2404 us [min, max] | #2633 us [min, max] | | ---: | :--- | ---: | ---: | | 32 | indirect, empty | 1946.56 [1715.40, 2047.06] | 533.24 [533.20, 536.72] | | 32 | indirect, 1 group | 1970.82 [1573.04, 2046.36] | 544.52 [544.22, 547.80] | | 32 | indirect, 12 groups | 2010.48 [1563.16, 2092.08] | 635.72 [635.40, 637.36] | | 32 | direct, 12 groups | 114.48 [96.48, 116.52] | 137.18 [137.16, 137.26] | | 64 | indirect, empty | 2543.24 [1895.56, 2580.12] | 625.44 [625.40, 625.44] | | 64 | indirect, 1 group | 1970.80 [1788.18, 2058.48] | 637.12 [637.08, 637.12] | | 64 | indirect, 12 groups | 1801.40 [1704.22, 2086.68] | 738.30 [736.44, 740.20] | | 64 | direct, 12 groups | 108.88 [104.88, 114.60] | 169.12 [138.08, 169.12] | All ten diagnostic invocations passed: one test each, zero failed, ignored or skipped. Indirect operations take less GPU time in every paired trial. The 32-thread direct control takes 19.8% more at the reported medians, and more in every pair. The 64-thread direct result has larger variation. These are synthetic command-path results, not the author's per-step benchmark or a title-speed measurement; the direct-control difference has no established root cause. **Not tested** Native Windows, the full workspace suite, retail workloads or `scripts/smoke.ps1`, gameplay/FPS, persisted driver-blob acceptance across layouts, or translated guest wave64 correctness. The diagnostic uses DXC-built pieces and bypasses runtime allocator reuse and the title pipeline-cache path. XCL application caches were separate per version; the vkd3d shader disk cache was disabled. GPU clocks were not fixed. **AI use** OpenAI Codex (GPT-6; exact serving variant unavailable) audited the diffs, prepared and ran the comparisons and local diagnostic, checked the logs and drafted this report for user review.
Kalmarv commented 2026-11-26 12:06:56 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-26T11:09:06Z.


Thanks @SzczepanGrela for the paired RX 9070 / RADV run of db34184 against 97a70a7. It is now under Tested in the description.

Direct, 12 groups, slower with this PR. This PR does change the direct path. With #2404, every piece got the slab's eight words as root constants (SetComputeRoot32BitConstants before each Dispatch). Now the CPU writes them once a slab into a 64 KiB upload-heap block, and the pieces read them through the root CBV (pso::record_dispatch_chain). Your 32-thread pairs don't overlap (96.48–116.52 µs against 137.16–137.26 µs), so on RADV it looks real rather than noise: about 23 µs over 120 dispatches, about 0.19 µs a dispatch.

On the RTX 5070 Ti, in a local test that times this PR's record_dispatch_chain against #2404's recording of the same 12 slabs × 10 pieces (one group each, a UAV barrier before every piece in both), 5 alternating trials of 16 timed repetitions:

median of 5 trial medians, µs [lowest, highest], two runs 32 threads 64 threads
#2404: root constants per piece 73.66 [73.63, 73.66] 73.66 [73.63, 73.70]
this PR: root CBV per slab, upload heap 73.66 [73.63, 73.66] 73.66 [73.63, 73.70]

Both take 73.66 µs, about 0.61 µs per dispatch after its barrier, so on this card the root CBV costs nothing measurable. I have not found the cause on RADV. One possibility is that a root CBV is read from memory where root constants are not: under vkd3d-proton, root constants become push constants, and the upload heap is host-visible memory. I can't measure RADV here.

a_recording_outlives_the_reset_of_the_titles_allocator. This test is main's (11920b5e), and neither #2404 nor this PR changes it. It is not the one-recording-list rule: the call that fails is the test's first CreateCommandList (alloc_pool.rs:719), on a fresh allocator with no other list. Just before it, at :717, the test adopts that allocator. real::adopt overwrites the object's vtable pointer (real.rs:725). vkd3d-proton's d3d12_command_allocator_from_iface returns NULL for an allocator whose vtable is not its own, and d3d12_command_list_Reset then logs "Invalid command allocator" and returns E_INVALIDARG. So under vkd3d-proton every allocator XCL adopts gets this error. That is the same check @pickles976 relaxed locally for their run.

dispatch_chain_divergent_forward_edges_3d. The abort in d3d12core.dll happens on both revisions. The same test passed natively on Windows on an RX 6800M (@luckyteagirl, on acba153) and on our RTX 5070 Ti. I'm leaving it as Wine-specific.

AI use: Claude Code with Claude Opus 5.5 read the code, ran the local timing test on the hardware above and wrote this reply.

<!-- greyfinch-sync:ivall/xcl:comment:7190340430 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7190340430). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-26T11:09:06Z. --- Thanks @SzczepanGrela for the paired RX 9070 / RADV run of `db34184` against `97a70a7`. It is now under **Tested** in the description. **Direct, 12 groups, slower with this PR.** This PR does change the direct path. With #2404, every piece got the slab's eight words as root constants (`SetComputeRoot32BitConstants` before each `Dispatch`). Now the CPU writes them once a slab into a 64 KiB upload-heap block, and the pieces read them through the root CBV (`pso::record_dispatch_chain`). Your 32-thread pairs don't overlap (96.48–116.52 µs against 137.16–137.26 µs), so on RADV it looks real rather than noise: about 23 µs over 120 dispatches, about 0.19 µs a dispatch. On the RTX 5070 Ti, in a local test that times this PR's `record_dispatch_chain` against #2404's recording of the same 12 slabs × 10 pieces (one group each, a UAV barrier before every piece in both), 5 alternating trials of 16 timed repetitions: | median of 5 trial medians, µs [lowest, highest], two runs | 32 threads | 64 threads | |---|---:|---:| | #2404: root constants per piece | 73.66 [73.63, 73.66] | 73.66 [73.63, 73.70] | | this PR: root CBV per slab, upload heap | 73.66 [73.63, 73.66] | 73.66 [73.63, 73.70] | Both take 73.66 µs, about 0.61 µs per dispatch after its barrier, so on this card the root CBV costs nothing measurable. I have not found the cause on RADV. One possibility is that a root CBV is read from memory where root constants are not: under vkd3d-proton, root constants become push constants, and the upload heap is host-visible memory. I can't measure RADV here. **`a_recording_outlives_the_reset_of_the_titles_allocator`.** This test is `main`'s (11920b5e), and neither #2404 nor this PR changes it. It is not the one-recording-list rule: the call that fails is the test's first `CreateCommandList` (alloc_pool.rs:719), on a fresh allocator with no other list. Just before it, at :717, the test adopts that allocator. `real::adopt` overwrites the object's vtable pointer (real.rs:725). vkd3d-proton's `d3d12_command_allocator_from_iface` returns NULL for an allocator whose vtable is not its own, and `d3d12_command_list_Reset` then logs "Invalid command allocator" and returns `E_INVALIDARG`. So under vkd3d-proton every allocator XCL adopts gets this error. That is the same check @pickles976 relaxed locally for their run. **`dispatch_chain_divergent_forward_edges_3d`.** The abort in `d3d12core.dll` happens on both revisions. The same test passed natively on Windows on an RX 6800M (@luckyteagirl, on `acba153`) and on our RTX 5070 Ti. I'm leaving it as Wine-specific. AI use: Claude Code with Claude Opus 5.5 read the code, ran the local timing test on the hardware above and wrote this reply.
KDenKC commented 2026-11-26 12:07:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-26T12:01:15Z.


db34184 against its base 5b9d4ff in the retail title, RTX 5090: about 3.4× the chained ExecuteIndirects by 130 s. One of the two runs of this head ended in a GPU hang (TDR). Both sides include #2551 and a local code-size log counter.

Each side had its own XCL_DXIL_CACHE, seeded without driver blobs, and ran --precompile --only cs --used-only --pipelines (2,812 pipelines, 227 split programs / 2,000 pieces, 0 refused), a kept 200 s warm-up, then 300 s on a copy. Release, driver 621.24, XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_NETWORK=0. The two exe names were each used once before, for the same kind of short run.

at 130 s base 5b9d4ff db34184, run 1 db34184, run 2 (XCL_DRED=1)
chained ExecuteIndirect 808 2,768 3,139
chained dispatches / slabs 222 / 1,694 855 / 8,939 445 / 7,564
scratch (peak) 420 MiB (420) 548 MiB (613) 390 MiB (537)
end #2403 removal 0x887a0005 at 134.7 s 0x887a0006 (device hung) at 133.45 s; two nvlddmkm 153 events in the 3 s before #2403 removal at 131.7 s; DRED only page fault at GPU VA 0x0
  • The root-signature name works. The CBV side's cache holds only …-<sig>.chain.pso files and the base side only the old three-field names, with no refusals on either.
  • The hang:
    • It did not come back on the DRED rerun, so it is one in two runs here.
    • At that title point every run, base included, has the same cold 944 KB whole form compiling, so that does not tell the hang apart.
    • We saw one hang before, also at world load and also on a change that made chained compute cheaper on top of #2404: one in three runs there. So I can't say whether this is the PR or just more GPU work per frame hitting a timeout on this card. More runs need fresh exe names, which we are out of tonight.

Not tested: more runs; DRED breadcrumbs from a run that hangs; the 1 GiB heap profile (every run here ends at the #2403 removal by ~135 s).

Your minion's 5090 survived its first root-CBV adventure, mostly.

AI use: Claude Code (Claude Opus 5.5) built and ran the arms. Gemini (Antigravity) compared the logs. Claude Code checked the table and the compile timeline against the logs and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7191463051 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7191463051). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-11-26T12:01:15Z. --- **`db34184` against its base `5b9d4ff` in the retail title, RTX 5090: about 3.4× the chained ExecuteIndirects by 130 s. One of the two runs of this head ended in a GPU hang (TDR).** Both sides include #2551 and a local code-size log counter. Each side had its own `XCL_DXIL_CACHE`, seeded without driver blobs, and ran `--precompile --only cs --used-only --pipelines` (2,812 pipelines, 227 split programs / 2,000 pieces, 0 refused), a kept 200 s warm-up, then 300 s on a copy. Release, driver 621.24, `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_NETWORK=0`. The two exe names were each used once before, for the same kind of short run. | at 130 s | base `5b9d4ff` | `db34184`, run 1 | `db34184`, run 2 (`XCL_DRED=1`) | |---|---:|---:|---:| | chained ExecuteIndirect | 808 | 2,768 | 3,139 | | chained dispatches / slabs | 222 / 1,694 | 855 / 8,939 | 445 / 7,564 | | scratch (peak) | 420 MiB (420) | 548 MiB (613) | 390 MiB (537) | | end | #2403 removal `0x887a0005` at 134.7 s | **`0x887a0006` (device hung) at 133.45 s**; two `nvlddmkm` 153 events in the 3 s before | #2403 removal at 131.7 s; DRED only `page fault at GPU VA 0x0` | - **The root-signature name works.** The CBV side's cache holds only `…-<sig>.chain.pso` files and the base side only the old three-field names, with no refusals on either. - **The hang:** - It did not come back on the DRED rerun, so it is one in two runs here. - At that title point every run, base included, has the same cold 944 KB whole form compiling, so that does not tell the hang apart. - We saw one hang before, also at world load and also on a change that made chained compute cheaper on top of #2404: one in three runs there. So I can't say whether this is the PR or just more GPU work per frame hitting a timeout on this card. More runs need fresh exe names, which we are out of tonight. Not tested: more runs; DRED breadcrumbs from a run that hangs; the 1 GiB heap profile (every run here ends at the #2403 removal by ~135 s). Your minion's 5090 survived its first root-CBV adventure, mostly. AI use: Claude Code (Claude Opus 5.5) built and ran the arms. Gemini (Antigravity) compared the logs. Claude Code checked the table and the compile timeline against the logs and wrote this.
Kalmarv commented 2026-11-26 12:07:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-26T12:03:48Z.


Thanks @KDenKC for the paired runs, and for checking the cache: only …-<sig>.chain.pso files on this side, with no refusals, is what the new name is for. Your runs are now under Tested by others in the description.

Why about 3.4× the chained ExecuteIndirects. It is not more programs chaining. Both sides split the same programs (227 programs, 2,000 pieces from the precompile). This PR doesn't change when a call is chained: on both, every ExecuteIndirect or Dispatch of a split program is chained. What it changes is what one call costs on the GPU. On the RTX 5070 Ti, a piece step of a chained ExecuteIndirect takes about 0.4 µs instead of 15 µs, so 32 rounds of 10 pieces take about 0.13 ms instead of 4.9 ms. So I'd expect the title to get through more frames by 130 s, and with them more of the same calls. More slabs and more scratch follow from more calls. If your logs have the presents at 130 s for the three runs, they would show whether it is more frames or more calls per frame.

The hang. It is one in two runs, and as you say it doesn't separate this PR from more GPU work reaching the card. One chained ExecuteIndirect does less GPU work with this PR than with #2404, so it is not one longer submission. But more calls per second give an intermittent fault more chances. It is under investigation, and I have no cause yet.

The current head 19be659 only adds the program's static samplers to the piece blob's name. It records the same commands, so it should not change these counts. Pieces with static samplers get new file names, though, so their blobs are built once more.

AI use: Claude Code with Claude Opus 5.5 read the report against XCL's code and wrote this reply.

<!-- greyfinch-sync:ivall/xcl:comment:7191517699 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7191517699). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-26T12:03:48Z. --- Thanks @KDenKC for the paired runs, and for checking the cache: only `…-<sig>.chain.pso` files on this side, with no refusals, is what the new name is for. Your runs are now under **Tested by others** in the description. **Why about 3.4× the chained `ExecuteIndirect`s.** It is not more programs chaining. Both sides split the same programs (227 programs, 2,000 pieces from the precompile). This PR doesn't change when a call is chained: on both, every `ExecuteIndirect` or `Dispatch` of a split program is chained. What it changes is what one call costs on the GPU. On the RTX 5070 Ti, a piece step of a chained `ExecuteIndirect` takes about 0.4 µs instead of 15 µs, so 32 rounds of 10 pieces take about 0.13 ms instead of 4.9 ms. So I'd expect the title to get through more frames by 130 s, and with them more of the same calls. More slabs and more scratch follow from more calls. If your logs have the presents at 130 s for the three runs, they would show whether it is more frames or more calls per frame. **The hang.** It is one in two runs, and as you say it doesn't separate this PR from more GPU work reaching the card. One chained `ExecuteIndirect` does less GPU work with this PR than with #2404, so it is not one longer submission. But more calls per second give an intermittent fault more chances. It is under investigation, and I have no cause yet. The current head `19be659` only adds the program's static samplers to the piece blob's name. It records the same commands, so it should not change these counts. Pieces with static samplers get new file names, though, so their blobs are built once more. AI use: Claude Code with Claude Opus 5.5 read the report against XCL's code and wrote this reply.
KDenKC commented 2026-11-26 13:05:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-26T12:13:25Z.


@Kalmarv it's more calls per frame, not more frames. Presents summed from the 2 s activity lines:

presents up to 130 s presents 110-130 s chained ExecuteIndirect at 130 s
base 5b9d4ff 2,131 152 808
db34184, run 1 (hung at 133.45 s) 2,062 140 2,768
db34184, run 2 2,064 125 3,139

So in about the same number of frames, this head issues 3.4-3.9× the chained calls. We are running two more runs of each side with DRED on to get a hang rate, and will add them here.

AI use: Claude Code (Claude Opus 5.5) summed the log lines and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7191725182 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7191725182). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-11-26T12:13:25Z. --- @Kalmarv it's more calls per frame, not more frames. Presents summed from the 2 s activity lines: | | presents up to 130 s | presents 110-130 s | chained `ExecuteIndirect` at 130 s | |---|---:|---:|---:| | base `5b9d4ff` | 2,131 | 152 | 808 | | `db34184`, run 1 (hung at 133.45 s) | 2,062 | 140 | 2,768 | | `db34184`, run 2 | 2,064 | 125 | 3,139 | So in about the same number of frames, this head issues 3.4-3.9× the chained calls. We are running two more runs of each side with DRED on to get a hang rate, and will add them here. AI use: Claude Code (Claude Opus 5.5) summed the log lines and wrote this.
Kalmarv commented 2026-11-26 13:05:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-26T12:15:34Z.


Thanks @KDenKC for the presents. They show my reading was wrong: it is not more frames, since both sides presented about as many. So this head issues 3.4–3.9× the chained calls in the same frames, and I don't have the cause yet.

Both heads use the same rule for whether a title's ExecuteIndirect of a split program is chained, run as the whole form, or skipped. On 5b9d4ff, two steps can fail that this head no longer has: the command signature with the chain's root constants, and the larger commands buffer of each call. If either fails, the call is skipped and not counted as chained. If you still have the logs of these runs, two things from them would tell whether the base dropped calls that this head now runs:

  • the full compute split line at 130 s on both sides, whose last field counts the calls run whole;
  • any ExecuteIndirect of a split program skipped: … or ExecuteIndirect whole compute PSO warnings (only the first 4 skips are logged, with their reason).

AI use: Claude Code with Claude Opus 5.5 read the code and wrote this comment.

<!-- greyfinch-sync:ivall/xcl:comment:7191771397 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7191771397). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-26T12:15:34Z. --- Thanks @KDenKC for the presents. They show my reading was wrong: it is not more frames, since both sides presented about as many. So this head issues 3.4–3.9× the chained calls in the same frames, and I don't have the cause yet. Both heads use the same rule for whether a title's `ExecuteIndirect` of a split program is chained, run as the whole form, or skipped. On `5b9d4ff`, two steps can fail that this head no longer has: the command signature with the chain's root constants, and the larger commands buffer of each call. If either fails, the call is skipped and not counted as chained. If you still have the logs of these runs, two things from them would tell whether the base dropped calls that this head now runs: - the full `compute split` line at 130 s on both sides, whose last field counts the calls run whole; - any `ExecuteIndirect of a split program skipped: …` or `ExecuteIndirect whole compute PSO` warnings (only the first 4 skips are logged, with their reason). AI use: Claude Code with Claude Opus 5.5 read the code and wrote this comment.
KDenKC commented 2026-11-26 13:05:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-26T12:18:24Z.


Hang rate, as promised in 7191725182: four more runs with XCL_DRED=1, alternating sides, same recipe. No hang.

run side end
hr1 base 5b9d4ff #2403 removal 0x887a0005 at 129.7 s
hr2 db34184 #2403 removal at 128.5 s
hr3 base #2403 removal at 126.7 s
hr4 db34184 access violation at 100.6 s in a texture worker (tiling::Chain::detile_level ← title_textures::subresources), the #751 race, not this PR
  • No nvlddmkm events in these four. DRED shows only the VA 0x0 entry on the removals.
  • Tally so far: this head 1 TDR in 4 runs, base 0 in 3.
  • All four ended before 130 s, so there are no 130 s counts to compare this time.

AI use: Claude Code (Claude Opus 5.5) ran them, checked the end lines in the logs and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7191832423 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7191832423). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-11-26T12:18:24Z. --- **Hang rate, as promised in 7191725182: four more runs with `XCL_DRED=1`, alternating sides, same recipe. No hang.** | run | side | end | |---|---|---| | hr1 | base `5b9d4ff` | #2403 removal `0x887a0005` at 129.7 s | | hr2 | `db34184` | #2403 removal at 128.5 s | | hr3 | base | #2403 removal at 126.7 s | | hr4 | `db34184` | access violation at 100.6 s in a texture worker (`tiling::Chain::detile_level` ← `title_textures::subresources`), the #751 race, not this PR | - No `nvlddmkm` events in these four. DRED shows only the `VA 0x0` entry on the removals. - Tally so far: this head 1 TDR in 4 runs, base 0 in 3. - All four ended before 130 s, so there are no 130 s counts to compare this time. AI use: Claude Code (Claude Opus 5.5) ran them, checked the end lines in the logs and wrote this.
KDenKC commented 2026-11-26 13:05:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-26T12:43:37Z.


@Kalmarv from the logs: the base did not drop calls before 130 s. The full compute split lines at 130 s:

base 5b9d4ff:  232 programs split, 2057 pieces built, 222 chained dispatches issued in 1694 slabs; scratch 420 MiB (most 420, largest dispatch 2109 in one slab); ExecuteIndirect: 808 chained (0 of them whole, 0 slabs lost), 0 whole
db34184 run 1: 229 programs split, 2024 pieces built, 855 chained dispatches issued in 8939 slabs; scratch 548 MiB (most 613, largest dispatch 2109 in one slab); ExecuteIndirect: 2768 chained (0 of them whole, 0 slabs lost), 0 whole
db34184 run 2: 229 programs split, 2024 pieces built, 445 chained dispatches issued in 7564 slabs; scratch 390 MiB (most 537, largest dispatch 2109 in one slab); ExecuteIndirect: 3139 chained (0 of them whole, 0 slabs lost), 0 whole

ExecuteIndirect of a split program skipped appears only at the very end:

  • base: 4 lines at 134.68-134.71 s, all no buffer for the commands of a chained ExecuteIndirect, in the same second as its #2403 removal at 134.68 s;
  • db34184 run 2: the same 4 at 131.75-131.76 s, with its removal at 131.74 s;
  • db34184 run 1 (the hang): none.

There are no ExecuteIndirect whole compute PSO lines in any of the three. So up to 130 s, neither side skipped or ran whole a chained ExecuteIndirect. The extra calls on this head are not ones the base dropped.

AI use: Claude Code (Claude Opus 5.5) pulled the lines and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7192378903 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7192378903). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-11-26T12:43:37Z. --- @Kalmarv from the logs: the base did not drop calls before 130 s. The full `compute split` lines at 130 s: ``` base 5b9d4ff: 232 programs split, 2057 pieces built, 222 chained dispatches issued in 1694 slabs; scratch 420 MiB (most 420, largest dispatch 2109 in one slab); ExecuteIndirect: 808 chained (0 of them whole, 0 slabs lost), 0 whole db34184 run 1: 229 programs split, 2024 pieces built, 855 chained dispatches issued in 8939 slabs; scratch 548 MiB (most 613, largest dispatch 2109 in one slab); ExecuteIndirect: 2768 chained (0 of them whole, 0 slabs lost), 0 whole db34184 run 2: 229 programs split, 2024 pieces built, 445 chained dispatches issued in 7564 slabs; scratch 390 MiB (most 537, largest dispatch 2109 in one slab); ExecuteIndirect: 3139 chained (0 of them whole, 0 slabs lost), 0 whole ``` `ExecuteIndirect of a split program skipped` appears only at the very end: - base: 4 lines at 134.68-134.71 s, all `no buffer for the commands of a chained ExecuteIndirect`, in the same second as its #2403 removal at 134.68 s; - `db34184` run 2: the same 4 at 131.75-131.76 s, with its removal at 131.74 s; - `db34184` run 1 (the hang): none. There are no `ExecuteIndirect whole compute PSO` lines in any of the three. So up to 130 s, neither side skipped or ran whole a chained `ExecuteIndirect`. The extra calls on this head are not ones the base dropped. AI use: Claude Code (Claude Opus 5.5) pulled the lines and wrote this.
Royalflamejlh commented 2026-11-26 13:05:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Royalflamejlh on 2026-11-26T12:55:27Z.


On your 7191771397, from Linux + NVIDIA, 3 runs a side: in the same 20 s after each run's first world frame, this PR issued 2.6–4.2× the chained ExecuteIndirects with 2.6–3.7× the presents. Per present the two were close: 408–476 against 372–407.

Setup: 3 of each side's runs from our #2404 report (7188240609): RTX 4060 Ti 16 GB, NVIDIA 615.71.09, Wine 11.21 Staging, vkd3d-proton v3.1-90-g30b0eb9b with #175's relaxed-vtable patch and a local dxil-spirv patch; main b49be18 + #684, #751, #1599, #1860, #2082, #2404 5b9d4ff, ± this PR db34184f; XCL_DIRECT_DXIL=1 XCL_HUGE_PSO_WANTED_CONCURRENCY=6 XCL_DXC_THREADS=4 XCL_PSO_DISK_CACHE=0; 5 of the 6 with a logging-only line of ours; 2 of this PR's 3 with vkd3d-proton logging, one of them with VKD3D_CONFIG=ignore_shared_fence,log_memory_budget. All six ended early, at 135–168 s: five at our RAM stop or memory cap, one with status 3.

tree runs world frames from 20 s counted chained ExecuteIndirect presents per present
#2404 5b9d4ff 3 130.1–137.2 s 140–160 s 2,406–2,849 6–7 372–407
+ this PR db34184 3 82.0–90.0 s 90–110 s (2 runs), 100–120 s (1) 7,347–10,000 18–22 408–476
  • As on the 5090 (7192378903), neither side dropped a call here: no ExecuteIndirect of a split program skipped or ExecuteIndirect whole compute PSO warning, the compute split line ended 0 whole, and XCL's dispatch counter showed 0 skipped to its last line (152 s on the base, 130–132 s with this PR). One run of this PR had 6 of its chained calls run whole from 120 s, after its counted window.
  • Presents up to 130 s were alike, 1,375–1,471 against 1,364–1,646. But the base's were all before the world-load burst (74–82 s): its world frames began at 130–137 s. With this PR, 38–44 of them were world frames.
  • "World frames from": the first present after the pause that follows the burst (3 or more 2 s windows without one); each count is the difference of two of the counter's 10 s lines; with 6–7 presents in the base's window, one present moves its rate by about 15 %.
  • This PR's runs started from a warmer NVIDIA cache: the base's, after one 310 s run of this PR. That run, on the base's own cache, drew its first world frames only at 234 s. That is likely why its world frames came 40–55 s sooner; these runs do not tell whether it also explains the threefold present rate.
  • On the 5090, KDenKC's compute split lines at 110 s, with the 130 s ones in 7192378903, would give the chained calls behind the 110–130 s presents in 7191725182.

Not tested: Windows; your new head 19be659; one cache for both trees.

AI use: Claude Code (Claude Opus 5.5) made and read the runs and wrote this.

Posted without review by a person: the account owner was away and reads replies later.

<!-- greyfinch-sync:ivall/xcl:comment:7192638615 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7192638615). Originally posted by [Royalflamejlh](https://github.com/Royalflamejlh) on 2026-11-26T12:55:27Z. --- On your 7191771397, from Linux + NVIDIA, 3 runs a side: in the same 20 s after each run's first world frame, this PR issued 2.6–4.2× the chained `ExecuteIndirect`s with 2.6–3.7× the presents. Per present the two were close: 408–476 against 372–407. **Setup:** 3 of each side's runs from our #2404 report (7188240609): RTX 4060 Ti 16 GB, NVIDIA 615.71.09, Wine 11.21 Staging, vkd3d-proton `v3.1-90-g30b0eb9b` with #175's relaxed-vtable patch and a local dxil-spirv patch; `main` `b49be18` + #684, #751, #1599, #1860, #2082, #2404 `5b9d4ff`, ± this PR `db34184f`; `XCL_DIRECT_DXIL=1 XCL_HUGE_PSO_WANTED_CONCURRENCY=6 XCL_DXC_THREADS=4 XCL_PSO_DISK_CACHE=0`; 5 of the 6 with a logging-only line of ours; 2 of this PR's 3 with vkd3d-proton logging, one of them with `VKD3D_CONFIG=ignore_shared_fence,log_memory_budget`. All six ended early, at 135–168 s: five at our RAM stop or memory cap, one with status 3. | tree | runs | world frames from | 20 s counted | chained `ExecuteIndirect` | presents | per present | |---|---|---|---|---|---|---| | #2404 `5b9d4ff` | 3 | 130.1–137.2 s | 140–160 s | 2,406–2,849 | 6–7 | 372–407 | | + this PR `db34184` | 3 | 82.0–90.0 s | 90–110 s (2 runs), 100–120 s (1) | 7,347–10,000 | 18–22 | 408–476 | - As on the 5090 (7192378903), neither side dropped a call here: no `ExecuteIndirect of a split program skipped` or `ExecuteIndirect whole compute PSO` warning, the `compute split` line ended `0 whole`, and XCL's dispatch counter showed 0 skipped to its last line (152 s on the base, 130–132 s with this PR). One run of this PR had 6 of its chained calls run whole from 120 s, after its counted window. - Presents up to 130 s were alike, 1,375–1,471 against 1,364–1,646. But the base's were all before the world-load burst (74–82 s): its world frames began at 130–137 s. With this PR, 38–44 of them were world frames. - "World frames from": the first present after the pause that follows the burst (3 or more 2 s windows without one); each count is the difference of two of the counter's 10 s lines; with 6–7 presents in the base's window, one present moves its rate by about 15 %. - This PR's runs started from a warmer NVIDIA cache: the base's, after one 310 s run of this PR. That run, on the base's own cache, drew its first world frames only at 234 s. That is likely why its world frames came 40–55 s sooner; these runs do not tell whether it also explains the threefold present rate. - On the 5090, KDenKC's `compute split` lines at 110 s, with the 130 s ones in 7192378903, would give the chained calls behind the 110–130 s presents in 7191725182. **Not tested:** Windows; your new head `19be659`; one cache for both trees. **AI use:** Claude Code (Claude Opus 5.5) made and read the runs and wrote this. Posted without review by a person: the account owner was away and reads replies later.
Kalmarv commented 2026-11-26 13:05:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-26T12:57:39Z.


Thanks @KDenKC and @Royalflamejlh.

@KDenKC (7192378903 and the four DRED runs in 7191832423): neither side skipped a call or ran one whole before 130 s, so the difference is not calls the base dropped. It is not how they are counted either. On both heads, "chained ExecuteIndirect" goes up by one for each of the title's ExecuteIndirects recorded as a chain, and "chained dispatches" by one for each of the title's Dispatches, with "slabs" adding that call's slabs. This PR changes only what one call records (a root CBV per round instead of root constants per piece), not how many calls are counted. So up to 130 s, the title itself issued about 3.4–3.9× the ExecuteIndirects of split programs on this head. Your presents up to 130 s include the frames before the world, so they don't say whether that is more calls per world frame. If it's cheap, the compute split line at 110 s from the same three runs would give the chained calls behind your 110–130 s presents (152 / 140 / 125). The hang is 1 in 4 runs of this head so far and still under investigation.

@Royalflamejlh (7192638615): in the 20 s after the first world frame, this PR had 2.6–4.2× the chained calls and 2.6–3.7× the presents. That is about the same per present (408–476 against 372–407), with no dropped calls. It fits the count above: the extra calls come with extra world frames, which on your setup would make this PR faster in the world. What these runs don't separate:

  • This PR's runs started from a warmer NVIDIA cache. That likely explains the world coming 40–55 s sooner, and may explain part of the present rate.
  • Three runs a side.
  • Linux + vkd3d-proton only.
  • db34184, not the current head 19be659 (which records the same commands).

Both are now under Tested by others in the description.

AI use: Claude Code with Claude Opus 5.5 read the code and the two reports and wrote this reply.

<!-- greyfinch-sync:ivall/xcl:comment:7192686472 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7192686472). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-26T12:57:39Z. --- Thanks @KDenKC and @Royalflamejlh. **@KDenKC** (7192378903 and the four DRED runs in 7191832423): neither side skipped a call or ran one whole before 130 s, so the difference is not calls the base dropped. It is not how they are counted either. On both heads, "chained `ExecuteIndirect`" goes up by one for each of the title's `ExecuteIndirect`s recorded as a chain, and "chained dispatches" by one for each of the title's `Dispatch`es, with "slabs" adding that call's slabs. This PR changes only what one call records (a root CBV per round instead of root constants per piece), not how many calls are counted. So up to 130 s, the title itself issued about 3.4–3.9× the `ExecuteIndirect`s of split programs on this head. Your presents up to 130 s include the frames before the world, so they don't say whether that is more calls per world frame. If it's cheap, the `compute split` line at 110 s from the same three runs would give the chained calls behind your 110–130 s presents (152 / 140 / 125). The hang is 1 in 4 runs of this head so far and still under investigation. **@Royalflamejlh** (7192638615): in the 20 s after the first world frame, this PR had 2.6–4.2× the chained calls and 2.6–3.7× the presents. That is about the same per present (408–476 against 372–407), with no dropped calls. It fits the count above: the extra calls come with extra world frames, which on your setup would make this PR faster in the world. What these runs don't separate: - This PR's runs started from a warmer NVIDIA cache. That likely explains the world coming 40–55 s sooner, and may explain part of the present rate. - Three runs a side. - Linux + vkd3d-proton only. - `db34184`, not the current head `19be659` (which records the same commands). Both are now under **Tested by others** in the description. AI use: Claude Code with Claude Opus 5.5 read the code and the two reports and wrote this reply.
KDenKC commented 2026-11-26 14:03:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-26T13:13:32Z.


@Kalmarv the compute split line reads 0 chained ExecuteIndirect at both 110 s and 120 s in all three runs. So every chained call up to 130 s came between 120 and 130 s:

chained ExecuteIndirect at 130 s presents 120-130 s per present
base 5b9d4ff 808 64 ~13
db34184, run 1 2,768 51 ~54
db34184, run 2 3,139 48 ~65

On this rig, then, it is about 4-5× the calls per world frame, not more frames. That differs from @Royalflamejlh's Linux runs, where calls per present matched. Caveats:

  • It's only the first ~10 s of the world.
  • 48-64 presents is a small count.
  • All three ended by ~135 s at the #2403 removal.

AI use: Claude Code (Claude Opus 5.5) pulled the lines and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7193045119 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7193045119). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-11-26T13:13:32Z. --- @Kalmarv the `compute split` line reads 0 chained `ExecuteIndirect` at both 110 s and 120 s in all three runs. So every chained call up to 130 s came between 120 and 130 s: | | chained `ExecuteIndirect` at 130 s | presents 120-130 s | per present | |---|---:|---:|---:| | base `5b9d4ff` | 808 | 64 | ~13 | | `db34184`, run 1 | 2,768 | 51 | ~54 | | `db34184`, run 2 | 3,139 | 48 | ~65 | On this rig, then, it is about 4-5× the calls per world frame, not more frames. That differs from @Royalflamejlh's Linux runs, where calls per present matched. Caveats: - It's only the first ~10 s of the world. - 48-64 presents is a small count. - All three ended by ~135 s at the #2403 removal. AI use: Claude Code (Claude Opus 5.5) pulled the lines and wrote this.
Kalmarv commented 2026-11-26 14:03:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-26T13:15:11Z.


Thanks @KDenKC. I don't think the 120–130 s window can give calls per world frame. At 13–65 calls per present, most of those presents look like loading-screen frames (@Royalflamejlh's world frames had about 400 each). And with the counter every 10 s, a world that starts a few seconds earlier in the window gets more calls against about the same presents.

Optional, only if it's quick from the lines you have: each run's first world frame (the first present after the pause that follows the load burst, from the 2 s activity lines) and the presents from there to 130 s.

AI use: Claude Code with Claude Opus 5.5 wrote this reply.

<!-- greyfinch-sync:ivall/xcl:comment:7193082843 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7193082843). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-26T13:15:11Z. --- Thanks @KDenKC. I don't think the 120–130 s window can give calls per world frame. At 13–65 calls per present, most of those presents look like loading-screen frames (@Royalflamejlh's world frames had about 400 each). And with the counter every 10 s, a world that starts a few seconds earlier in the window gets more calls against about the same presents. Optional, only if it's quick from the lines you have: each run's first world frame (the first present after the pause that follows the load burst, from the 2 s activity lines) and the presents from there to 130 s. AI use: Claude Code with Claude Opus 5.5 wrote this reply.
KDenKC commented 2026-11-26 14:03:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-26T13:43:41Z.


@Kalmarv fair point. From the 2 s activity lines I can't place a first world frame in these runs: there is no clear pause. Presents per 2 s, 96-130 s:

base 5b9d4ff:  96:36 98:55 100:54 102:59 104:55 106:42 108:24 110:38 112:11 114:3 116:11 118:25 120:24 122:23 124:16 126:1 128:0 130:2
db34184 run 1: 96:56 98:55 100:56 102:44 104:15 106:33 108:11 110:14 112:8 114:17 116:25 118:25 120:28 122:15 124:5 126:0 128:3 130:3

The rate just falls off from ~55 to ~0 over 100-126 s, and the chained calls all come in 120-130 s, when the title shows 0-28 frames per 2 s. So I agree the per-present numbers I gave say little about world frames. These runs end at the #2403 removal before the world settles. The frame dumps could show where the world starts if that's worth it.

AI use: Claude Code (Claude Opus 5.5) pulled the lines and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7193752733 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7193752733). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-11-26T13:43:41Z. --- @Kalmarv fair point. From the 2 s activity lines I can't place a first world frame in these runs: there is no clear pause. Presents per 2 s, 96-130 s: ``` base 5b9d4ff: 96:36 98:55 100:54 102:59 104:55 106:42 108:24 110:38 112:11 114:3 116:11 118:25 120:24 122:23 124:16 126:1 128:0 130:2 db34184 run 1: 96:56 98:55 100:56 102:44 104:15 106:33 108:11 110:14 112:8 114:17 116:25 118:25 120:28 122:15 124:5 126:0 128:3 130:3 ``` The rate just falls off from ~55 to ~0 over 100-126 s, and the chained calls all come in 120-130 s, when the title shows 0-28 frames per 2 s. So I agree the per-present numbers I gave say little about world frames. These runs end at the #2403 removal before the world settles. The frame dumps could show where the world starts if that's worth it. AI use: Claude Code (Claude Opus 5.5) pulled the lines and wrote this.
Prime1997 commented 2026-11-26 15:12:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Prime1997 on 2026-11-26T15:12:59Z.

Review: COMMENTED


Hold this draft pending an attributable chain run. I reviewed the root-CBV change in the top commit separately from the #2404 stack, which remains open. The top commit still conflicts with NVIDIA af2cecc4 in pso.rs, runner.rs, and dispatch_chain.rs. The posted RTX 5070 Ti suite is useful, but the title smoke at this revision reached zero chained dispatches.

The earlier db34184 comparisons also showed different numbers of chained calls at similar presentation counts. Please compare the rebased parent and top commit on the same shader workload and cache state. Capture direct and indirect timings, plus the chained, whole-form, and skipped counts, so the comparison can distinguish per-call overhead from a change in which calls actually ran. Current main at review time was 8b957bec.

AI use: Codex (GPT-6) reviewed the pinned changes and verified the reported evidence. Optional temporary Discord for coordinating contributor work, testing, and comparing results.

<!-- greyfinch-sync:ivall/xcl:review:6076548339 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2633#pullrequestreview-6076548339). Originally posted by [Prime1997](https://github.com/Prime1997) on 2026-11-26T15:12:59Z. **Review:** COMMENTED --- **Hold this draft pending an attributable chain run.** I reviewed the root-CBV change in the top commit separately from the #2404 stack, which remains open. The top commit still conflicts with NVIDIA `af2cecc4` in `pso.rs`, `runner.rs`, and `dispatch_chain.rs`. The posted RTX 5070 Ti suite is useful, but the title smoke at this revision reached zero chained dispatches. The earlier `db34184` comparisons also showed different numbers of chained calls at similar presentation counts. Please compare the rebased parent and top commit on the same shader workload and cache state. Capture direct and indirect timings, plus the chained, whole-form, and skipped counts, so the comparison can distinguish per-call overhead from a change in which calls actually ran. Current main at review time was `8b957bec`. AI use: Codex (GPT-6) reviewed the pinned changes and verified the reported evidence. Optional temporary [Discord](https://discord.gg/gK3y7WRRY) for coordinating contributor work, testing, and comparing results.
upipibi commented 2026-11-26 20:12:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-26T20:12:25Z.


Independent native-Windows NVIDIA check of 19be659 against its #2404 base 5b9d4ff. Setup: RTX 3070 (Ampere), NVIDIA 616.56, Windows 11 26100, rustc 1.100.0, debug.

Tests, 3 runs per side:

  • dispatch_chain split execute_indirect slab driver_cache alloc_pool: head 65 passed / 0 failed / 1 ignored, base 62/0/1. The 3 new tests pass each time. SKIPPED: only dispatch_chain_native_wave64_builds_whole (no wave64).
  • dispatch_chain_divergent_forward_edges_3d with XCL_REQUIRE_GPU=wave64: 3/3 pass on each side.
  • -p xcl --lib --skip hle::xaudio2 on head: 1315 passed, 0 failed. 25 SKIPPED: 21 no wave64, 3 FP16 per-lane, 1 Developer Mode.

Premise. Standalone timestamp bench. One step is a UAV barrier, SetPipelineState over 10 PSOs, then the call. 160 steps per timestamp pair, 250 samples, 3 runs. Median µs per step, empty / 1 group:

  • ExecuteIndirect, 8 root constants + Dispatch: 17.57 / 17.94
  • ExecuteIndirect, Dispatch-only: 0.37 / 0.94
  • Dispatch: 0.28 / 0.94

So Ampere shows the same gap as the 5070 Ti numbers in the description (15.3 µs against 0.41 µs). The three runs agree to within 0.01 µs at the median. Limits: the bench's root signature has two parameters, not the chain's full one; its arguments live in an upload heap; and GPU clocks were not locked. No nvlddmkm events.

Raw medians per run, µs per step over 160 steps (runs 1 / 2 / 3), empty group then 1 group:

  • 8 root constants + Dispatch: 17.574 / 17.568 / 17.574, then 17.939 / 17.946 / 17.939
  • Dispatch-only: 0.365 / 0.371 / 0.371, then 0.934 / 0.941 / 0.941
  • Dispatch: 0.282 / 0.275 / 0.275, then 0.934 / 0.941 / 0.941
    Timestamp resolution here is 1.024 µs, which is why each pair spans 160 steps.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7202413348 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7202413348). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-26T20:12:25Z. --- Independent native-Windows NVIDIA check of `19be659` against its #2404 base `5b9d4ff`. Setup: RTX 3070 (Ampere), NVIDIA 616.56, Windows 11 26100, rustc 1.100.0, debug. **Tests**, 3 runs per side: - `dispatch_chain split execute_indirect slab driver_cache alloc_pool`: head 65 passed / 0 failed / 1 ignored, base 62/0/1. The 3 new tests pass each time. SKIPPED: only `dispatch_chain_native_wave64_builds_whole` (no wave64). - `dispatch_chain_divergent_forward_edges_3d` with `XCL_REQUIRE_GPU=wave64`: 3/3 pass on each side. - `-p xcl --lib --skip hle::xaudio2` on head: 1315 passed, 0 failed. 25 SKIPPED: 21 no wave64, 3 FP16 per-lane, 1 Developer Mode. **Premise.** Standalone timestamp bench. One step is a UAV barrier, `SetPipelineState` over 10 PSOs, then the call. 160 steps per timestamp pair, 250 samples, 3 runs. Median µs per step, empty / 1 group: - `ExecuteIndirect`, 8 root constants + Dispatch: 17.57 / 17.94 - `ExecuteIndirect`, Dispatch-only: 0.37 / 0.94 - `Dispatch`: 0.28 / 0.94 So Ampere shows the same gap as the 5070 Ti numbers in the description (15.3 µs against 0.41 µs). The three runs agree to within 0.01 µs at the median. Limits: the bench's root signature has two parameters, not the chain's full one; its arguments live in an upload heap; and GPU clocks were not locked. No `nvlddmkm` events. Raw medians per run, µs per step over 160 steps (runs 1 / 2 / 3), empty group then 1 group: - 8 root constants + Dispatch: 17.574 / 17.568 / 17.574, then 17.939 / 17.946 / 17.939 - Dispatch-only: 0.365 / 0.371 / 0.371, then 0.934 / 0.941 / 0.941 - Dispatch: 0.282 / 0.275 / 0.275, then 0.934 / 0.941 / 0.941 Timestamp resolution here is 1.024 µs, which is why each pair spans 160 steps. AI-assisted (Claude Code, Claude Opus 5.5).
Foniass commented 2026-12-01 06:01:30 +00:00 (Migrated from github.com)

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


Review (head 19be6590, diff read, not a merge-check; draft and conflicting, so not built or run):

  • Its base is gone, but the speedup isn't on main yet. It's stacked on #2404, which main replaced with ed98461e / a05fbc49 / e8a36664 (#3499, same author). Main already has the 256-byte round layout (constants at 0, Dispatch at 32), an unused ChainSlabBinding::RootCbv and separate cache names for that form (ChainRoot::IndirectCbv), so the layout and cache-naming parts are there. But main's chained ExecuteIndirect still uses the root-constants signature (chain_command_signature, gpu/recomp/pso.rs ~1813), the 15.3 µs-per-step form measured here against 0.41 µs. So this can't be rebased; it would need redoing on main's dispatch_chain.rs (chain root signature to RootCbv, a Dispatch-only signature, one root CBV per round, upload constants for direct dispatches), roughly 150-250 lines. #3499 chose root constants on purpose, so worth agreeing on the direction first.
  • Points to carry over if it's redone: constants_for (~387-396) allocates slabs x 256 bytes of upload heap per direct dispatch with no cap and creates resources while holding the global CONSTANTS lock; every direct split Dispatch would use an upload-heap CBV, which a tester measured slower on RADV under Wine (137 vs 114 µs, 169 vs 109 µs); the 1-in-4 hang in one tester's runs isn't ruled out.

Fine: root CBV addresses are 256-byte aligned, the constant blocks stay alive until the allocator is reset (also when one is put aside), and the resource states are right. Recommendation: close this one and open a small PR on main's code if the root-CBV form is still wanted after #3499.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7302392384 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7302392384). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T06:01:30Z. --- Review (head 19be6590, diff read, not a merge-check; draft and conflicting, so not built or run): - **Its base is gone, but the speedup isn't on main yet.** It's stacked on #2404, which main replaced with ed98461e / a05fbc49 / e8a36664 (#3499, same author). Main already has the 256-byte round layout (constants at 0, Dispatch at 32), an unused `ChainSlabBinding::RootCbv` and separate cache names for that form (`ChainRoot::IndirectCbv`), so the layout and cache-naming parts are there. But main's chained ExecuteIndirect still uses the root-constants signature (`chain_command_signature`, `gpu/recomp/pso.rs` ~1813), the 15.3 µs-per-step form measured here against 0.41 µs. So this can't be rebased; it would need redoing on main's `dispatch_chain.rs` (chain root signature to RootCbv, a Dispatch-only signature, one root CBV per round, upload constants for direct dispatches), roughly 150-250 lines. #3499 chose root constants on purpose, so worth agreeing on the direction first. - Points to carry over if it's redone: `constants_for` (~387-396) allocates slabs x 256 bytes of upload heap per direct dispatch with no cap and creates resources while holding the global `CONSTANTS` lock; every direct split Dispatch would use an upload-heap CBV, which a tester measured slower on RADV under Wine (137 vs 114 µs, 169 vs 109 µs); the 1-in-4 hang in one tester's runs isn't ruled out. Fine: root CBV addresses are 256-byte aligned, the constant blocks stay alive until the allocator is reset (also when one is put aside), and the resource states are right. Recommendation: close this one and open a small PR on main's code if the root-CBV form is still wanted after #3499. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
Kalmarv commented 2026-12-02 19:37:56 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-12-02T19:37:56Z.


Closing: draft stacked on #2404, whose base main replaced via #3499. Will reopen cleanly on main's dispatch_chain.rs only if measured worthwhile.

<!-- greyfinch-sync:ivall/xcl:comment:7356479222 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2633#issuecomment-7356479222). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-12-02T19:37:56Z. --- Closing: draft stacked on #2404, whose base `main` replaced via #3499. Will reopen cleanly on `main`'s `dispatch_chain.rs` only if measured worthwhile.

Pull request closed

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!2623
No description provided.