D3D12.X: size two-pass indirect buffers from GPU feedback and finer buckets #2806

Merged
coolpersonnn merged 2 commits from upstream-pr/2816 into nvidia-dev 2026-11-28 00:36:19 +00:00
coolpersonnn commented 2026-11-26 14:22:50 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by coolpersonnn on 2026-11-26T14:22:50Z.


Size two-pass indirect mesh record buffers from async GPU group-count feedback and 256 KiB half-step buckets instead of worst-case static over-allocation.

Stacked on #2815; only the top commit belongs here.
Part of #2688

What is in it

  • crates/xcl/src/hle/d3d12x/alloc_pool.rs: poll poll_two_pass_feedback() during allocator reclaim/trim so completed GPU feedback counters update before new indirect draws size their buffers.
  • crates/xcl/src/hle/d3d12x/bind.rs:
    • Switch SCRATCH_BLOCK and RECORD_MIN to 256 << 10 (256 KiB) with finer half-step record_buffer_bytes buckets.
    • Eliminate cold-start clamping in indirect_record_need_hint so first-seen indirect PSOs keep full worst-case capacity rather than dropping initial geometry.
    • Track a 16-window FEEDBACK_HISTORY (ever_nonzero) in IndirectFeedbackSlot so active frustum-culled PSOs stay warm while truly unused PSOs decay down to 256 KiB (RECORD_MIN), and stop readback/feedback polling cleanly on FenceState::Removed (u64::MAX / q.Signal failure).
    • Add 2-dword header readback (FEEDBACK_HEADER_U32S = 2) reporting exact TP_INDIRECT_CLAMPED and TP_INDIRECT_GROUPS_DROPPED diagnostics, wire feedback into defer_execute_indirect, bound oversized buffer reuse to [need .. need * 2] in ensure_res_buffer, and add 4 unit/GPU tests (including matching gpu_two_pass_pooled_scratch_respects_remaining_budget WARP adapter expectations).
    • Diff size note (+757/-79 across the commit: 514 runtime lines via alloc_pool.rs +2 and bind.rs +465/-47, plus 322 test lines +290/-32): kept in one commit because the 256 KiB half-step buckets, IndirectFeedback readback/header clamp counters, HLSL scaling wiring, and removal/fence guards form one cohesive feedback-sizing change that would otherwise break git bisect across partial states.

Tested

  • Updated head 9ae803e3, RTX 5090: cargo build --offline --locked -j 8 --workspace succeeded. cargo test --offline --locked -j 8 --workspace --no-fail-fast -- --test-threads=4 --nocapture reported 1828 passed, 13 failed, 48 ignored, and 27 GPU skip notices. The failure names and counts match the earlier nvidia-dev baseline. The idle-pool regression passed.
  • Earlier head 4345fc85, RTX 5090: cargo build --offline --locked -j 6 --workspace succeeded. cargo test --offline --locked -j 6 --workspace --no-fail-fast -- --test-threads=4 --nocapture reported 1827 passed, 13 failed, 48 ignored, and 27 GPU skip notices (excluded from coverage). All failures match the test names and counts in the earlier nvidia-dev release baseline below.
  • Hardware / toolchain: NVIDIA GeForce RTX 5090 (driver 32.0.16.2101, 32187 MiB VRAM, wave32 / split wave64), WARP (software renderer), AMD Ryzen 9 9950X3D, Windows 11 Pro (10.0.26300), rustc 1.100.0 (0ef1bc386 2026-11-09), DXC 1.8.2502.11.
  • Targeted suite on clean 862b1ed1:
    • cargo test --offline --locked -p xcl --lib -- hle::d3d12x::bind hle::d3d12x::alloc_pool --test-threads=4 (NVIDIA + WARP): 72 passed; 0 failed (1 opt-in SKIPPED: hle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap: no heap windows (opt-in: XCL_HEAP_WINDOWS=1)).
    • With XCL_HEAP_WINDOWS=1: two_pass_binds_set_the_shared_view_heap 1 passed; 0 failed.
  • Clean workspace release build + test suite (cargo build --offline --locked --release --workspace && cargo test --offline --locked --release --workspace --no-fail-fast -- --test-threads=4) on RTX 5090:
    • 862b1ed1 (previous head): total_passed=1823, total_failed=13, total_ignored=48, skips=27 (xcl lib: 1696 passed; 7 failed; 28 ignored).
    • Baseline nvidia-dev (eae01502): total_passed=1812, total_failed=13, total_ignored=48, skips=27 (xcl lib: 1685 passed; 7 failed; 28 ignored).
    • Zero new failures: all 13 failures match pre-existing RTX 5090 baseline (fuzz_validate_and_gpu_{0,1,2,3}, gpu_compute_thread_limits_leave_the_lanes_past_them_out, texture_upload::{pieces_hold_the_texels_of_their_levels, gpu_parts_of_a_texture_go_up_and_the_rest_stays}, console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly, async_compute_pso_registers_real_pso_and_not_standin, split_compute_prefers_the_offline_whole_pipeline x2, two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs x2).
    • 27 SKIPPED GPU tests on RTX 5090: no wave64 (20), wave32, per-lane form: refused (3), no heap windows (2), cannot disable the driver cache (1), plus opt-in XCL_HEAP_WINDOWS=1 skip above (1).
  • 60 s retail startup smoke (scripts/smoke.ps1, title: a93b40d7, RTX 5090, XCL_PREPARE=0): 862b1ed1 produced 1666 frames (PresentX 1666), 0 device removals, 0 crashes, 16149 MB peak commit vs nvidia-dev eae01502 (1628 frames, 15793 MB peak commit) and main b49be183 (1654 frames, 16446 MB peak commit).

Regression run

xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 5090
title: a93b40d7
seconds: 60
exit: 0x0
frames shown: 1654 (PresentX 1654)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16446 MB
xcl-smoke v1
commit: 9ae803e3952b4e2f68c206ae34950e59b6b5fadd
gpu: NVIDIA GeForce RTX 5090
title: a93b40d7
seconds: 60
exit: 0x0
frames shown: 1626 (PresentX 1626)
presents per 2 s (last 3): 60 60 50
device removals: 0
crashes: 0
peak commit: 19471 MB

Not tested

  • Not tested on AMD GPUs (RDNA2/RDNA3/RDNA4); NVIDIA wave32 (split wave64) and WARP only.
  • Full workspace test sweep on WARP was run on nvidia-dev (eae01502) and the top of the stack (#2817), not separately on this intermediate commit (targeted bind + alloc_pool tests ran on both NVIDIA and WARP here).
  • The 60 s default smoke test stays on the startup/menu loop (0 two-pass draws); world loading and ExecuteIndirect(DispatchMesh) paths were verified in 120 s runs on top of the stack (#2817) using synthetic menu-advance inputs.

AI use

  • T3 Code / Antigravity (gemini-pro-orchestrator-neon) and Codex (GPT-6.2 Sol) wrote and reviewed the feedback-sizing fixes, tests, and PR description; all builds, tests, and smoke runs were executed directly on local hardware.
  • T3 Code, Codex (gpt-6.2-sol) reproduced and fixed the fence-accounting race, added the regression test, and reran validation on the revised stack.
  • T3 Code, Codex (gpt-6.2-sol) reproduced the idle-pool regression, applied the suggested fix and reran validation on the revised stack.
<!-- greyfinch-sync:ivall/xcl:issue:5511750244 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2816). Originally posted by [coolpersonnn](https://github.com/coolpersonnn) on 2026-11-26T14:22:50Z. --- Size two-pass indirect mesh record buffers from async GPU group-count feedback and 256 KiB half-step buckets instead of worst-case static over-allocation. Stacked on #2815; only the top commit belongs here. Part of #2688 **What is in it** - `crates/xcl/src/hle/d3d12x/alloc_pool.rs`: poll `poll_two_pass_feedback()` during allocator reclaim/trim so completed GPU feedback counters update before new indirect draws size their buffers. - `crates/xcl/src/hle/d3d12x/bind.rs`: - Switch `SCRATCH_BLOCK` and `RECORD_MIN` to `256 << 10` (256 KiB) with finer half-step `record_buffer_bytes` buckets. - Eliminate cold-start clamping in `indirect_record_need_hint` so first-seen indirect PSOs keep full worst-case capacity rather than dropping initial geometry. - Track a 16-window `FEEDBACK_HISTORY` (`ever_nonzero`) in `IndirectFeedbackSlot` so active frustum-culled PSOs stay warm while truly unused PSOs decay down to 256 KiB (`RECORD_MIN`), and stop readback/feedback polling cleanly on `FenceState::Removed` (`u64::MAX` / `q.Signal` failure). - Add 2-dword header readback (`FEEDBACK_HEADER_U32S = 2`) reporting exact `TP_INDIRECT_CLAMPED` and `TP_INDIRECT_GROUPS_DROPPED` diagnostics, wire feedback into `defer_execute_indirect`, bound oversized buffer reuse to `[need .. need * 2]` in `ensure_res_buffer`, and add 4 unit/GPU tests (including matching `gpu_two_pass_pooled_scratch_respects_remaining_budget` WARP adapter expectations). - Diff size note (`+757/-79` across the commit: `514` runtime lines via `alloc_pool.rs` `+2` and `bind.rs` `+465/-47`, plus `322` test lines `+290/-32`): kept in one commit because the 256 KiB half-step buckets, `IndirectFeedback` readback/header clamp counters, HLSL scaling wiring, and removal/fence guards form one cohesive feedback-sizing change that would otherwise break `git bisect` across partial states. **Tested** - Updated head `9ae803e3`, RTX 5090: `cargo build --offline --locked -j 8 --workspace` succeeded. `cargo test --offline --locked -j 8 --workspace --no-fail-fast -- --test-threads=4 --nocapture` reported 1828 passed, 13 failed, 48 ignored, and 27 GPU skip notices. The failure names and counts match the earlier `nvidia-dev` baseline. The idle-pool regression passed. - Earlier head `4345fc85`, RTX 5090: `cargo build --offline --locked -j 6 --workspace` succeeded. `cargo test --offline --locked -j 6 --workspace --no-fail-fast -- --test-threads=4 --nocapture` reported 1827 passed, 13 failed, 48 ignored, and 27 GPU skip notices (excluded from coverage). All failures match the test names and counts in the earlier `nvidia-dev` release baseline below. - Hardware / toolchain: NVIDIA GeForce RTX 5090 (driver `32.0.16.2101`, `32187 MiB` VRAM, wave32 / split wave64), WARP (software renderer), AMD Ryzen 9 9950X3D, Windows 11 Pro (`10.0.26300`), `rustc 1.100.0` (`0ef1bc386 2026-11-09`), DXC `1.8.2502.11`. - Targeted suite on clean `862b1ed1`: - `cargo test --offline --locked -p xcl --lib -- hle::d3d12x::bind hle::d3d12x::alloc_pool --test-threads=4` (NVIDIA + WARP): `72 passed; 0 failed` (`1` opt-in `SKIPPED`: `hle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap: no heap windows (opt-in: XCL_HEAP_WINDOWS=1)`). - With `XCL_HEAP_WINDOWS=1`: `two_pass_binds_set_the_shared_view_heap` `1 passed; 0 failed`. - Clean workspace release build + test suite (`cargo build --offline --locked --release --workspace && cargo test --offline --locked --release --workspace --no-fail-fast -- --test-threads=4`) on RTX 5090: - `862b1ed1` (previous head): `total_passed=1823, total_failed=13, total_ignored=48, skips=27` (`xcl` lib: `1696 passed; 7 failed; 28 ignored`). - Baseline `nvidia-dev` (`eae01502`): `total_passed=1812, total_failed=13, total_ignored=48, skips=27` (`xcl` lib: `1685 passed; 7 failed; 28 ignored`). - Zero new failures: all 13 failures match pre-existing RTX 5090 baseline (`fuzz_validate_and_gpu_{0,1,2,3}`, `gpu_compute_thread_limits_leave_the_lanes_past_them_out`, `texture_upload::{pieces_hold_the_texels_of_their_levels, gpu_parts_of_a_texture_go_up_and_the_rest_stays}`, `console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly`, `async_compute_pso_registers_real_pso_and_not_standin`, `split_compute_prefers_the_offline_whole_pipeline` x2, `two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs` x2). - 27 `SKIPPED` GPU tests on RTX 5090: `no wave64` (20), `wave32, per-lane form: refused` (3), `no heap windows` (2), `cannot disable the driver cache` (1), plus opt-in `XCL_HEAP_WINDOWS=1` skip above (1). - 60 s retail startup smoke (`scripts/smoke.ps1`, `title: a93b40d7`, RTX 5090, `XCL_PREPARE=0`): `862b1ed1` produced `1666` frames (`PresentX 1666`), `0` device removals, `0` crashes, `16149 MB` peak commit vs `nvidia-dev` `eae01502` (`1628` frames, `15793 MB` peak commit) and `main` `b49be183` (`1654` frames, `16446 MB` peak commit). **Regression run** ``` xcl-smoke v1 commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7 gpu: NVIDIA GeForce RTX 5090 title: a93b40d7 seconds: 60 exit: 0x0 frames shown: 1654 (PresentX 1654) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16446 MB ``` ``` xcl-smoke v1 commit: 9ae803e3952b4e2f68c206ae34950e59b6b5fadd gpu: NVIDIA GeForce RTX 5090 title: a93b40d7 seconds: 60 exit: 0x0 frames shown: 1626 (PresentX 1626) presents per 2 s (last 3): 60 60 50 device removals: 0 crashes: 0 peak commit: 19471 MB ``` **Not tested** - Not tested on AMD GPUs (RDNA2/RDNA3/RDNA4); NVIDIA wave32 (split wave64) and WARP only. - Full workspace test sweep on WARP was run on `nvidia-dev` (`eae01502`) and the top of the stack (#2817), not separately on this intermediate commit (targeted `bind` + `alloc_pool` tests ran on both NVIDIA and WARP here). - The 60 s default smoke test stays on the startup/menu loop (`0` two-pass draws); world loading and `ExecuteIndirect(DispatchMesh)` paths were verified in 120 s runs on top of the stack (#2817) using synthetic menu-advance inputs. **AI use** - T3 Code / Antigravity (`gemini-pro-orchestrator-neon`) and Codex (`GPT-6.2 Sol`) wrote and reviewed the feedback-sizing fixes, tests, and PR description; all builds, tests, and smoke runs were executed directly on local hardware. - T3 Code, Codex (`gpt-6.2-sol`) reproduced and fixed the fence-accounting race, added the regression test, and reran validation on the revised stack. - T3 Code, Codex (`gpt-6.2-sol`) reproduced the idle-pool regression, applied the suggested fix and reran validation on the revised stack.
DarkPanda69 commented 2026-11-26 14:56:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-26T14:56:43Z.


Update for head 9ae803e: clean. On nvidia-dev eae0150, bind + alloc_pool at --test-threads=4: RX 9070 XT 6 of 6 runs and RTX 3060 4 of 4 runs 74 passed, 0 failed.

Update for head 4345fc8: clean. On nvidia-dev eae0150, bind + alloc_pool at --test-threads=4: RX 9070 XT 6 of 6 runs and RTX 3060 4 of 4 runs 73 passed, 0 failed.

Update for head 862b1ed (with the lock_warp_tests change): applies on nvidia-dev eae0150 again. bind + alloc_pool at --test-threads=4: RX 9070 XT 6 of 6 runs and RTX 3060 4 of 4 runs 72 passed, 0 failed.

Update for head ebd9a37: the flake didn't show up. Tested at the PR head (base still af2cecc; the diff no longer applies on the newer nvidia-dev). hle::d3d12x::bind + alloc_pool at --test-threads=4: RX 9070 XT (XCL_ADAPTER=Radeon) 6 of 6 runs 49 passed, 0 failed; RTX 3060 4 of 4 the same; one thread 3 of 3. At f163cdc it failed in 1 of 6 and 1 of 4 runs, so with a rate that low this is only weak evidence the race is gone; on #2817 the change is clearer (4 of 6 runs failed before, 0 of 6 now).


AMD run (listed as untested), with an RTX 3060 in the same PC. Two of the new tests fail now and then on both cards when the tests run in parallel.

Tested: head f163cdc applied on its base nvidia-dev af2cecc, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, card picked with XCL_ADAPTER.
cargo test -p xcl --lib -- hle::d3d12x::bind hle::d3d12x::alloc_pool --test-threads=4, repeated:

  • AMD RX 9070 XT (RDNA4), driver 32.0.32029.2010: 1 of 6 runs failed (47 passed, 2 failed); the others 49 passed, 0 failed.
  • NVIDIA RTX 3060, driver 32.0.16.1088: 1 of 4 runs failed, same two tests.
  • gpu_scale_args_reports_uncapped_group_count_feedback and gpu_two_pass_pooled_scratch_respects_remaining_budget pass by name on both cards.

The two are indirect_feedback_waits_for_submit_before_copyback (bind.rs, assertion failed: !fb.dirty && !fb.copy_in_flight) and indirect_feedback_copyback_grows_on_clamp_and_decays_over_windows, which then panics on the poisoned FEEDBACK mutex. They fail more often on #2817, and the details are in my comment there. On one thread, #2817 passed 10 of 10 runs.

As on #2817, XCL_ADAPTER=radeon (lowercase) skips gpu_scale_args_reports_uncapped_group_count_feedback on this card with no D3D12 hardware adapter, because the name match is case-sensitive; Radeon runs it.

Not tested: a title run, release, XCL_HEAP_WINDOWS=1, Intel.

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

<!-- greyfinch-sync:ivall/xcl:comment:7195558596 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2816#issuecomment-7195558596). Originally posted by [DarkPanda69](https://github.com/DarkPanda69) on 2026-11-26T14:56:43Z. --- **Update for head `9ae803e`:** clean. On `nvidia-dev` `eae0150`, `bind` + `alloc_pool` at `--test-threads=4`: RX 9070 XT 6 of 6 runs and RTX 3060 4 of 4 runs 74 passed, 0 failed. **Update for head `4345fc8`:** clean. On `nvidia-dev` `eae0150`, `bind` + `alloc_pool` at `--test-threads=4`: RX 9070 XT 6 of 6 runs and RTX 3060 4 of 4 runs 73 passed, 0 failed. **Update for head `862b1ed`** (with the `lock_warp_tests` change): applies on `nvidia-dev` `eae0150` again. `bind` + `alloc_pool` at `--test-threads=4`: RX 9070 XT 6 of 6 runs and RTX 3060 4 of 4 runs 72 passed, 0 failed. **Update for head `ebd9a37`:** the flake didn't show up. Tested at the PR head (base still `af2cecc`; the diff no longer applies on the newer `nvidia-dev`). `hle::d3d12x::bind` + `alloc_pool` at `--test-threads=4`: RX 9070 XT (`XCL_ADAPTER=Radeon`) 6 of 6 runs 49 passed, 0 failed; RTX 3060 4 of 4 the same; one thread 3 of 3. At `f163cdc` it failed in 1 of 6 and 1 of 4 runs, so with a rate that low this is only weak evidence the race is gone; on #2817 the change is clearer (4 of 6 runs failed before, 0 of 6 now). --- AMD run (listed as untested), with an RTX 3060 in the same PC. Two of the new tests fail now and then on both cards when the tests run in parallel. **Tested:** head `f163cdc` applied on its base `nvidia-dev` `af2cecc`, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, card picked with `XCL_ADAPTER`. `cargo test -p xcl --lib -- hle::d3d12x::bind hle::d3d12x::alloc_pool --test-threads=4`, repeated: - AMD RX 9070 XT (RDNA4), driver 32.0.32029.2010: 1 of 6 runs failed (47 passed, 2 failed); the others 49 passed, 0 failed. - NVIDIA RTX 3060, driver 32.0.16.1088: 1 of 4 runs failed, same two tests. - `gpu_scale_args_reports_uncapped_group_count_feedback` and `gpu_two_pass_pooled_scratch_respects_remaining_budget` pass by name on both cards. The two are `indirect_feedback_waits_for_submit_before_copyback` (`bind.rs`, `assertion failed: !fb.dirty && !fb.copy_in_flight`) and `indirect_feedback_copyback_grows_on_clamp_and_decays_over_windows`, which then panics on the poisoned `FEEDBACK` mutex. They fail more often on #2817, and the details are in my comment there. On one thread, #2817 passed 10 of 10 runs. As on #2817, `XCL_ADAPTER=radeon` (lowercase) skips `gpu_scale_args_reports_uncapped_group_count_feedback` on this card with `no D3D12 hardware adapter`, because the name match is case-sensitive; `Radeon` runs it. **Not tested:** a title run, release, `XCL_HEAP_WINDOWS=1`, Intel. AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
jeremiahmvze commented 2026-11-26 15:03:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by jeremiahmvze on 2026-11-26T14:54:32Z.


Test note from porting this onto another nvidia-dev-based branch (the code applied cleanly after #2815): the new feedback tests are not safe to run in parallel.

  • cargo test -p xcl --lib bind:: -- --test-threads=1: 40 passed.
  • With 4 test threads, 1 to 3 of these fail on each run:
    • indirect_feedback_waits_for_submit_before_copyback
    • indirect_feedback_copyback_grows_on_clamp_and_decays_over_windows
    • gpu_scale_args_reports_uncapped_group_count_feedback (a panic on the FEEDBACK lock)

They all use the process-wide FEEDBACK / FEEDBACK_ACTIVE statics, so one test's entries and on/off state leak into another's. Holding one shared test mutex (or resetting FEEDBACK under a guard) in each of these tests should fix it.

Caveat: this was on our port, not on f163cdc0 itself, and on an RTX 4090. The runtime path isn't affected; it's only the tests.

<!-- greyfinch-sync:ivall/xcl:comment:7195507003 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2816#issuecomment-7195507003). Originally posted by [jeremiahmvze](https://github.com/jeremiahmvze) on 2026-11-26T14:54:32Z. --- Test note from porting this onto another `nvidia-dev`-based branch (the code applied cleanly after #2815): the new feedback tests are not safe to run in parallel. - `cargo test -p xcl --lib bind:: -- --test-threads=1`: 40 passed. - With 4 test threads, 1 to 3 of these fail on each run: - `indirect_feedback_waits_for_submit_before_copyback` - `indirect_feedback_copyback_grows_on_clamp_and_decays_over_windows` - `gpu_scale_args_reports_uncapped_group_count_feedback` (a panic on the `FEEDBACK` lock) They all use the process-wide `FEEDBACK` / `FEEDBACK_ACTIVE` statics, so one test's entries and on/off state leak into another's. Holding one shared test mutex (or resetting `FEEDBACK` under a guard) in each of these tests should fix it. Caveat: this was on our port, not on `f163cdc0` itself, and on an RTX 4090. The runtime path isn't affected; it's only the tests.
ettehn commented 2026-11-26 15:03:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ettehn on 2026-11-26T14:58:59Z.


Confirmed the parallel test failure on the exact head f163cdc0290ff3079e8a507f74ee11f24a4edad2 and checked a test-only fix. RTX 5070 Ti Laptop (12 GB, 621.24), Windows 11 x64 build 26200, Rust 1.97.1 MSVC, DXC 1.8.2502.11.

  • Stock bind::tests: 41 reported passed on one thread, including the default heap-window capability skip. In eight fresh runs at four threads, 3 aborted: indirect_feedback_waits_for_submit_before_copyback first asserted !fb.dirty && !fb.copy_in_flight, then the other feedback tests hit the poisoned mutex.
  • Local test-only change: take the existing lock_warp_tests() at the start of indirect_feedback_copyback_grows_on_clamp_and_decays_over_windows and gpu_scale_args_reports_uncapped_group_count_feedback; the submit-order test already takes it. With those two guards plus the separate fixture below, the four-thread bind suite passed 16/16 fresh runs (42 reported passed, 0 failed, 0 ignored each, including one default capability skip). The skipped two_pass_binds_set_the_shared_view_heap also passed separately with XCL_HEAP_WINDOWS=1, with no skip.
  • Native two-queue fixture: a gate held the producer queue while poll_two_pass_feedback scheduled the readback on a second DIRECT queue. Its copy fence stayed pending until the producer was released. After release, the existing clamped, zero-count and disabled cases read back encoded values 501, 1, and 0. The focused run passed 1/0/0 with no capability skips.

Base command: cargo test --locked --offline -p xcl --lib -j 2 hle::d3d12x::bind::tests -- --test-threads=1 --nocapture; repeats used the same harness with --test-threads=4. Synthetic tests only. OpenAI Codex (6.2sol) assisted with verification.

<!-- greyfinch-sync:ivall/xcl:comment:7195611203 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2816#issuecomment-7195611203). Originally posted by [ettehn](https://github.com/ettehn) on 2026-11-26T14:58:59Z. --- Confirmed the parallel test failure on the exact head `f163cdc0290ff3079e8a507f74ee11f24a4edad2` and checked a test-only fix. RTX 5070 Ti Laptop (12 GB, 621.24), Windows 11 x64 build 26200, Rust 1.97.1 MSVC, DXC 1.8.2502.11. - Stock `bind::tests`: 41 reported passed on one thread, including the default heap-window capability skip. In eight fresh runs at four threads, 3 aborted: `indirect_feedback_waits_for_submit_before_copyback` first asserted `!fb.dirty && !fb.copy_in_flight`, then the other feedback tests hit the poisoned mutex. - Local test-only change: take the existing `lock_warp_tests()` at the start of `indirect_feedback_copyback_grows_on_clamp_and_decays_over_windows` and `gpu_scale_args_reports_uncapped_group_count_feedback`; the submit-order test already takes it. With those two guards plus the separate fixture below, the four-thread bind suite passed **16/16** fresh runs (42 reported passed, 0 failed, 0 ignored each, including one default capability skip). The skipped `two_pass_binds_set_the_shared_view_heap` also passed separately with `XCL_HEAP_WINDOWS=1`, with no skip. - Native two-queue fixture: a gate held the producer queue while `poll_two_pass_feedback` scheduled the readback on a second `DIRECT` queue. Its copy fence stayed pending until the producer was released. After release, the existing clamped, zero-count and disabled cases read back encoded values `501`, `1`, and `0`. The focused run passed 1/0/0 with no capability skips. Base command: `cargo test --locked --offline -p xcl --lib -j 2 hle::d3d12x::bind::tests -- --test-threads=1 --nocapture`; repeats used the same harness with `--test-threads=4`. Synthetic tests only. OpenAI Codex (6.2sol) assisted with verification.
Aniseto commented 2026-11-26 16:06:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-26T15:54:27Z.


Ran the two-pass indirect feedback tests at f163cdc serially on a second Blackwell desktop part after the thread reported parallel-only flakes on this exact head:

System

  • GPU: NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, mesh shaders, 16 GB), driver 32.0.16.2124
  • CPU: Intel Core i5-12400F, 64 GB RAM
  • OS: Windows 11 Pro build 26200 x64
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5
  • Build: debug

Results

  • XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::alloc_pool -- --test-threads=1: 8 passed, 0 failed, 0 ignored (1647 filtered out, exit 0)
  • XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind -- --test-threads=1: 41 passed, 0 failed, 0 ignored (1614 filtered out, exit 0)
  • XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind::tests::gpu_scale_args_reports_uncapped_group_count_feedback -- --exact --nocapture: 1 passed, 0 failed, 0 ignored (1654 filtered out, exit 0)

What this adds
The author listed an RTX 5090 32 GB (driver 621.01, DXC 1.8.2502.11) and ettehn reported an RTX 5070 Ti Laptop 12 GB (driver 621.24, rustc 1.97). This adds a desktop 5070 Ti 16 GB on driver 32.0.16.2124 with rustc 1.100.0 and DXC 1.9.2609.5. I used --test-threads=1 because the thread reports parallel-only flakes on this head. Both feedback unit tests and the real-adapter gpu_scale_args_reports_uncapped_group_count_feedback test pass here; the latter logged 1 indirect clamped, so the clamp-growth path was exercised on hardware. An earlier --test-threads=4 run of the same filters also passed, but two GPU tests were skipped there because I used a lowercase adapter selector; the serial run above used the exact case and executed them.

Not tested
Native wave64 (this part only has 32-lane waves), AMD and Intel GPUs, WARP, XCL_HEAP_WINDOWS=1 (two_pass_binds_set_the_shared_view_heap was SKIPPED for that reason), the full workspace suite, a paired smoke run, release profile, Wine, a retail title, game data. I did not repeat the author's timing benchmark.

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

<!-- greyfinch-sync:ivall/xcl:comment:7196912609 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2816#issuecomment-7196912609). Originally posted by [Aniseto](https://github.com/Aniseto) on 2026-11-26T15:54:27Z. --- Ran the two-pass indirect feedback tests at `f163cdc` serially on a second Blackwell desktop part after the thread reported parallel-only flakes on this exact head: **System** - GPU: NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, mesh shaders, 16 GB), driver 32.0.16.2124 - CPU: Intel Core i5-12400F, 64 GB RAM - OS: Windows 11 Pro build 26200 x64 - Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5 - Build: debug **Results** - `XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::alloc_pool -- --test-threads=1`: 8 passed, 0 failed, 0 ignored (1647 filtered out, exit 0) - `XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind -- --test-threads=1`: 41 passed, 0 failed, 0 ignored (1614 filtered out, exit 0) - `XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind::tests::gpu_scale_args_reports_uncapped_group_count_feedback -- --exact --nocapture`: 1 passed, 0 failed, 0 ignored (1654 filtered out, exit 0) **What this adds** The author listed an RTX 5090 32 GB (driver 621.01, DXC 1.8.2502.11) and ettehn reported an RTX 5070 Ti Laptop 12 GB (driver 621.24, rustc 1.97). This adds a desktop 5070 Ti 16 GB on driver 32.0.16.2124 with rustc 1.100.0 and DXC 1.9.2609.5. I used `--test-threads=1` because the thread reports parallel-only flakes on this head. Both feedback unit tests and the real-adapter `gpu_scale_args_reports_uncapped_group_count_feedback` test pass here; the latter logged `1 indirect clamped`, so the clamp-growth path was exercised on hardware. An earlier `--test-threads=4` run of the same filters also passed, but two GPU tests were skipped there because I used a lowercase adapter selector; the serial run above used the exact case and executed them. **Not tested** Native wave64 (this part only has 32-lane waves), AMD and Intel GPUs, WARP, `XCL_HEAP_WINDOWS=1` (`two_pass_binds_set_the_shared_view_heap` was SKIPPED for that reason), the full workspace suite, a paired smoke run, release profile, Wine, a retail title, game data. I did not repeat the author's timing benchmark. AI-assisted (OpenCode), model: **DeepSeek V4.1 Flash Free** - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
GodlyBDS commented 2026-11-26 16:30:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by GodlyBDS on 2026-11-26T16:30:49Z.


@coolpersonnn I reproduced a second fence-ordering case on exact nvidia-dev PR head f163cdc0290ff3079e8a507f74ee11f24a4edad2. Feedback readback keeps its own pending_fences alongside #2815's two-pass buffer retention marks. Both receive submit notifications after the allocator bookkeeping lock is released.

The focused fixture delivers q0=15, q1=2, then delayed q0=10 through two_pass_submitted and schedules the readback on a third queue. The original code generates waits for 10 and 2. With the maximum retained per queue, it waits for 15 and 2. With q0 complete at 13, the original mark therefore permits the readback and clear before the newer producer is confirmed complete.

Results on Windows 10 19045, RTX 3090 Ti host, driver 621.40, rustc 1.98.1 MSVC. The test uses a WARP allocation and synthetic fence values. It inspects the actual scheduled wait list, without executing the copy.

  • Head + test only: 0 passed, 1 failed, 0 ignored, 0 skips. Observed Some(10).
  • Head + test + per-queue maximum: 1 passed, 0 failed, 0 ignored, 0 skips.

cargo test --offline --locked --jobs 4 -p xcl --lib feedback_copy_waits_for_the_newest_submit_on_each_other_queue -- --test-threads=1 --nocapture

The result establishes the stale readback dependency. Its effects on observed clamp counts, scene completeness, and device removal remain unmeasured. Codex (OpenAI GPT-6 family) wrote and executed the fixture and minimal correction.

Focused patch
diff --git a/crates/xcl/src/hle/d3d12x/bind.rs b/crates/xcl/src/hle/d3d12x/bind.rs
index 7f2a8e8d..4e46301d 100644
--- a/crates/xcl/src/hle/d3d12x/bind.rs
+++ b/crates/xcl/src/hle/d3d12x/bind.rs
@@ -1268,8 +1268,11 @@ fn mark_indirect_feedback_used(dev_key: usize, fb_slot: u32, cap: u32, queue: us
             fb.dirty = true;
             if let Some((f, v)) = fence {
                 if let Some(m) = fb.pending_fences.iter_mut().find(|(q, ..)| *q == queue) {
-                    m.1 = f.clone();
-                    m.2 = v;
+                    // The submit bookkeeping lock is released before these notifications.
+                    if v > m.2 {
+                        m.1 = f.clone();
+                        m.2 = v;
+                    }
                 } else {
                     fb.pending_fences.push((queue, f.clone(), v));
                 }
@@ -4949,6 +4952,41 @@ void ms(uint3 g : SV_GroupID) { o.Store((v * 16u + g.x) * 4u, rec.Load(g.x * 4u)
         }
     }
 
+    #[test]
+    fn feedback_copy_waits_for_the_newest_submit_on_each_other_queue() {
+        let _warp_guard = lock_warp_tests();
+        let Some(dev) = warp_device_for_test() else { return };
+        let dev_key = dev.as_raw() as usize;
+        let ids = Box::new([0u8; 4]);
+        let list = ids.as_ptr() as *mut c_void;
+        let q0 = (ids.as_ptr() as usize + 1) as *mut c_void;
+        let q1 = (ids.as_ptr() as usize + 2) as *mut c_void;
+        let copy_queue = ids.as_ptr() as usize + 3;
+        let (f0, _) = make_test_fence(13);
+        let (f1, _) = make_test_fence(1);
+
+        let (target0, target1) = unsafe {
+            reset(list, 0, 0);
+            let (_, slot, _) = prepare_indirect_feedback(&dev, 0x7700_0003).unwrap();
+            with(list, |s| s.fb_uses.push((dev_key, slot, 64)));
+            track_two_pass_list(list as usize);
+            two_pass_submitted(q0, Some(&f0), 15, &[list]);
+            two_pass_submitted(q1, Some(&f1), 2, &[list]);
+            two_pass_submitted(q0, Some(&f0), 10, &[list]);
+
+            let mut feedback = FEEDBACK.lock().unwrap().as_mut().unwrap().remove(&dev_key).unwrap();
+            let (_, _, _, waits) = feedback.schedule_copy(copy_queue).unwrap();
+            let target = |fence: &ID3D12Fence| {
+                waits.iter().find(|(f, _)| f.as_raw() == fence.as_raw()).map(|(_, value)| *value)
+            };
+            untrack_two_pass_list(list as usize);
+            forget(list);
+            (target(&f0), target(&f1))
+        };
+        assert_eq!(target1, Some(2));
+        assert_eq!(target0, Some(15), "copy and clear must wait for the newer producer");
+    }
+
     #[test]
     fn indirect_feedback_waits_for_submit_before_copyback() {
         let _warp_guard = lock_warp_tests();
<!-- greyfinch-sync:ivall/xcl:comment:7197743511 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2816#issuecomment-7197743511). Originally posted by [GodlyBDS](https://github.com/GodlyBDS) on 2026-11-26T16:30:49Z. --- @coolpersonnn I reproduced a second fence-ordering case on exact `nvidia-dev` PR head `f163cdc0290ff3079e8a507f74ee11f24a4edad2`. Feedback readback keeps its own `pending_fences` alongside #2815's two-pass buffer retention marks. Both receive submit notifications after the allocator bookkeeping lock is released. The focused fixture delivers q0=15, q1=2, then delayed q0=10 through `two_pass_submitted` and schedules the readback on a third queue. The original code generates waits for 10 and 2. With the maximum retained per queue, it waits for 15 and 2. With q0 complete at 13, the original mark therefore permits the readback and clear before the newer producer is confirmed complete. Results on Windows 10 19045, RTX 3090 Ti host, driver 621.40, rustc 1.98.1 MSVC. The test uses a WARP allocation and synthetic fence values. It inspects the actual scheduled wait list, without executing the copy. - Head + test only: 0 passed, 1 failed, 0 ignored, 0 skips. Observed `Some(10)`. - Head + test + per-queue maximum: 1 passed, 0 failed, 0 ignored, 0 skips. `cargo test --offline --locked --jobs 4 -p xcl --lib feedback_copy_waits_for_the_newest_submit_on_each_other_queue -- --test-threads=1 --nocapture` The result establishes the stale readback dependency. Its effects on observed clamp counts, scene completeness, and device removal remain unmeasured. Codex (OpenAI GPT-6 family) wrote and executed the fixture and minimal correction. <details><summary>Focused patch</summary> ~~~diff diff --git a/crates/xcl/src/hle/d3d12x/bind.rs b/crates/xcl/src/hle/d3d12x/bind.rs index 7f2a8e8d..4e46301d 100644 --- a/crates/xcl/src/hle/d3d12x/bind.rs +++ b/crates/xcl/src/hle/d3d12x/bind.rs @@ -1268,8 +1268,11 @@ fn mark_indirect_feedback_used(dev_key: usize, fb_slot: u32, cap: u32, queue: us fb.dirty = true; if let Some((f, v)) = fence { if let Some(m) = fb.pending_fences.iter_mut().find(|(q, ..)| *q == queue) { - m.1 = f.clone(); - m.2 = v; + // The submit bookkeeping lock is released before these notifications. + if v > m.2 { + m.1 = f.clone(); + m.2 = v; + } } else { fb.pending_fences.push((queue, f.clone(), v)); } @@ -4949,6 +4952,41 @@ void ms(uint3 g : SV_GroupID) { o.Store((v * 16u + g.x) * 4u, rec.Load(g.x * 4u) } } + #[test] + fn feedback_copy_waits_for_the_newest_submit_on_each_other_queue() { + let _warp_guard = lock_warp_tests(); + let Some(dev) = warp_device_for_test() else { return }; + let dev_key = dev.as_raw() as usize; + let ids = Box::new([0u8; 4]); + let list = ids.as_ptr() as *mut c_void; + let q0 = (ids.as_ptr() as usize + 1) as *mut c_void; + let q1 = (ids.as_ptr() as usize + 2) as *mut c_void; + let copy_queue = ids.as_ptr() as usize + 3; + let (f0, _) = make_test_fence(13); + let (f1, _) = make_test_fence(1); + + let (target0, target1) = unsafe { + reset(list, 0, 0); + let (_, slot, _) = prepare_indirect_feedback(&dev, 0x7700_0003).unwrap(); + with(list, |s| s.fb_uses.push((dev_key, slot, 64))); + track_two_pass_list(list as usize); + two_pass_submitted(q0, Some(&f0), 15, &[list]); + two_pass_submitted(q1, Some(&f1), 2, &[list]); + two_pass_submitted(q0, Some(&f0), 10, &[list]); + + let mut feedback = FEEDBACK.lock().unwrap().as_mut().unwrap().remove(&dev_key).unwrap(); + let (_, _, _, waits) = feedback.schedule_copy(copy_queue).unwrap(); + let target = |fence: &ID3D12Fence| { + waits.iter().find(|(f, _)| f.as_raw() == fence.as_raw()).map(|(_, value)| *value) + }; + untrack_two_pass_list(list as usize); + forget(list); + (target(&f0), target(&f1)) + }; + assert_eq!(target1, Some(2)); + assert_eq!(target0, Some(15), "copy and clear must wait for the newer producer"); + } + #[test] fn indirect_feedback_waits_for_submit_before_copyback() { let _warp_guard = lock_warp_tests(); ~~~ </details>
Aniseto commented 2026-11-26 16:47:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-26T16:47:36Z.


Re-ran the two-pass feedback tests at ebd9a37 after the head moved from f163cdc; this is a new response in the same thread, not an edit of my earlier report:

System

  • GPU: NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, mesh shaders, 16 GB), driver 32.0.16.2124
  • CPU: Intel Core i5-12400F, 64 GB RAM
  • OS: Windows 11 Pro build 26200 x64
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5
  • Build: debug

Results

  • XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::alloc_pool -- --test-threads=1: 8 passed, 0 failed, 0 ignored (1647 filtered out, exit 0)
  • XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind -- --test-threads=1: 41 passed, 0 failed, 0 ignored (1614 filtered out, exit 0); two_pass_binds_set_the_shared_view_heap SKIPPED (opt-in XCL_HEAP_WINDOWS=1)
  • XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind::tests::gpu_scale_args_reports_uncapped_group_count_feedback -- --exact --nocapture --test-threads=1: 1 passed, 0 failed, 0 ignored (1654 filtered out, exit 0)

What this adds
Since my earlier report at f163cdc the head changed by 79 lines in bind.rs and 2 in README. The counts on this host are unchanged (8/41/1 and the same single skip), and the GPU feedback test was re-executed on the real adapter at this head. This is my second report in the thread and a new response, as required for a changed head.

Not tested
XCL_HEAP_WINDOWS=1, the full workspace suite, a paired smoke run, a real stalled sparse queue, release profile, AMD and Intel GPUs, native wave64, Wine, game data.

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

<!-- greyfinch-sync:ivall/xcl:comment:7198101975 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2816#issuecomment-7198101975). Originally posted by [Aniseto](https://github.com/Aniseto) on 2026-11-26T16:47:36Z. --- Re-ran the two-pass feedback tests at `ebd9a37` after the head moved from `f163cdc`; this is a new response in the same thread, not an edit of my earlier report: **System** - GPU: NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, mesh shaders, 16 GB), driver 32.0.16.2124 - CPU: Intel Core i5-12400F, 64 GB RAM - OS: Windows 11 Pro build 26200 x64 - Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5 - Build: debug **Results** - `XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::alloc_pool -- --test-threads=1`: 8 passed, 0 failed, 0 ignored (1647 filtered out, exit 0) - `XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind -- --test-threads=1`: 41 passed, 0 failed, 0 ignored (1614 filtered out, exit 0); `two_pass_binds_set_the_shared_view_heap` SKIPPED (opt-in `XCL_HEAP_WINDOWS=1`) - `XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind::tests::gpu_scale_args_reports_uncapped_group_count_feedback -- --exact --nocapture --test-threads=1`: 1 passed, 0 failed, 0 ignored (1654 filtered out, exit 0) **What this adds** Since my earlier report at `f163cdc` the head changed by 79 lines in `bind.rs` and 2 in README. The counts on this host are unchanged (8/41/1 and the same single skip), and the GPU feedback test was re-executed on the real adapter at this head. This is my second report in the thread and a new response, as required for a changed head. **Not tested** `XCL_HEAP_WINDOWS=1`, the full workspace suite, a paired smoke run, a real stalled sparse queue, release profile, AMD and Intel GPUs, native wave64, Wine, game data. AI-assisted (OpenCode), model: **DeepSeek V4.1 Flash Free** - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
pvfreis commented 2026-11-26 16:48:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by pvfreis on 2026-11-26T16:48:11Z.


By reading only, not run, at ebd9a37b:

A two-pass ExecuteIndirect can draw fewer groups than at the base, and the draw is counted as run. The base asked for INDIRECT_RECORDS (32 MiB) of records every time. Here indirect_record_need_hint (bind.rs:1034-1040, used at :1788) asks for 4 MiB on a pipeline with no feedback yet, 256 KiB when its recent windows had zero groups, and otherwise twice the largest count of the last four windows. SCALE_ARGS_HLSL still cuts each command to what fits (:1451). For the 47,632 B record of the sizing test that is 704 groups a command at the base, and 88 (cold) or 5 (after zeros) here, unless the list already holds a larger buffer. The hint grows only from the readback of a submit that was already cut (apply_window, :1069; polled per submit, alloc_pool.rs:295, :342), and for a pipeline with history readbacks are at least 250 ms apart (:1201). Until then the groups past the cap are not drawn. The draw is counted under DRAWS (:1824), not DRAWS_SKIPPED; only indirect clamped shows it, as a count of windows, not of groups. The PR's test asserts the cut (case A: 500 groups, 16 drawn). #2688 asks that a saving does not come from skipping work the title asked for, so the indirect clamped count of the world runs belongs next to the skip counts. throny's stack runs on #2817 logged 53 and 189 (there #2817's shrink can clamp too).

AI use: Claude Code; Claude Opus 5.5 wrote it, Claude Fable 5.2 rechecked it

<!-- greyfinch-sync:ivall/xcl:comment:7198114203 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2816#issuecomment-7198114203). Originally posted by [pvfreis](https://github.com/pvfreis) on 2026-11-26T16:48:11Z. --- By reading only, not run, at `ebd9a37b`: **A two-pass `ExecuteIndirect` can draw fewer groups than at the base, and the draw is counted as run.** The base asked for `INDIRECT_RECORDS` (32 MiB) of records every time. Here `indirect_record_need_hint` (`bind.rs:1034-1040`, used at `:1788`) asks for 4 MiB on a pipeline with no feedback yet, 256 KiB when its recent windows had zero groups, and otherwise twice the largest count of the last four windows. `SCALE_ARGS_HLSL` still cuts each command to what fits (`:1451`). For the 47,632 B record of the sizing test that is 704 groups a command at the base, and 88 (cold) or 5 (after zeros) here, unless the list already holds a larger buffer. The hint grows only from the readback of a submit that was already cut (`apply_window`, `:1069`; polled per submit, `alloc_pool.rs:295`, `:342`), and for a pipeline with history readbacks are at least 250 ms apart (`:1201`). Until then the groups past the cap are not drawn. The draw is counted under `DRAWS` (`:1824`), not `DRAWS_SKIPPED`; only `indirect clamped` shows it, as a count of windows, not of groups. The PR's test asserts the cut (case A: 500 groups, 16 drawn). #2688 asks that a saving does not come from skipping work the title asked for, so the `indirect clamped` count of the world runs belongs next to the skip counts. throny's stack runs on #2817 logged 53 and 189 (there #2817's shrink can clamp too). AI use: Claude Code; Claude Opus 5.5 wrote it, Claude Fable 5.2 rechecked it
Decodere commented 2026-11-26 19:44:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-26T19:44:35Z.


Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2816 updated head 862b1ed1e7993ee0cab3ef19e33796a97b18c569 (2 commits on merge-base nvidia-dev eae015021c639866ab061cdff2e9daf8ba9daac5; stacked on exact parent PR #2815 42532264a221ac975b745b01097bf751e0e56712). Measurements and targeted GPU/unit test results only; not a full source review.

Setup

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

Targeted RTX 4060 release unit & GPU tests (862b1ed1)

  • cargo test --release -p xcl --lib gpu_scale_args_reports_uncapped_group_count_feedback -- --nocapture: 1 passed, 0 failed, 0 ignored (0.24 s, executed on RTX 4060, 0 SKIPPED).
  • cargo test --release -p xcl --lib indirect_feedback_copyback_grows_on_clamp_and_decays_over_windows -- --nocapture: 1 passed, 0 failed, 0 ignored (0.03 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib indirect_feedback_waits_for_submit_before_copyback -- --nocapture: 1 passed, 0 failed, 0 ignored (0.03 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib indirect_feedback_ignores_readback_after_device_removal -- --nocapture: 1 passed, 0 failed, 0 ignored (0.02 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib hle::d3d12x::bind:: -- --test-threads=4 (3 consecutive parallel passes — confirming the lock_warp_tests fix for the earlier --test-threads=4 indirect_feedback_* race): 64 passed, 0 failed, 0 ignored on all 3 passes (0.30 s / 0.30 s / 0.31 s; 1 opt-in SKIPPED notice per run: two_pass_binds_set_the_shared_view_heap skipped without XCL_HEAP_WINDOWS=1).
  • cargo test --release -p xcl --lib hle::d3d12x::alloc_pool:: -- --test-threads=4 (3 consecutive parallel passes): 8 passed, 0 failed, 0 ignored on all 3 passes (0.21 s / 0.20 s / 0.20 s, 0 SKIPPED).

Paired 60 s RTX 4060 smoke (eae01502 / #2815 42532264 vs #2816 862b1ed1)

All three runs completed cleanly at steady 60/2 s pacing with 0 device removals and 0 crashes (862b1ed1 xcl.log: 6,180 / 6,118 MB peak/end local VRAM, 4,811 MB end non-local VRAM, 19,148 translated draws / 1,024 dispatches with 0 skipped; note 0 two-pass buffer/draw log lines fired during this 60 s menu smoke, so single-run commit differences should not be attributed to two-pass feedback sizing).

Merge-base nvidia-dev (eae01502):

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

Exact parent PR #2815 (42532264):

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

PR #2816 head (862b1ed1):

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

Limits of coverage

  • Full workspace test suite was not run on 862b1ed1 (only the 4 targeted tests individually, 3 parallel --test-threads=4 passes each of bind:: and alloc_pool::, release build, and stacked 60 s smokes); two_pass_binds_set_the_shared_view_heap skipped without opt-in XCL_HEAP_WINDOWS=1.
  • The 60 s no-input menu/intro smoke did not exercise heavy in-world indirect two-pass draw streams (0 two-pass log lines); GPU feedback writeback, clamping, and window decay were verified via gpu_scale_args_reports_uncapped_group_count_feedback and the 3 indirect_feedback_* tests above.
  • Single discrete NVIDIA 8 GB GPU (RTX 4060) on native Windows 11; no AMD, Intel, or Wine/Linux run on this host.

AI use

Ran the targeted release GPU/unit tests (including 3× --test-threads=4 concurrency checks), release build, and stacked quiet 60 s smoke runs with assistance from Google Antigravity (Gemini 4 Neon); all test counts, timings, memory figures, and smoke blocks were extracted directly from cargo test, xcl.log, and scripts/smoke.ps1 outputs.

<!-- greyfinch-sync:ivall/xcl:comment:7201913657 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2816#issuecomment-7201913657). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-26T19:44:35Z. --- **Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2816 updated head `862b1ed1e7993ee0cab3ef19e33796a97b18c569`** (2 commits on merge-base `nvidia-dev` `eae015021c639866ab061cdff2e9daf8ba9daac5`; stacked on exact parent PR #2815 `42532264a221ac975b745b01097bf751e0e56712`). Measurements and targeted GPU/unit test results only; not a full source review. ### Setup - **GPU:** NVIDIA GeForce RTX 4060 (8 GB / `7956 MiB` reported by D3D12), driver `32.0.16.2114` (NVIDIA `621.14`, WDDM 3.2) - **CPU / RAM / OS:** Intel Core i5-11400F (6 cores / 12 threads), 32 GB RAM (`31.9 GiB` usable), Windows 11 Home `26200` - **Toolchain / caches:** `rustc 1.100.0 (0ef1bc386 2026-11-09)`, DXC `1.9.2609.5`, release builds, warm DXIL/pipeline caches, quiet machine (zero concurrent builds/tests during timed runs) - **Workload:** Retail workload `title: 29640639` via `scripts/smoke.ps1 -Seconds 60` (`XCL_NETWORK=0`, default flags, no input) ### Targeted RTX 4060 release unit & GPU tests (`862b1ed1`) - `cargo test --release -p xcl --lib gpu_scale_args_reports_uncapped_group_count_feedback -- --nocapture`: **1 passed, 0 failed, 0 ignored** (`0.24 s`, executed on RTX 4060, `0` `SKIPPED`). - `cargo test --release -p xcl --lib indirect_feedback_copyback_grows_on_clamp_and_decays_over_windows -- --nocapture`: **1 passed, 0 failed, 0 ignored** (`0.03 s`, `0` `SKIPPED`). - `cargo test --release -p xcl --lib indirect_feedback_waits_for_submit_before_copyback -- --nocapture`: **1 passed, 0 failed, 0 ignored** (`0.03 s`, `0` `SKIPPED`). - `cargo test --release -p xcl --lib indirect_feedback_ignores_readback_after_device_removal -- --nocapture`: **1 passed, 0 failed, 0 ignored** (`0.02 s`, `0` `SKIPPED`). - `cargo test --release -p xcl --lib hle::d3d12x::bind:: -- --test-threads=4` (3 consecutive parallel passes — confirming the `lock_warp_tests` fix for the earlier `--test-threads=4` `indirect_feedback_*` race): **64 passed, 0 failed, 0 ignored** on all 3 passes (`0.30 s` / `0.30 s` / `0.31 s`; `1` opt-in `SKIPPED` notice per run: `two_pass_binds_set_the_shared_view_heap` skipped without `XCL_HEAP_WINDOWS=1`). - `cargo test --release -p xcl --lib hle::d3d12x::alloc_pool:: -- --test-threads=4` (3 consecutive parallel passes): **8 passed, 0 failed, 0 ignored** on all 3 passes (`0.21 s` / `0.20 s` / `0.20 s`, `0` `SKIPPED`). ### Paired 60 s RTX 4060 smoke (`eae01502` / `#2815` `42532264` vs `#2816` `862b1ed1`) All three runs completed cleanly at steady 60/2 s pacing with `0` device removals and `0` crashes (`862b1ed1` `xcl.log`: `6,180` / `6,118 MB` peak/end local VRAM, `4,811 MB` end non-local VRAM, `19,148` translated draws / `1,024` dispatches with `0` skipped; note `0` two-pass buffer/draw log lines fired during this 60 s menu smoke, so single-run commit differences should not be attributed to two-pass feedback sizing). Merge-base `nvidia-dev` (`eae01502`): ``` xcl-smoke v1 commit: eae015021c639866ab061cdff2e9daf8ba9daac5 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1551 (PresentX 1551) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15926 MB ``` Exact parent PR #2815 (`42532264`): ``` xcl-smoke v1 commit: 42532264a221ac975b745b01097bf751e0e56712 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1557 (PresentX 1557) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15436 MB ``` PR #2816 head (`862b1ed1`): ``` xcl-smoke v1 commit: 862b1ed1e7993ee0cab3ef19e33796a97b18c569 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1591 (PresentX 1591) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14994 MB ``` ### Limits of coverage - Full workspace test suite was not run on `862b1ed1` (only the 4 targeted tests individually, 3 parallel `--test-threads=4` passes each of `bind::` and `alloc_pool::`, release build, and stacked 60 s smokes); `two_pass_binds_set_the_shared_view_heap` skipped without opt-in `XCL_HEAP_WINDOWS=1`. - The 60 s no-input menu/intro smoke did not exercise heavy in-world indirect two-pass draw streams (`0` two-pass log lines); GPU feedback writeback, clamping, and window decay were verified via `gpu_scale_args_reports_uncapped_group_count_feedback` and the 3 `indirect_feedback_*` tests above. - Single discrete NVIDIA 8 GB GPU (`RTX 4060`) on native Windows 11; no AMD, Intel, or Wine/Linux run on this host. ### AI use Ran the targeted release GPU/unit tests (including 3× `--test-threads=4` concurrency checks), release build, and stacked quiet 60 s smoke runs with assistance from Google Antigravity (Gemini 4 Neon); all test counts, timings, memory figures, and smoke blocks were extracted directly from `cargo test`, `xcl.log`, and `scripts/smoke.ps1` outputs.
pvfreis commented 2026-11-26 20:10:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by pvfreis on 2026-11-26T20:10:15Z.


Follow-up, by reading only, not run, at 862b1ed1: addressed. A pipeline with no feedback yet now asks for the full indirect_record_need again, as at the base (indirect_record_need_hint, None), and the summary line now reports the clamped commands and the groups they dropped (TP_INDIRECT_CLAMPED / TP_INDIRECT_GROUPS_DROPPED, added in SCALE_ARGS_HLSL to the feedback header and read back in consume_completed). What remains: a pipeline whose windows were all zero still asks for RECORD_MIN (256 KiB) until its first non-zero readback, and one with history for twice the largest count of its last 16 windows; cuts from either now show in the groups-dropped total.

AI use: Claude Code; Claude Opus 5.5 wrote it, Claude Fable 5.2 rechecked it; checked by a person before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7202376341 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2816#issuecomment-7202376341). Originally posted by [pvfreis](https://github.com/pvfreis) on 2026-11-26T20:10:15Z. --- Follow-up, by reading only, not run, at `862b1ed1`: addressed. A pipeline with no feedback yet now asks for the full `indirect_record_need` again, as at the base (`indirect_record_need_hint`, `None`), and the summary line now reports the clamped commands and the groups they dropped (`TP_INDIRECT_CLAMPED` / `TP_INDIRECT_GROUPS_DROPPED`, added in `SCALE_ARGS_HLSL` to the feedback header and read back in `consume_completed`). What remains: a pipeline whose windows were all zero still asks for `RECORD_MIN` (256 KiB) until its first non-zero readback, and one with history for twice the largest count of its last 16 windows; cuts from either now show in the groups-dropped total. AI use: Claude Code; Claude Opus 5.5 wrote it, Claude Fable 5.2 rechecked it; checked by a person before posting.
Aniseto commented 2026-11-26 20:26:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-26T20:26:52Z.


Re-ran the two-pass feedback tests at 862b1ed after the head moved from ebd9a37; this is a new response in the same thread, not an edit of my earlier reports:

System

  • GPU: NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, mesh shaders, 16 GB), driver 32.0.16.2124
  • CPU: Intel Core i5-12400F, 64 GB RAM
  • OS: Windows 11 Pro build 26200 x64
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5
  • Build: debug

Results

  • XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::alloc_pool -- --test-threads=1: 8 passed, 0 failed, 0 ignored (1723 filtered out, exit 0)
  • XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind -- --test-threads=1: 64 passed, 0 failed, 0 ignored (1667 filtered out, exit 0); two_pass_binds_set_the_shared_view_heap SKIPPED (opt-in XCL_HEAP_WINDOWS=1)
  • XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind::tests::gpu_scale_args_reports_uncapped_group_count_feedback -- --exact --test-threads=1: 1 passed, 0 failed, 0 ignored (1730 filtered out, exit 0)

What this adds
This head is not a small increment over ebd9a37: the PR was rebased onto a much newer tree (about 8,500 inserted lines across 42 files), so the bind filter now matches 64 tests instead of 41. All still pass here, including the real-adapter feedback test. This is my third report in the thread and a new response for the changed head.

Not tested
XCL_HEAP_WINDOWS=1, the full workspace suite, a paired smoke run, a real stalled sparse queue, release profile, AMD and Intel GPUs, native wave64, Wine, game data.

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

<!-- greyfinch-sync:ivall/xcl:comment:7202693472 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2816#issuecomment-7202693472). Originally posted by [Aniseto](https://github.com/Aniseto) on 2026-11-26T20:26:52Z. --- Re-ran the two-pass feedback tests at `862b1ed` after the head moved from `ebd9a37`; this is a new response in the same thread, not an edit of my earlier reports: **System** - GPU: NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, mesh shaders, 16 GB), driver 32.0.16.2124 - CPU: Intel Core i5-12400F, 64 GB RAM - OS: Windows 11 Pro build 26200 x64 - Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5 - Build: debug **Results** - `XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::alloc_pool -- --test-threads=1`: 8 passed, 0 failed, 0 ignored (1723 filtered out, exit 0) - `XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind -- --test-threads=1`: 64 passed, 0 failed, 0 ignored (1667 filtered out, exit 0); `two_pass_binds_set_the_shared_view_heap` SKIPPED (opt-in `XCL_HEAP_WINDOWS=1`) - `XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind::tests::gpu_scale_args_reports_uncapped_group_count_feedback -- --exact --test-threads=1`: 1 passed, 0 failed, 0 ignored (1730 filtered out, exit 0) **What this adds** This head is not a small increment over `ebd9a37`: the PR was rebased onto a much newer tree (about 8,500 inserted lines across 42 files), so the `bind` filter now matches 64 tests instead of 41. All still pass here, including the real-adapter feedback test. This is my third report in the thread and a new response for the changed head. **Not tested** `XCL_HEAP_WINDOWS=1`, the full workspace suite, a paired smoke run, a real stalled sparse queue, release profile, AMD and Intel GPUs, native wave64, Wine, game data. AI-assisted (OpenCode), model: **DeepSeek V4.1 Flash Free** - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
Aniseto commented 2026-11-26 21:37:00 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-26T21:37:00Z.


Re-ran the two-pass feedback tests at 4345fc8 after the head moved from 862b1ed; this is a new response in the same thread, not an edit of my earlier reports:

System

  • GPU: NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, mesh shaders, 16 GB), driver 32.0.16.2124
  • CPU: Intel Core i5-12400F, 64 GB RAM
  • OS: Windows 11 Pro build 26200 x64
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5
  • Build: debug

Results

  • XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::alloc_pool -- --test-threads=1: 8 passed, 0 failed, 0 ignored (1724 filtered out, exit 0)
  • XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind -- --test-threads=1: 65 passed, 0 failed, 0 ignored (1667 filtered out, exit 0); two_pass_binds_set_the_shared_view_heap SKIPPED (opt-in XCL_HEAP_WINDOWS=1)
  • XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind::tests::gpu_scale_args_reports_uncapped_group_count_feedback -- --test-threads=1: 1 passed, 0 failed, 0 ignored (1731 filtered out, exit 0)

What this adds
The head moved by 35 lines in bind.rs since 862b1ed. One more bind test now matches the filter (65 instead of 64), and all pass here, including the real-adapter feedback test. This is my fourth report in the thread and a new response for the changed head.

Not tested
XCL_HEAP_WINDOWS=1, the full workspace suite, a paired smoke run, a real stalled sparse queue, release profile, AMD and Intel GPUs, native wave64, Wine, game data.

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

<!-- greyfinch-sync:ivall/xcl:comment:7203897467 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2816#issuecomment-7203897467). Originally posted by [Aniseto](https://github.com/Aniseto) on 2026-11-26T21:37:00Z. --- Re-ran the two-pass feedback tests at `4345fc8` after the head moved from `862b1ed`; this is a new response in the same thread, not an edit of my earlier reports: **System** - GPU: NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, mesh shaders, 16 GB), driver 32.0.16.2124 - CPU: Intel Core i5-12400F, 64 GB RAM - OS: Windows 11 Pro build 26200 x64 - Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5 - Build: debug **Results** - `XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::alloc_pool -- --test-threads=1`: 8 passed, 0 failed, 0 ignored (1724 filtered out, exit 0) - `XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind -- --test-threads=1`: 65 passed, 0 failed, 0 ignored (1667 filtered out, exit 0); `two_pass_binds_set_the_shared_view_heap` SKIPPED (opt-in `XCL_HEAP_WINDOWS=1`) - `XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind::tests::gpu_scale_args_reports_uncapped_group_count_feedback -- --test-threads=1`: 1 passed, 0 failed, 0 ignored (1731 filtered out, exit 0) **What this adds** The head moved by 35 lines in `bind.rs` since `862b1ed`. One more `bind` test now matches the filter (65 instead of 64), and all pass here, including the real-adapter feedback test. This is my fourth report in the thread and a new response for the changed head. **Not tested** `XCL_HEAP_WINDOWS=1`, the full workspace suite, a paired smoke run, a real stalled sparse queue, release profile, AMD and Intel GPUs, native wave64, Wine, game data. AI-assisted (OpenCode), model: **DeepSeek V4.1 Flash Free** - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
Aniseto commented 2026-11-26 22:19:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-26T22:19:31Z.


Re-ran the two-pass feedback tests at 9ae803e3 after the head moved from 4345fc8; this is a new response in the same thread, not an edit of my earlier reports:

System

  • GPU: NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, mesh shaders, 16 GB), driver 32.0.16.2124
  • CPU: Intel Core i5-12400F, 64 GB RAM
  • OS: Windows 11 Pro build 26200 x64
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5
  • Build: debug

Results

  • XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::alloc_pool -- --test-threads=1: 8 passed, 0 failed, 0 ignored (1725 filtered out, exit 0)
  • XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind -- --test-threads=1: 66 passed, 0 failed, 0 ignored (1667 filtered out, exit 0); two_pass_binds_set_the_shared_view_heap SKIPPED (opt-in XCL_HEAP_WINDOWS=1)
  • XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind::tests::gpu_scale_args_reports_uncapped_group_count_feedback -- --test-threads=1: 1 passed, 0 failed, 0 ignored (1732 filtered out, exit 0)

What this adds
One more bind test matches the filter (66 instead of 65) at this head. All pass here, including the real-adapter feedback test. This is my fifth report in the thread and a new response for the changed head.

Not tested
XCL_HEAP_WINDOWS=1, the full workspace suite, a paired smoke run, a real stalled sparse queue, release profile, AMD and Intel GPUs, native wave64, Wine, game data.

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

<!-- greyfinch-sync:ivall/xcl:comment:7204572803 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2816#issuecomment-7204572803). Originally posted by [Aniseto](https://github.com/Aniseto) on 2026-11-26T22:19:31Z. --- Re-ran the two-pass feedback tests at `9ae803e3` after the head moved from `4345fc8`; this is a new response in the same thread, not an edit of my earlier reports: **System** - GPU: NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, mesh shaders, 16 GB), driver 32.0.16.2124 - CPU: Intel Core i5-12400F, 64 GB RAM - OS: Windows 11 Pro build 26200 x64 - Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5 - Build: debug **Results** - `XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::alloc_pool -- --test-threads=1`: 8 passed, 0 failed, 0 ignored (1725 filtered out, exit 0) - `XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind -- --test-threads=1`: 66 passed, 0 failed, 0 ignored (1667 filtered out, exit 0); `two_pass_binds_set_the_shared_view_heap` SKIPPED (opt-in `XCL_HEAP_WINDOWS=1`) - `XCL_ADAPTER=NVIDIA cargo test -p xcl --lib hle::d3d12x::bind::tests::gpu_scale_args_reports_uncapped_group_count_feedback -- --test-threads=1`: 1 passed, 0 failed, 0 ignored (1732 filtered out, exit 0) **What this adds** One more `bind` test matches the filter (66 instead of 65) at this head. All pass here, including the real-adapter feedback test. This is my fifth report in the thread and a new response for the changed head. **Not tested** `XCL_HEAP_WINDOWS=1`, the full workspace suite, a paired smoke run, a real stalled sparse queue, release profile, AMD and Intel GPUs, native wave64, Wine, game data. AI-assisted (OpenCode), model: **DeepSeek V4.1 Flash Free** - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
Decodere commented 2026-11-26 22:52:23 +00:00 (Migrated from github.com)

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


Follow-up independent desktop NVIDIA verification of PR #2816 at updated head 9ae803e3952b4e2f68c206ae34950e59b6b5fadd (2 stacked commits 42ae6051 -> 9ae803e3 on nvidia-dev merge-base eae015021c639866ab061cdff2e9daf8ba9daac5; parent 42ae60514ad2b3aaad5e940e2ad3b7bcc595d9b9). This supersedes our earlier check at 862b1ed1 after the stacked update adding indirect_feedback_ignores_readback_after_device_removal and the updated #2815 base commit 42ae6051.

Environment

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12, 7022 MB DXGI local video memory budget observed in this run), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6C / 12T), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200 (Developer Mode off)
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC, DXC 1.9.2609.5, --release

Targeted release tests & build (9ae803e3)

Command Result
cargo test --release -p xcl --lib gpu_scale_args_reports_uncapped_group_count_feedback -- --nocapture 1 passed; 0 failed; 0 ignored; 1732 filtered out (0.21s, on-GPU RTX 4060)
cargo test --release -p xcl --lib indirect_feedback_ignores_readback_after_device_removal -- --nocapture 1 passed; 0 failed; 0 ignored; 1732 filtered out (0.02s)
cargo test --release -p xcl --lib hle::d3d12x::alloc_pool:: -- --test-threads=4 (3 consecutive runs) 8 passed; 0 failed; 0 ignored; 1725 filtered out × 3 (0.20s, 0.20s, 0.20s)
cargo test --release -p xcl --lib hle::d3d12x::bind:: -- --test-threads=4 (3 consecutive runs) 66 passed; 0 failed; 0 ignored; 1667 filtered out × 3 (0.30s, 0.30s, 0.30s; two_pass_binds_set_the_shared_view_heap self-skipped because XCL_HEAP_WINDOWS is opt-in)
cargo build --release -p xcl --bin xcl Clean build (1m 27s, exit 0)

Paired quiet 60 s retail smoke (title: 29640639)

Merge-base on nvidia-dev (eae015021c639866ab061cdff2e9daf8ba9daac5, cached baseline on the same machine):

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

PR #2816 (9ae803e3952b4e2f68c206ae34950e59b6b5fadd):

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

Runtime log observations (xcl.log)

  • 9385 log lines, 0 [ERROR] / device-removal / panic lines.
  • Final draw/memory telemetry in log: 19219 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample 14776 MB committed by the process; video memory 6119 MB local, 4746 MB non-local; video memory budget 7022 MB.

Limits of coverage

  • GPU indirect-feedback group-count reporting (gpu_scale_args_reports_uncapped_group_count_feedback), device-removal readback guard (indirect_feedback_ignores_readback_after_device_removal), and finer bucket sizing passed 3/3 under parallel --test-threads=4 runs of alloc_pool:: and bind:: (two_pass_binds_set_the_shared_view_heap self-skipped because XCL_HEAP_WINDOWS is opt-in).
  • The 60 s menu capture on title: 29640639 logged 0 live two-pass indirect-feedback events and confirms clean runtime stability on nvidia-dev rather than in-world two-pass VRAM savings; frame-count and peak-commit deltas vs. the cached eae01502 baseline reflect normal single-run startup/worker variance and are not attributed to this PR.

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

<!-- greyfinch-sync:ivall/xcl:comment:7205057497 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2816#issuecomment-7205057497). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-26T22:52:23Z. --- Follow-up independent desktop NVIDIA verification of **PR #2816** at updated head `9ae803e3952b4e2f68c206ae34950e59b6b5fadd` (`2` stacked commits `42ae6051 -> 9ae803e3` on `nvidia-dev` merge-base `eae015021c639866ab061cdff2e9daf8ba9daac5`; parent `42ae60514ad2b3aaad5e940e2ad3b7bcc595d9b9`). This supersedes our earlier check at `862b1ed1` after the stacked update adding `indirect_feedback_ignores_readback_after_device_removal` and the updated `#2815` base commit `42ae6051`. ### Environment - **GPU:** NVIDIA GeForce RTX 4060 (8 GB / `7956 MiB` reported by D3D12, `7022 MB` DXGI local video memory budget observed in this run), driver `32.0.16.2114` (NVIDIA `621.14`, WDDM 3.2) - **CPU / RAM / OS:** Intel Core i5-11400F (6C / 12T), 32 GB RAM (`31.9 GiB` usable), Windows 11 Home `26200` (Developer Mode off) - **Toolchain:** `rustc 1.100.0 (0ef1bc386 2026-11-09)` MSVC, DXC `1.9.2609.5`, `--release` ### Targeted release tests & build (`9ae803e3`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --lib gpu_scale_args_reports_uncapped_group_count_feedback -- --nocapture` | `1 passed; 0 failed; 0 ignored; 1732 filtered out` (`0.21s`, on-GPU RTX 4060) | | `cargo test --release -p xcl --lib indirect_feedback_ignores_readback_after_device_removal -- --nocapture` | `1 passed; 0 failed; 0 ignored; 1732 filtered out` (`0.02s`) | | `cargo test --release -p xcl --lib hle::d3d12x::alloc_pool:: -- --test-threads=4` (3 consecutive runs) | `8 passed; 0 failed; 0 ignored; 1725 filtered out` × 3 (`0.20s`, `0.20s`, `0.20s`) | | `cargo test --release -p xcl --lib hle::d3d12x::bind:: -- --test-threads=4` (3 consecutive runs) | `66 passed; 0 failed; 0 ignored; 1667 filtered out` × 3 (`0.30s`, `0.30s`, `0.30s`; `two_pass_binds_set_the_shared_view_heap` self-skipped because `XCL_HEAP_WINDOWS` is opt-in) | | `cargo build --release -p xcl --bin xcl` | Clean build (`1m 27s`, exit `0`) | ### Paired quiet 60 s retail smoke (`title: 29640639`) Merge-base on `nvidia-dev` (`eae015021c639866ab061cdff2e9daf8ba9daac5`, cached baseline on the same machine): ``` xcl-smoke v1 commit: eae015021c639866ab061cdff2e9daf8ba9daac5 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1551 (PresentX 1551) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15926 MB ``` PR #2816 (`9ae803e3952b4e2f68c206ae34950e59b6b5fadd`): ``` xcl-smoke v1 commit: 9ae803e3952b4e2f68c206ae34950e59b6b5fadd gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1611 (PresentX 1611) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14944 MB ``` ### Runtime log observations (`xcl.log`) - `9385` log lines, `0` `[ERROR]` / device-removal / panic lines. - Final draw/memory telemetry in log: `19219 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped)`; last memory sample `14776 MB committed by the process; video memory 6119 MB local, 4746 MB non-local; video memory budget 7022 MB`. ### Limits of coverage - GPU indirect-feedback group-count reporting (`gpu_scale_args_reports_uncapped_group_count_feedback`), device-removal readback guard (`indirect_feedback_ignores_readback_after_device_removal`), and finer bucket sizing passed 3/3 under parallel `--test-threads=4` runs of `alloc_pool::` and `bind::` (`two_pass_binds_set_the_shared_view_heap` self-skipped because `XCL_HEAP_WINDOWS` is opt-in). - The 60 s menu capture on `title: 29640639` logged `0` live two-pass indirect-feedback events and confirms clean runtime stability on `nvidia-dev` rather than in-world two-pass VRAM savings; frame-count and peak-commit deltas vs. the cached `eae01502` baseline reflect normal single-run startup/worker variance and are not attributed to this PR. *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
JJAutoCompare commented 2026-11-27 00:35:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-27T00:35:47Z.


Tested: Clean 9ae803e3952b4e2f68c206ae34950e59b6b5fadd, Windows 11 build 26200.9974, Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust 1.100.0 MSVC debug. Four CPU, three WARP, and four native Arc fixtures passed with zero failures, ignores or skips. Built with cargo test --offline --locked -j 2 -p xcl --lib --no-run. Exact hle::d3d12x::bind::tests groups ran with --test-threads=1 --nocapture. Arc feedback reported one clamped 500-group command and 484 dropped groups at a 16-group cap. The scaling fixtures verified record capacity, X flattening, and zero work past the count buffer.

Not tested: Retail, workspace suite, retirement behavior from #2815 and DXGI headroom from #2817.

AI use: T3 Code / Codex (gpt-6.2-sol) ran and reran the checks and drafted the report.

<!-- greyfinch-sync:ivall/xcl:comment:7206591629 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2816#issuecomment-7206591629). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-27T00:35:47Z. --- **Tested:** Clean `9ae803e3952b4e2f68c206ae34950e59b6b5fadd`, Windows 11 build 26200.9974, Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust 1.100.0 MSVC debug. Four CPU, three WARP, and four native Arc fixtures passed with zero failures, ignores or skips. Built with `cargo test --offline --locked -j 2 -p xcl --lib --no-run`. Exact `hle::d3d12x::bind::tests` groups ran with `--test-threads=1 --nocapture`. Arc feedback reported one clamped 500-group command and 484 dropped groups at a 16-group cap. The scaling fixtures verified record capacity, X flattening, and zero work past the count buffer. **Not tested:** Retail, workspace suite, retirement behavior from #2815 and DXGI headroom from #2817. **AI use:** T3 Code / Codex (`gpt-6.2-sol`) ran and reran the checks and drafted the report.
LocranKing commented 2026-11-27 03:56:50 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by LocranKing on 2026-11-27T03:56:50Z.


Independent 180 s paired check on RTX 3060 Ti (8 GB) (9ae803e3 merged with
vidia-dev ecc0bb57, Series S / lockhart profile, identical warm cache snapshot): 1,775 frames (PresentX 1775),

<!-- greyfinch-sync:ivall/xcl:comment:7209396378 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2816#issuecomment-7209396378). Originally posted by [LocranKing](https://github.com/LocranKing) on 2026-11-27T03:56:50Z. --- Independent 180 s paired check on **RTX 3060 Ti (8 GB)** (9ae803e3 merged with vidia-dev ecc0bb57, Series S / lockhart profile, identical warm cache snapshot): 1,775 frames (PresentX 1775),
Pipodi commented 2026-11-27 07:07:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Pipodi on 2026-11-27T07:07:45Z.


Test report on the NVIDIA branch (nvidia-dev), PR head 9ae803e3 (contains #2815's head 42ae6051), base eae01502.

Tested

  • RTX 4090, driver 621.40; i9-13900K; Windows 11 build 26300; rustc 1.100.0; debug build.
  • cargo test --workspace -- --test-threads=4 on 9ae803e3: 1829 passed, 9 failed, 48 ignored; 29 SKIPPED (mostly "no wave64").
  • The 9 failures are 7 tests (two rerun themselves in a child process and print a second FAILED line). Each of the 7 also fails alone (--exact) on 42ae6051 and on the base eae01502, with the same panic, so none comes from this PR:
    • gpu_compute_thread_limits_leave_the_lanes_past_them_out (wave32 CreateComputePipelineState 0x80070057)
    • pieces_hold_the_texels_of_their_levels, gpu_parts_of_a_texture_go_up_and_the_rest_stays (multiply overflow, texture_upload.rs:1002)
    • async_compute_pso_registers_real_pso_and_not_standin, split_compute_prefers_the_offline_whole_pipeline (gpu_compute_e2e)
    • console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly ("MS: no NGG hardware variant")
    • two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs (two_pass_count 3 vs 0)
  • A retail title, xcl built from 9ae803e3: a 1682 s warm-up run (stopped by our run script's time cap, not a crash; 32768 draws translated, 0 skipped; peak private 26.9 GB), then a 260 s measured run with a fresh save: exit 0, 1145 frames presented, peak private 25.7 GB, no crash, no device removal, no new or repeating warnings.

Not tested

  • AMD; release build; the title past its intro cinematic; a main-vs-PR smoke pair (this ran on the NVIDIA branch only).

AI use

  • Claude Code, Claude Opus 5.5: ran the tests, the isolation and the title runs, wrote this report.
<!-- greyfinch-sync:ivall/xcl:comment:7212169861 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2816#issuecomment-7212169861). Originally posted by [Pipodi](https://github.com/Pipodi) on 2026-11-27T07:07:45Z. --- Test report on the NVIDIA branch (`nvidia-dev`), PR head **9ae803e3** (contains #2815's head 42ae6051), base eae01502. **Tested** - RTX 4090, driver 621.40; i9-13900K; Windows 11 build 26300; rustc 1.100.0; debug build. - `cargo test --workspace -- --test-threads=4` on 9ae803e3: 1829 passed, 9 failed, 48 ignored; 29 `SKIPPED` (mostly "no wave64"). - The 9 failures are 7 tests (two rerun themselves in a child process and print a second FAILED line). Each of the 7 also fails alone (`--exact`) on 42ae6051 and on the base eae01502, with the same panic, so none comes from this PR: - `gpu_compute_thread_limits_leave_the_lanes_past_them_out` (wave32 CreateComputePipelineState 0x80070057) - `pieces_hold_the_texels_of_their_levels`, `gpu_parts_of_a_texture_go_up_and_the_rest_stays` (multiply overflow, texture_upload.rs:1002) - `async_compute_pso_registers_real_pso_and_not_standin`, `split_compute_prefers_the_offline_whole_pipeline` (gpu_compute_e2e) - `console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly` ("MS: no NGG hardware variant") - `two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs` (two_pass_count 3 vs 0) - A retail title, xcl built from 9ae803e3: a 1682 s warm-up run (stopped by our run script's time cap, not a crash; 32768 draws translated, 0 skipped; peak private 26.9 GB), then a 260 s measured run with a fresh save: exit 0, 1145 frames presented, peak private 25.7 GB, no crash, no device removal, no new or repeating warnings. **Not tested** - AMD; release build; the title past its intro cinematic; a `main`-vs-PR smoke pair (this ran on the NVIDIA branch only). **AI use** - Claude Code, Claude Opus 5.5: ran the tests, the isolation and the title runs, wrote this report.
JJAutoCompare commented 2026-11-27 12:20:03 +00:00 (Migrated from github.com)

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


Tested

Clean 9ae803e3952b4e2f68c206ae34950e59b6b5fadd on Windows 11 build 26200.9974, Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust 1.100.0 MSVC, DXC/DXIL 1.9.2602.17. Built with cargo test --offline --locked -j 2 -p xcl --lib --no-run --message-format=json and CARGO_PROFILE_TEST_DEBUG=0. Ran the pin-checked libtest executable with XCL_ADAPTER=A770 and --exact --test-threads=1 --nocapture for these four synthetic filters under separate Arc mutex acquisitions.

  • hle::d3d12x::bind::tests::gpu_scale_args_reports_uncapped_group_count_feedback verified that a 500-group request with a cap of 16 recorded one clamped command and 484 dropped groups. Zero-count feedback preserved the warm hint. Disabling feedback left its readback zero.
  • hle::d3d12x::bind::tests::gpu_indirect_two_pass_groups_stay_inside_the_record_buffer, hle::d3d12x::bind::tests::gpu_indirect_two_pass_groups_go_in_x, and hle::d3d12x::bind::tests::gpu_indirect_two_pass_commands_past_the_count_get_no_groups passed the capacity, flattening and command-count assertions.

Four passed, zero failed, ignored, or skipped. Executable and wrapper pins matched before, under, and after the lock.

Not tested

Parallel execution, full workspace, release, retail deferral or smoke.

AI use

T3 Code / Codex (gpt-6.2-sol) built and independently reran these fixtures and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7218117993 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2816#issuecomment-7218117993). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-27T12:20:03Z. --- **Tested** Clean `9ae803e3952b4e2f68c206ae34950e59b6b5fadd` on Windows 11 build 26200.9974, Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust 1.100.0 MSVC, DXC/DXIL 1.9.2602.17. Built with `cargo test --offline --locked -j 2 -p xcl --lib --no-run --message-format=json` and `CARGO_PROFILE_TEST_DEBUG=0`. Ran the pin-checked libtest executable with `XCL_ADAPTER=A770` and `--exact --test-threads=1 --nocapture` for these four synthetic filters under separate Arc mutex acquisitions. - `hle::d3d12x::bind::tests::gpu_scale_args_reports_uncapped_group_count_feedback` verified that a 500-group request with a cap of 16 recorded one clamped command and 484 dropped groups. Zero-count feedback preserved the warm hint. Disabling feedback left its readback zero. - `hle::d3d12x::bind::tests::gpu_indirect_two_pass_groups_stay_inside_the_record_buffer`, `hle::d3d12x::bind::tests::gpu_indirect_two_pass_groups_go_in_x`, and `hle::d3d12x::bind::tests::gpu_indirect_two_pass_commands_past_the_count_get_no_groups` passed the capacity, flattening and command-count assertions. Four passed, zero failed, ignored, or skipped. Executable and wrapper pins matched before, under, and after the lock. **Not tested** Parallel execution, full workspace, release, retail deferral or smoke. **AI use** T3 Code / Codex (`gpt-6.2-sol`) built and independently reran these fixtures and wrote this report.
Royalflamejlh commented 2026-11-28 01:35:05 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Royalflamejlh on 2026-11-28T01:35:05Z.


Under Wine with #2477 merged in, the feedback copy list that poll_two_pass_feedback submits reached vkd3d-proton with XCL's vtable still on it, and the title stopped at d3d12core.dll+0x563fad in 2 of 2 runs. With the UnadoptGuard that XCL's other direct submits use, 1 run went past that point.

Setup: nvidia-dev ba9d1f94 merged into our Linux branch (linux/stack-nvidia-dev: nvidia-dev + #684, #867, #2477 and the other PRs Linux needs), RTX 4070 12 GB, driver 615.71.09, Wine 11.21 Staging, stock vkd3d-proton 71cae091. The first-run screens were completed once; no story progress.

Tree Runs How the run ended
72b93523 (the merge) 1 d3d12core.dll+0x563fad at 96.2 s
72b93523 + a feedback-fence change (not kept) 1 d3d12core.dll+0x563fad at 75.8 s
ed887d22 (the merge + the guard) 1 device removed (0x887a0005) at 118.2 s, with 11.9 of the card's 12 GB in use
  • +0x563fad is the trap in vkd3d-proton's d3d12_command_queue_ExecuteCommandLists for a list that carries none of its command-list vtables. The stack had poll_two_pass_feedback and alloc_pool::executed on it.
  • bind.rs:2520–2524 hands the copy list straight to the real ExecuteCommandLists (orig_fn(queue, 10)). The other direct submits put the list's own vtable back first with real::UnadoptGuard (for example the kickoff split at list_x.rs:3924 on our tree). The change we ran:
// crates/xcl/src/hle/d3d12x/bind.rs, poll_two_pass_feedback
            let exec: ExecFn = std::mem::transmute(super::real::orig_fn(queue, 10));
            let _list_guard = super::real::UnadoptGuard::new(raw[0]);
            exec(queue, 1, raw.as_mut_ptr());
  • UnadoptGuard comes with #2477 and does nothing outside Wine, so nvidia-dev alone does not have it. The line is needed wherever #2816 and #2477 meet.

Not tested: Windows; the RTX 4060 Ti; whether the device removal at 118 s has to do with #2816 (the card was full).

AI use: Claude Code (Claude Opus 5.5) made the runs, found the cause in the disassembly and wrote this comment.

<!-- greyfinch-sync:ivall/xcl:comment:7231770964 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2816#issuecomment-7231770964). Originally posted by [Royalflamejlh](https://github.com/Royalflamejlh) on 2026-11-28T01:35:05Z. --- Under Wine with #2477 merged in, the feedback copy list that `poll_two_pass_feedback` submits reached vkd3d-proton with XCL's vtable still on it, and the title stopped at `d3d12core.dll+0x563fad` in 2 of 2 runs. With the `UnadoptGuard` that XCL's other direct submits use, 1 run went past that point. Setup: `nvidia-dev` `ba9d1f94` merged into our Linux branch ([`linux/stack-nvidia-dev`](https://github.com/Royalflamejlh/xcl/tree/linux/stack-nvidia-dev): `nvidia-dev` + #684, #867, #2477 and the other PRs Linux needs), RTX 4070 12 GB, driver 615.71.09, Wine 11.21 Staging, stock vkd3d-proton `71cae091`. The first-run screens were completed once; no story progress. | Tree | Runs | How the run ended | |---|---|---| | `72b93523` (the merge) | 1 | `d3d12core.dll+0x563fad` at 96.2 s | | `72b93523` + a feedback-fence change (not kept) | 1 | `d3d12core.dll+0x563fad` at 75.8 s | | [`ed887d22`](https://github.com/Royalflamejlh/xcl/commit/ed887d228fe4607f814fd6b78441a7da51dc1ea0) (the merge + the guard) | 1 | device removed (`0x887a0005`) at 118.2 s, with 11.9 of the card's 12 GB in use | - `+0x563fad` is the trap in vkd3d-proton's `d3d12_command_queue_ExecuteCommandLists` for a list that carries none of its command-list vtables. The stack had `poll_two_pass_feedback` and `alloc_pool::executed` on it. - `bind.rs:2520–2524` hands the copy list straight to the real `ExecuteCommandLists` (`orig_fn(queue, 10)`). The other direct submits put the list's own vtable back first with `real::UnadoptGuard` (for example the kickoff split at `list_x.rs:3924` on our tree). The change we ran: ```rust // crates/xcl/src/hle/d3d12x/bind.rs, poll_two_pass_feedback let exec: ExecFn = std::mem::transmute(super::real::orig_fn(queue, 10)); let _list_guard = super::real::UnadoptGuard::new(raw[0]); exec(queue, 1, raw.as_mut_ptr()); ``` - `UnadoptGuard` comes with #2477 and does nothing outside Wine, so `nvidia-dev` alone does not have it. The line is needed wherever #2816 and #2477 meet. **Not tested:** Windows; the RTX 4060 Ti; whether the device removal at 118 s has to do with #2816 (the card was full). **AI use:** Claude Code (Claude Opus 5.5) made the runs, found the cause in the disassembly and wrote this comment.
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!2806
No description provided.