D3D12.X: bind console_list view/sampler heaps before root signature and fix shared ClearUAV handle #2508

Open
Decodere wants to merge 1 commit from upstream-pr/2518 into main
Decodere commented 2026-11-25 21:22:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-25T21:22:18Z.


Fix three descriptor-heap and ClearUnorderedAccessView bugs in console_list command-stream replay: bind the shared CBV/SRV/UAV heap unconditionally (even with XCL_HEAP_WINDOWS=0), call SetDescriptorHeaps before SetComputeRootSignature, and use the valid shared-heap UAV handle in CLEAR_UAV_MARKER while rejecting sampler slots. Part of #2461. Part of #1452. Part of #1833.

What is in it

  • crates/xcl/src/hle/d3d12x/console_list.rs:
    • ensure_dispatch_heaps: mirror the sampler-heap path to unconditionally fetch or lazily create the shared CBV/SRV/UAV heap via console_heap::global_heap() / console_heap::shared_heap(d) (preserving heap_on_device filtering and the shared_view_bound flag returned to callers), instead of gating it on pso::heap_windows(), since translated ABI root signatures always set D3D12_ROOT_SIGNATURE_FLAG_CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED.
    • bind_dispatch_root / close: resolve the compute root signature via pso_root_signature_exact(real) first (returning missing-RS errors before mutating command-list state), then invoke ensure_dispatch_heaps (SetDescriptorHeaps) strictly before list.SetComputeRootSignature(root_sig).
    • clear_uav_gpu_slot / clear_uav_gpu_handle / CLEAR_UAV_MARKER: reject sampler slots (g.sampler || c.sampler), select c (and c.pc_gpu_uav) when both slots live in the shared GLOBAL heap (c.shared_srv != 0 && g.shared_srv != 0 && c.pc_gpu_uav != 0), and fall back to g otherwise (forwarding the selected slot to list_x::uav_clear_resource and rejecting zero handles).
    • Tests:
      • clear_uav_gpu_handle_prefers_shared_cpu_slot_and_rejects_samplers: pure-CPU unit test covering shared GLOBAL inline-copy preference, shared fallback when c.pc_gpu_uav == 0, non-shared and mixed-heap fallback, sampler rejection, and zero-handle rejection.
      • bind_dispatch_root_sets_view_and_sampler_heaps_before_root_signature: isolated subprocess D3D12/WARP test (XCL_HEAP_WINDOWS=0, safe under --test-threads=4, forwarding child SKIPPED lines to stderr) using a recording ID3D12GraphicsCommandList spy vtable + real directly-indexed ABI root signature to verify ["heaps", "rs"] call ordering, shared_view_bound == true, and [CBV_SRV_UAV, SAMPLER] binding without XCL_HEAP_WINDOWS, plus Close().is_ok() on a real D3D12 command list.

Tested

  • Hardware & toolchain: NVIDIA GeForce RTX 4060 8 GB (driver 621.40, wave32), Intel Core i5-11400F, 32 GB RAM, Windows 11 Build 26200, Rust 1.100.1 (stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17.
  • Rebased onto origin/main (1c8b551475e1e7bfe48f94448492a4c3544a2e0f) at 749629981cd551596b3a4111510ed508187e2d80:
    • cargo build --workspace (debug): ok.
    • cargo test --workspace --no-fail-fast -- --test-threads=4 --nocapture (43 targets): 2911 passed, 0 failed, 51 ignored (+2 new tests vs origin/main 1c8b5514).
    • Targeted hle::d3d12x::console_list::tests: 13/13 passed, 0 skipped (including bind_dispatch_root_sets_view_and_sampler_heaps_before_root_signature, clear_uav_gpu_handle_prefers_shared_cpu_slot_and_rejects_samplers, default_dispatch_heaps_binds_and_upgrades_missing_view_or_sampler, and gpu_ensure_dispatch_heaps_binds_view_and_sampler_heaps).
    • SKIPPED lines (28 total, identical to origin/main 1c8b5514): 22 no wave64 (8 direct + 14 lower_dxil subcases), 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 2 no heap windows, 1 cannot disable the driver cache (Windows Developer Mode required).
    • cargo build --release -p xcl: ok.
  • Failing-first before the fix was also verified previously (unmodified clear_uav_gpu_handle returned the stale non-shared slot handle, and bind_dispatch_root recorded ["rs", "heaps"] without creating the shared view heap).

Regression run

Paired 60 s retail title runs with scripts/smoke.ps1 (release build, same title 29640639, clean working tree) on origin/main (1c8b551475e1e7bfe48f94448492a4c3544a2e0f) and this PR (749629981cd551596b3a4111510ed508187e2d80):

Baseline (origin/main):

xcl-smoke v1
commit: 1c8b551475e1e7bfe48f94448492a4c3544a2e0f
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1462 (PresentX 1462)
presents per 2 s (last 3): 48 53 59
device removals: 0
crashes: 0
peak commit: 16043 MB

PR head (74962998):

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

Not tested

  • D3D12 debug-layer validation of console_list replay (d3d12SDKLayers.dll is not installed on this host), native wave64 GPU tests, and AMD/Intel GPUs.
  • End-to-end runtime execution under XCL_CONSOLE_LISTS=1 beyond the unit/D3D12 command-list tests and the default 60 s retail title smoke run.

AI use

Antigravity (Gemini 4 Neon) implemented the console_list.rs heap-binding and CLEAR_UAV_MARKER fixes, wrote the unit and subprocess D3D12/WARP tests, performed the rebase onto main, and drafted this PR description; all builds, tests, and paired retail smoke runs were executed locally on the hardware listed above.

<!-- greyfinch-sync:ivall/xcl:issue:5499393798 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2518). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-25T21:22:18Z. --- Fix three descriptor-heap and `ClearUnorderedAccessView` bugs in `console_list` command-stream replay: bind the shared CBV/SRV/UAV heap unconditionally (even with `XCL_HEAP_WINDOWS=0`), call `SetDescriptorHeaps` before `SetComputeRootSignature`, and use the valid shared-heap UAV handle in `CLEAR_UAV_MARKER` while rejecting sampler slots. Part of #2461. Part of #1452. Part of #1833. **What is in it** - `crates/xcl/src/hle/d3d12x/console_list.rs`: - `ensure_dispatch_heaps`: mirror the sampler-heap path to unconditionally fetch or lazily create the shared CBV/SRV/UAV heap via `console_heap::global_heap()` / `console_heap::shared_heap(d)` (preserving `heap_on_device` filtering and the `shared_view_bound` flag returned to callers), instead of gating it on `pso::heap_windows()`, since translated ABI root signatures always set `D3D12_ROOT_SIGNATURE_FLAG_CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED`. - `bind_dispatch_root` / `close`: resolve the compute root signature via `pso_root_signature_exact(real)` first (returning missing-RS errors before mutating command-list state), then invoke `ensure_dispatch_heaps` (`SetDescriptorHeaps`) strictly before `list.SetComputeRootSignature(root_sig)`. - `clear_uav_gpu_slot` / `clear_uav_gpu_handle` / `CLEAR_UAV_MARKER`: reject sampler slots (`g.sampler || c.sampler`), select `c` (and `c.pc_gpu_uav`) when both slots live in the shared `GLOBAL` heap (`c.shared_srv != 0 && g.shared_srv != 0 && c.pc_gpu_uav != 0`), and fall back to `g` otherwise (forwarding the selected slot to `list_x::uav_clear_resource` and rejecting zero handles). - Tests: - `clear_uav_gpu_handle_prefers_shared_cpu_slot_and_rejects_samplers`: pure-CPU unit test covering shared `GLOBAL` inline-copy preference, shared fallback when `c.pc_gpu_uav == 0`, non-shared and mixed-heap fallback, sampler rejection, and zero-handle rejection. - `bind_dispatch_root_sets_view_and_sampler_heaps_before_root_signature`: isolated subprocess D3D12/WARP test (`XCL_HEAP_WINDOWS=0`, safe under `--test-threads=4`, forwarding child `SKIPPED ` lines to `stderr`) using a recording `ID3D12GraphicsCommandList` spy vtable + real directly-indexed ABI root signature to verify `["heaps", "rs"]` call ordering, `shared_view_bound == true`, and `[CBV_SRV_UAV, SAMPLER]` binding without `XCL_HEAP_WINDOWS`, plus `Close().is_ok()` on a real D3D12 command list. **Tested** - Hardware & toolchain: NVIDIA GeForce RTX 4060 8 GB (driver `621.40`, wave32), Intel Core i5-11400F, 32 GB RAM, Windows 11 Build 26200, Rust `1.100.1` (`stable-x86_64-pc-windows-msvc`), DXC `1.9.2602.17`. - Rebased onto `origin/main` (`1c8b551475e1e7bfe48f94448492a4c3544a2e0f`) at `749629981cd551596b3a4111510ed508187e2d80`: - `cargo build --workspace` (debug): ok. - `cargo test --workspace --no-fail-fast -- --test-threads=4 --nocapture` (43 targets): **2911 passed, 0 failed, 51 ignored** (+2 new tests vs `origin/main` `1c8b5514`). - Targeted `hle::d3d12x::console_list::tests`: **13/13 passed, 0 skipped** (including `bind_dispatch_root_sets_view_and_sampler_heaps_before_root_signature`, `clear_uav_gpu_handle_prefers_shared_cpu_slot_and_rejects_samplers`, `default_dispatch_heaps_binds_and_upgrades_missing_view_or_sampler`, and `gpu_ensure_dispatch_heaps_binds_view_and_sampler_heaps`). - `SKIPPED` lines (28 total, identical to `origin/main` `1c8b5514`): 22 `no wave64` (8 direct + 14 `lower_dxil` subcases), 2 `no d3d12SDKLayers.dll`, 1 `no D3D12 debug layer`, 2 `no heap windows`, 1 `cannot disable the driver cache (Windows Developer Mode required)`. - `cargo build --release -p xcl`: ok. - Failing-first before the fix was also verified previously (unmodified `clear_uav_gpu_handle` returned the stale non-shared slot handle, and `bind_dispatch_root` recorded `["rs", "heaps"]` without creating the shared view heap). **Regression run** Paired 60 s retail title runs with `scripts/smoke.ps1` (release build, same title `29640639`, clean working tree) on `origin/main` (`1c8b551475e1e7bfe48f94448492a4c3544a2e0f`) and this PR (`749629981cd551596b3a4111510ed508187e2d80`): Baseline (`origin/main`): ``` xcl-smoke v1 commit: 1c8b551475e1e7bfe48f94448492a4c3544a2e0f gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1462 (PresentX 1462) presents per 2 s (last 3): 48 53 59 device removals: 0 crashes: 0 peak commit: 16043 MB ``` PR head (`74962998`): ``` xcl-smoke v1 commit: 749629981cd551596b3a4111510ed508187e2d80 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1627 (PresentX 1627) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15156 MB ``` **Not tested** - D3D12 debug-layer validation of `console_list` replay (`d3d12SDKLayers.dll` is not installed on this host), native wave64 GPU tests, and AMD/Intel GPUs. - End-to-end runtime execution under `XCL_CONSOLE_LISTS=1` beyond the unit/D3D12 command-list tests and the default 60 s retail title smoke run. **AI use** Antigravity (Gemini 4 Neon) implemented the `console_list.rs` heap-binding and `CLEAR_UAV_MARKER` fixes, wrote the unit and subprocess D3D12/WARP tests, performed the rebase onto `main`, and drafted this PR description; all builds, tests, and paired retail smoke runs were executed locally on the hardware listed above.
DavidM1911 commented 2026-11-25 22:06:46 +00:00 (Migrated from github.com)

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


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

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

Thanks!

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

Imported from ivall/xcl. Originally posted by emirduran707 on 2026-11-25T21:56:33Z.


Independent AMD RDNA4 (native wave64) test report on exact head 77f51420c133f3fc251c92628d2fde532c99300b (clean detached checkout, no local changes).

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64, driver 32.0.31044.16), Ryzen 5 5600, 32 GB RAM, Windows 11 Pro 26300, Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17; tests debug, smoke release.
  • cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4: 1423 passed, 2 failed, 46 ignored; 8 SKIPPED (6 in lower_dxil::tests::{f16,f32}_programs_on_the_gpu refused by per-lane form; heap_window_out_of_memory_falls_back_to_the_switch_form; pso_measurement_compiles_an_exact_synthetic_record). All native wave64 GPU tests ran and passed.
    • Both PR tests passed: hle::d3d12x::console_list::tests::bind_dispatch_root_sets_view_and_sampler_heaps_before_root_signature and clear_uav_gpu_handle_prefers_shared_cpu_slot_and_rejects_samplers.
    • The 2 failures (gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 seed 722 and fuzz_validate_and_gpu_3 seed 1599) are pre-existing on unmodified main on this GPU.

Regression run (60 s retail-title smoke, XCL_NETWORK=0, release)

xcl-smoke v1
commit: 77f51420c133f3fc251c92628d2fde532c99300b
gpu: AMD Radeon RX 9060 XT
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1601 (PresentX 1601)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13970 MB

(Matched main 68a284a baseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.)

Not tested

  • D3D12 debug layer; Intel GPUs.

AI use

  • Antigravity with Gemini 4 Neon ran the build, test suite, and smoke run and drafted this report.
<!-- greyfinch-sync:ivall/xcl:comment:7175735946 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2518#issuecomment-7175735946). Originally posted by [emirduran707](https://github.com/emirduran707) on 2026-11-25T21:56:33Z. --- Independent AMD RDNA4 (native wave64) test report on exact head `77f51420c133f3fc251c92628d2fde532c99300b` (clean detached checkout, no local changes). **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64, driver 32.0.31044.16), Ryzen 5 5600, 32 GB RAM, Windows 11 Pro 26300, Rust 1.100.0 (`stable-x86_64-pc-windows-msvc`), DXC 1.9.2602.17; tests debug, smoke release. - `cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4`: **1423 passed, 2 failed, 46 ignored; 8 SKIPPED** (6 in `lower_dxil::tests::{f16,f32}_programs_on_the_gpu` refused by per-lane form; `heap_window_out_of_memory_falls_back_to_the_switch_form`; `pso_measurement_compiles_an_exact_synthetic_record`). All native wave64 GPU tests ran and passed. - Both PR tests passed: `hle::d3d12x::console_list::tests::bind_dispatch_root_sets_view_and_sampler_heaps_before_root_signature` and `clear_uav_gpu_handle_prefers_shared_cpu_slot_and_rejects_samplers`. - The 2 failures (`gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` seed 722 and `fuzz_validate_and_gpu_3` seed 1599) are pre-existing on unmodified `main` on this GPU. **Regression run** (60 s retail-title smoke, `XCL_NETWORK=0`, release) ``` xcl-smoke v1 commit: 77f51420c133f3fc251c92628d2fde532c99300b gpu: AMD Radeon RX 9060 XT title: 21222967 seconds: 60 exit: 0x0 frames shown: 1601 (PresentX 1601) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13970 MB ``` (Matched `main` `68a284a` baseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.) **Not tested** - D3D12 debug layer; Intel GPUs. **AI use** - Antigravity with Gemini 4 Neon ran the build, test suite, and smoke run and drafted this report.
fromthemoonx commented 2026-11-25 22:40:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-11-25T22:40:36Z.


merge-check
base: 5eaadb54c1
head: 749629981c
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2976 passed, 0 failed, 52 ignored (base: 2974 passed, 0 failed, 52 ignored); SKIPPED: 26 (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps, 1 no build ahead); failing: none. The last skip is not in my base run: a_parked_giant_build_ahead_leaves_the_lane_of_new_compute_pipelines_to_the_next skips when the machine is short of commit, and it ran and passed alone 3 of 3 on this merge.
review: read the whole diff (1 file, +159 -20). No blocking finding.

  • The console_list::tests module at 8 threads: 30 of 30 passed, both new tests included, none skipped.
  • Each of the three fixes is covered. Undoing any one makes a new test fail: not creating the shared view heap, setting the root signature before the heaps, and always clearing through the GPU slot's handle.
  • Console lists are off unless XCL_CONSOLE_LISTS is set, so a default title run (the smoke pair included) does not reach this code.
  • For a UAV clear, console lists now prefer the CPU slot's shared view, while direct lists (list_x::uav_clear_handles) still use the GPU slot's. That gives the same result when both slots hold the same view, as D3D12 asks.
  • Not run here: a retail title, a title that dispatches on console lists, and the debug-layer comparison on this head (on 77f5142 its messages matched main's, but the e2e title never dispatched on a console list).
    performance: none by default. With console lists on, up to one more heap lookup per dispatch until both heaps are bound; reasoned, not measured.
    verdict: safe to merge
    hardware / tool and model: RTX 3060 12 GB (610.88), Ryzen 7 5700X, Windows 11 Pro 26300 / Claude Code (Claude Opus 5.5)

Rerun on the new head; it replaces my report on 77f5142.

<!-- greyfinch-sync:ivall/xcl:comment:7176655536 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2518#issuecomment-7176655536). Originally posted by [fromthemoonx](https://github.com/fromthemoonx) on 2026-11-25T22:40:36Z. --- merge-check base: 5eaadb54c14e0fc29597b2a1689d7dbd83491303 head: 749629981cd551596b3a4111510ed508187e2d80 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2976 passed, 0 failed, 52 ignored (base: 2974 passed, 0 failed, 52 ignored); SKIPPED: 26 (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps, 1 no build ahead); failing: none. The last skip is not in my base run: `a_parked_giant_build_ahead_leaves_the_lane_of_new_compute_pipelines_to_the_next` skips when the machine is short of commit, and it ran and passed alone 3 of 3 on this merge. review: read the whole diff (1 file, +159 -20). No blocking finding. - The `console_list::tests` module at 8 threads: 30 of 30 passed, both new tests included, none skipped. - Each of the three fixes is covered. Undoing any one makes a new test fail: not creating the shared view heap, setting the root signature before the heaps, and always clearing through the GPU slot's handle. - Console lists are off unless `XCL_CONSOLE_LISTS` is set, so a default title run (the smoke pair included) does not reach this code. - For a UAV clear, console lists now prefer the CPU slot's shared view, while direct lists (`list_x::uav_clear_handles`) still use the GPU slot's. That gives the same result when both slots hold the same view, as D3D12 asks. - Not run here: a retail title, a title that dispatches on console lists, and the debug-layer comparison on this head (on `77f5142` its messages matched main's, but the e2e title never dispatched on a console list). performance: none by default. With console lists on, up to one more heap lookup per dispatch until both heaps are bound; reasoned, not measured. verdict: safe to merge hardware / tool and model: RTX 3060 12 GB (610.88), Ryzen 7 5700X, Windows 11 Pro 26300 / Claude Code (Claude Opus 5.5) Rerun on the new head; it replaces my report on `77f5142`.
xpatfussy69x commented 2026-11-25 23:09:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by xpatfussy69x on 2026-11-25T22:09:15Z.


Test run on exact head 77f5142 (77f51420c133f3fc251c92628d2fde532c99300b, on its base 6d12f58), clean tree.

Tested

  • NVIDIA GeForce RTX 3060 12 GB (driver 32.0.16.2124, 32-lane waves only), AMD Ryzen 5 7500F, Windows 11, Rust 1.100.0; debug build for the tests, release for the smoke runs
  • cargo test --workspace -- --test-threads=4: 1425 passed, 0 failed, 46 ignored
  • SKIPPED (25): 21 × no wave64; 1 × no heap windows; 3 × per-lane form refused V_MUL_F16 / V_PK_MUL_F16 / V_CVT_F16_F32 (on main too)
  • cargo test -p xcl --lib console_list: 10 passed, 0 failed
  • This PR's new tests in the workspace run:
    • clear_uav_gpu_handle_prefers_shared_cpu_slot_and_rejects_samplers: ok, not skipped
    • bind_dispatch_root_sets_view_and_sampler_heaps_before_root_signature: ok, not skipped

Regression run (60 s, default settings)

main:

xcl-smoke v1
commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea
gpu: NVIDIA GeForce RTX 3060
title: c3f791f3
seconds: 60
exit: 0x0
frames shown: 1091 (PresentX 1091)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14814 MB

this PR:

xcl-smoke v1
commit: 77f51420c133f3fc251c92628d2fde532c99300b
gpu: NVIDIA GeForce RTX 3060
title: c3f791f3
seconds: 60
exit: 0x0
frames shown: 1144 (PresentX 1144)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14797 MB

No crash or device removal; frames 105 % of main's, peak commit 100 %.

Not tested

  • Whether the title replays a console command list that binds a root signature or clears a UAV in this run: a regression check only
  • The PR merged into current main (tested on its own base; it merges into e1d84b7 without conflicts)
  • AMD / native wave64

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and both smoke runs on the machine above and wrote this report.
<!-- greyfinch-sync:ivall/xcl:comment:7176003859 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2518#issuecomment-7176003859). Originally posted by [xpatfussy69x](https://github.com/xpatfussy69x) on 2026-11-25T22:09:15Z. --- Test run on exact head `77f5142` (`77f51420c133f3fc251c92628d2fde532c99300b`, on its base `6d12f58`), clean tree. **Tested** - NVIDIA GeForce RTX 3060 12 GB (driver 32.0.16.2124, 32-lane waves only), AMD Ryzen 5 7500F, Windows 11, Rust 1.100.0; debug build for the tests, release for the smoke runs - `cargo test --workspace -- --test-threads=4`: 1425 passed, 0 failed, 46 ignored - SKIPPED (25): 21 × no wave64; 1 × no heap windows; 3 × per-lane form refused `V_MUL_F16` / `V_PK_MUL_F16` / `V_CVT_F16_F32` (on `main` too) - `cargo test -p xcl --lib console_list`: 10 passed, 0 failed - This PR's new tests in the workspace run: - `clear_uav_gpu_handle_prefers_shared_cpu_slot_and_rejects_samplers`: ok, not skipped - `bind_dispatch_root_sets_view_and_sampler_heaps_before_root_signature`: ok, not skipped **Regression run** (60 s, default settings) main: ``` xcl-smoke v1 commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea gpu: NVIDIA GeForce RTX 3060 title: c3f791f3 seconds: 60 exit: 0x0 frames shown: 1091 (PresentX 1091) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14814 MB ``` this PR: ``` xcl-smoke v1 commit: 77f51420c133f3fc251c92628d2fde532c99300b gpu: NVIDIA GeForce RTX 3060 title: c3f791f3 seconds: 60 exit: 0x0 frames shown: 1144 (PresentX 1144) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14797 MB ``` No crash or device removal; frames 105 % of `main`'s, peak commit 100 %. **Not tested** - Whether the title replays a console command list that binds a root signature or clears a UAV in this run: a regression check only - The PR merged into current `main` (tested on its own base; it merges into `e1d84b7` without conflicts) - AMD / native wave64 **AI use** - Claude Code (Claude Opus 5.5) ran the tests and both smoke runs on the machine above and wrote this report.
SlopTart commented 2026-11-25 23:09:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T22:33:08Z.


Tested: current PR head merged onto current origin/main (clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo target x86_64-pc-windows-gnu run under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29).

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

Not tested: retail titles (no title data on this lane, counts only).

AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7176504108 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2518#issuecomment-7176504108). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-25T22:33:08Z. --- **Tested**: current PR head merged onto current `origin/main` (clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo target `x86_64-pc-windows-gnu` run under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29). `gpu_` suite (cold cache): 165 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR. Targeted run of `bind_dispatch_root_sets_view_and_sampler_heaps_before_root_signature` and `clear_uav_gpu_handle_prefers_shared_cpu_slot_and_rejects_samplers`: 2 passed. **Not tested**: retail titles (no title data on this lane, counts only). **AI use**: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.
throny commented 2026-11-28 02:13:50 +00:00 (Migrated from github.com)

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


merge-check claim
head: 77f51420c1

<!-- greyfinch-sync:ivall/xcl:comment:7232221300 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2518#issuecomment-7232221300). Originally posted by [throny](https://github.com/throny) on 2026-11-28T02:13:50Z. --- merge-check claim head: 77f51420c133f3fc251c92628d2fde532c99300b
throny commented 2026-11-28 02:30:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T02:30:27Z.


merge-check
base: 753e8b1a
head: 77f51420c1
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1514 passed, 0 failed, 47 ignored (26 SKIPPED lines); base alone: 1512 passed, 0 failed, 47 ignored
review: no blocking finding. Default path: console-list dispatches now bind the shared view heap whether or not XCL_HEAP_WINDOWS is set (the shared heap exists by default), and heaps are set before the root signature, which is the right order for directly indexed root signatures. Notes: this now differs from list_x::ensure_view_heap, which still gates on heap windows; the test's child process runs with XCL_HEAP_WINDOWS=0, which is the default anyway, and a SKIPPED line of the child is swallowed; from the thread: the e2e title never dispatches on a console list, so no title run reaches this code. Not verified: that the shared copy of the CLEAR_UAV slot is always published.
performance: one mutex lock and one SetDescriptorHeaps per list (reasoned).
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K (no SSE4a), Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).

<!-- greyfinch-sync:ivall/xcl:comment:7232407724 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2518#issuecomment-7232407724). Originally posted by [throny](https://github.com/throny) on 2026-11-28T02:30:27Z. --- merge-check base: 753e8b1a head: 77f51420c133f3fc251c92628d2fde532c99300b merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1514 passed, 0 failed, 47 ignored (26 SKIPPED lines); base alone: 1512 passed, 0 failed, 47 ignored review: no blocking finding. Default path: console-list dispatches now bind the shared view heap whether or not XCL_HEAP_WINDOWS is set (the shared heap exists by default), and heaps are set before the root signature, which is the right order for directly indexed root signatures. Notes: this now differs from list_x::ensure_view_heap, which still gates on heap windows; the test's child process runs with XCL_HEAP_WINDOWS=0, which is the default anyway, and a SKIPPED line of the child is swallowed; from the thread: the e2e title never dispatches on a console list, so no title run reaches this code. Not verified: that the shared copy of the CLEAR_UAV slot is always published. performance: one mutex lock and one SetDescriptorHeaps per list (reasoned). verdict: safe to merge hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K (no SSE4a), Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
Foniass commented 2026-12-01 08:14:49 +00:00 (Migrated from github.com)

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


Triage (#1607) – head 77f5142

No open standalone PR or main commit makes this change: main's console_list.rs still calls SetComputeRootSignature before ensure_dispatch_heaps, binds the view heap only under heap_windows, and clears through g.pc_gpu_uav. The same change also appears as commit ddc8a67 (by raylitebull) inside the large amd-dev port branches (#2604, #2704, #2738 and others, 200+ commits each). It is not on main, and those PRs are not a reasonable replacement for this one.
Main has changed the ClearUAV branch since this PR's base (it now clears through list_x::uav_clear_resource), so the rebase needs to keep that and apply clear_uav_gpu_handle on top. ensure_dispatch_heaps now also takes and returns shared_view_bound.
Binding the global view heap when heap_windows is off is a behaviour change for every translated dispatch. It is not covered by a title run here.
Recommendation: keep open.

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

<!-- greyfinch-sync:ivall/xcl:comment:7305065089 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2518#issuecomment-7305065089). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:14:49Z. --- **Triage (#1607)** – head 77f5142 No open standalone PR or main commit makes this change: main's `console_list.rs` still calls `SetComputeRootSignature` before `ensure_dispatch_heaps`, binds the view heap only under `heap_windows`, and clears through `g.pc_gpu_uav`. The same change also appears as commit ddc8a67 (by raylitebull) inside the large amd-dev port branches (#2604, #2704, #2738 and others, 200+ commits each). It is not on main, and those PRs are not a reasonable replacement for this one. Main has changed the ClearUAV branch since this PR's base (it now clears through `list_x::uav_clear_resource`), so the rebase needs to keep that and apply `clear_uav_gpu_handle` on top. `ensure_dispatch_heaps` now also takes and returns `shared_view_bound`. Binding the global view heap when `heap_windows` is off is a behaviour change for every translated dispatch. It is not covered by a title run here. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Foniass commented 2026-12-02 14:39:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T14:39:29Z.


Follow-up review (head 74962998, since 77f5142, diff read, not a merge-check):

  • Earlier points: unchanged; this push only rebases onto the current main (the own change is the same apart from context and commit-message wrapping).

New: none.

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

<!-- greyfinch-sync:ivall/xcl:comment:7348918813 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2518#issuecomment-7348918813). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-02T14:39:29Z. --- Follow-up review (head 74962998, since 77f5142, diff read, not a merge-check): - **Earlier points:** unchanged; this push only rebases onto the current `main` (the own change is the same apart from context and commit-message wrapping). New: none. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
stijn-boer commented 2026-12-02 18:35:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by stijn-boer on 2026-12-02T18:35:16Z.


merge-check
base: c53e969602
head: 749629981c
verdict: not yet: the targeted console-list tests passed and the workspace and retail smoke runs ended early on both builds.

Windows / AMD RDNA4 (native D3D12) — console-list descriptor heap and ClearUAV checks on 7496299

Clean merge onto main at c53e969 (merge commit 9a615df349b2e3befa762ef1c37ac0c6dd816079). git diff --check was clean.

Setup

  • AMD Radeon RX 9060 XT (driver 32.0.32029.2010), Ryzen 7 5700X, Windows 10 21H2 build 19044.6332
  • Rust 1.100.0, debug builds, Agility SDK 1.620.2 with matching d3d12SDKLayers.dll, DXC 1.9.2609.5

Tested

cargo build --workspace passed. cargo test --workspace --no-fail-fast -- --test-threads=4 --show-output exited 101 on both builds. The baseline table row is from a prior run of the same commit, machine, SDK, and command.

Build Passed Failed Ignored SKIPPED notices
main 338 3 23 0
Merged PR 340 3 23 0

Counts are partial because two test processes aborted on each build.

  • Tests that failed on the PR and passed on main — none observed in comparable results.
  • Focused tests — the console-list module yielded 13 passed, 0 failed, 0 ignored, 0 skip notices with --test-threads=1 --show-output --nocapture. This includes the XCL_HEAP_WINDOWS=0 subprocess, descriptor-heap ordering before the root signature, and ClearUAV shared-slot selection and sampler rejection.
  • Debug-layer coverage — both debug-layer E2E tests, including DRED, and uploads_start_from_each_subresources_state passed.
Shared failures and process aborts
  • fuzz_validate_and_gpu_1, fuzz_validate_and_gpu_3, and two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs reported failures on both builds.
  • The library and gpu_compute_e2e test processes exited with 0xc0000409 on both builds.

Retail smoke

Ran scripts/smoke.ps1 -Game <local folder> -Seconds 60 -Xcl <debug binary> with XCL_UMA_DRIVER=mixed for title hash 2c508222.

Build Exit Frames logged Device removals logged Peak commit
main 0xc0000409 None 0 1320 MB
Merged PR, first attempt 0xc0000409 None 0 4911 MB
Merged PR, repeat from fresh data root 0xc0000409 None 0 1320 MB

The higher initial startup commit did not reproduce. These exits leave retail behavior unverified.

Diff review

The focused test recorded the descriptor-heap call ahead of the compute root signature. The ClearUAV test verified shared-slot preference, fallback, and sampler rejection.

Not tested

Remaining workspace tests after the aborts, retail performance, and pixel readback from a retail ClearUAV operation.

AI use

Codex (GPT-6) merged and built the PR, ran the tests, compared the results with main, reviewed the diff, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7354836820 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2518#issuecomment-7354836820). Originally posted by [stijn-boer](https://github.com/stijn-boer) on 2026-12-02T18:35:16Z. --- merge-check base: c53e96960265a82477a9c98677afb0402e98d486 head: 749629981cd551596b3a4111510ed508187e2d80 verdict: not yet: the targeted console-list tests passed and the workspace and retail smoke runs ended early on both builds. **Windows / AMD RDNA4 (native D3D12) — console-list descriptor heap and ClearUAV checks on `7496299`** Clean merge onto `main` at `c53e969` (merge commit `9a615df349b2e3befa762ef1c37ac0c6dd816079`). `git diff --check` was clean. **Setup** - AMD Radeon RX 9060 XT (driver 32.0.32029.2010), Ryzen 7 5700X, Windows 10 21H2 build 19044.6332 - Rust 1.100.0, debug builds, Agility SDK 1.620.2 with matching `d3d12SDKLayers.dll`, DXC 1.9.2609.5 **Tested** `cargo build --workspace` passed. `cargo test --workspace --no-fail-fast -- --test-threads=4 --show-output` exited 101 on both builds. The baseline table row is from a prior run of the same commit, machine, SDK, and command. | Build | Passed | Failed | Ignored | `SKIPPED` notices | |---|---:|---:|---:|---:| | `main` | 338 | 3 | 23 | 0 | | Merged PR | 340 | 3 | 23 | 0 | Counts are partial because two test processes aborted on each build. - **Tests that failed on the PR and passed on `main`** — none observed in comparable results. - **Focused tests** — the console-list module yielded 13 passed, 0 failed, 0 ignored, 0 skip notices with `--test-threads=1 --show-output --nocapture`. This includes the `XCL_HEAP_WINDOWS=0` subprocess, descriptor-heap ordering before the root signature, and ClearUAV shared-slot selection and sampler rejection. - **Debug-layer coverage** — both debug-layer E2E tests, including DRED, and `uploads_start_from_each_subresources_state` passed. <details><summary>Shared failures and process aborts</summary> - `fuzz_validate_and_gpu_1`, `fuzz_validate_and_gpu_3`, and `two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs` reported failures on both builds. - The library and `gpu_compute_e2e` test processes exited with `0xc0000409` on both builds. </details> **Retail smoke** Ran `scripts/smoke.ps1 -Game <local folder> -Seconds 60 -Xcl <debug binary>` with `XCL_UMA_DRIVER=mixed` for title hash `2c508222`. | Build | Exit | Frames logged | Device removals logged | Peak commit | |---|---|---|---:|---:| | `main` | `0xc0000409` | None | 0 | 1320 MB | | Merged PR, first attempt | `0xc0000409` | None | 0 | 4911 MB | | Merged PR, repeat from fresh data root | `0xc0000409` | None | 0 | 1320 MB | The higher initial startup commit did not reproduce. These exits leave retail behavior unverified. **Diff review** The focused test recorded the descriptor-heap call ahead of the compute root signature. The ClearUAV test verified shared-slot preference, fallback, and sampler rejection. **Not tested** Remaining workspace tests after the aborts, retail performance, and pixel readback from a retail ClearUAV operation. **AI use** Codex (GPT-6) merged and built the PR, ran the tests, compared the results with `main`, reviewed the diff, and drafted this report.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

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

Merge

Merge the changes and update on Forgejo.

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

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

No due date set.

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