D3D12.X: a skipped ExecuteIndirect inside an occlusion query leaves it visible #2540

Open
tiagonleal wants to merge 2 commits from upstream-pr/2550 into main
tiagonleal commented 2026-11-25 22:41:27 +00:00 (Migrated from github.com)

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


A draw that XCL drops while an occlusion query is open marks the query, so ResolveQueryData reports it as visible (list_x::note_dropped_draw, used by graphics_bound). An ExecuteIndirect that XCL skips did not do this. A title's occlusion query around skipped indirect draws resolved to 0 samples, and the title could take the objects as hidden. Open PR #1798 lets a draw go on with a stand-in while its graphics pipeline is built, which makes a skipped ExecuteIndirect the usual case during pipeline building; this change does not depend on it, because pipelines that are late, two-pass or without a usable ABI are skipped on main too. No existing PR or issue covers this (searched for "occlusion ExecuteIndirect", "note_dropped_draw", "occlusion query skipped"; #1991 added note_dropped_draw for draws only).

Rebased onto main 1c8b5514 (no conflicts); before that onto d8bd9a38, and the earlier merge checks were on e033310c. main rewrote this code (5b03933e's signature snapshot, a pipeline choice before each ExecuteIndirect), so this is a port: note_skipped_indirect takes the IndirectSignatureInfo snapshot, the note sits on main's bound_unbuilt skip and also on its new Unavailable skip (no usable pipeline, as graphics_bound already treats it), and is_stand_in reads build.real, where main moved the field. main now sends a two-pass pipeline with a signature that is not DispatchMesh to a new skip (dispatch_mesh_sig_of returns None); the note is there too. The test registers its signatures through note_indirect_signature; with the note switched off it still fails at "a pipeline still being built".

What is in it

  • bind.rs: execute_indirect calls note_dropped_draw on the skips that could have drawn: a pipeline still being built, a finished two-pass mesh pipeline, a root-changing signature with a translated graphics pipeline, and a failed ABI bind of a graphics pipeline. A signature that makes no samples is left out (see the next bullet), and so are the console compute skips. graphics_bound also marks the two-pass skip, and a draw whose pipeline build failed (a stand-in with no real pipeline) is marked like one still being built.
  • bind.rs, device_x.rs (second commit): a command signature notes whether it has a Draw, DrawIndexed or DispatchMesh argument. A skipped ExecuteIndirect whose signature has none (Dispatch, DispatchRays or root arguments only) no longer marks the query visible; a signature never noted still does. Before, only a Dispatch argument was left out. Test signature_draws_only_with_a_rasterising_argument (device_x.rs) checks each argument type and root arguments alone.
  • pso_async.rs: is_stand_in(pso), true while the pipeline is being built or after its build failed.
  • list_x.rs: two #[cfg(test)] helpers for the test.
  • Test execute_indirect_skipped_inside_an_occlusion_query_reports_visible (bind.rs): BeginQuery, ExecuteIndirect, EndQuery on a fake list, for a pipeline still being built (reads visible), the same pipeline with a Dispatch or a DispatchRays signature (does not), with a drawing signature and with one never noted (both visible), a two-pass pipeline and a root-changing signature that draws (both read visible), and a root-arguments-only signature (does not).

Tested

  • Windows 11 Pro 10.0.26300, NVIDIA GeForce RTX 5070 Ti 16 GB (driver 617.42), AMD Ryzen 7 9800X3D, 32 GB RAM, rustc 1.100.0
  • New test before the fix (the skip marking switched off): cargo test -p xcl --lib execute_indirect_skipped_inside: 0 passed, 1 failed ("a pipeline still being built"). After the fix, run 5 times: 1 passed each time.
  • cargo build --workspace and cargo test --workspace --no-fail-fast -j 4 -- --test-threads=4, run twice: 1420 passed, 4 failed, 46 ignored both times (25 SKIPPED lines). The 4 failures are gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3, which fail the same way on main.
  • After the rebase onto main d8bd9a38 (head f169911a): cargo test --workspace --no-fail-fast -j 8 -- --test-threads=4, one run: 2615 passed, 4 failed, 49 ignored (26 SKIPPED lines). The 4 failures are gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3. The 4 are the fuzz_validate_and_gpu_* tests, which fail on main here too (#1919 fixes them); main's run had a fifth failure, the intermittent e2e check reported in #3382. On main d8bd9a38 on this machine the same command gave 2613 passed, 5 failed, 49 ignored (26 SKIPPED lines). The other results in this section are from the earlier heads named in them.
  • Head 22d48190 (rebased onto main 1c8b5514, with the second commit), debug: cargo build --workspace ok; cargo test --workspace --no-fail-fast -- --test-threads=4: 2911 passed, 0 failed, 51 ignored, 24 SKIPPED tests (20 of them no wave64). Both tests above pass.

Regression run
scripts/smoke.ps1 -Seconds 60 -Title 9cc6a39e (Newer Retail Game), release builds of both commits in clean trees, main 1c8b5514 first, then this PR's head, one run each. Both runs had XCL_PREPARE=0 and the same warm DXIL cache.

main (1c8b5514):

xcl-smoke v1
commit: 1c8b551475e1e7bfe48f94448492a4c3544a2e0f
gpu: NVIDIA GeForce RTX 5070 Ti
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1563 (PresentX 1563)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14842 MB

This PR (22d48190):

xcl-smoke v1
commit: 22d48190f24f1c560b2c16263678b8fe5405858e
gpu: NVIDIA GeForce RTX 5070 Ti
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1710 (PresentX 1710)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15230 MB

Not tested

  • Whether the retail title uses occlusion queries around indirect draws: not known. No claim about world loading or any visible change.
  • Whether any title uses a DispatchRays or root-arguments-only signature inside an occlusion query: not checked; that path is covered only by the unit tests.
  • The failed-ABI path of execute_indirect and the graphics_bound changes have no unit test of their own: they need a real command list and unified memory.
  • AMD, other drivers, Wine.

AI use

  • Claude Code with Claude Fable 5.2 and Anthropic subagents (Claude Opus 5.5, Claude Sonnet 5.5) helped developing.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5500423735 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2550). Originally posted by [tiagonleal](https://github.com/tiagonleal) on 2026-11-25T22:41:27Z. --- A draw that XCL drops while an occlusion query is open marks the query, so ResolveQueryData reports it as visible (`list_x::note_dropped_draw`, used by `graphics_bound`). An ExecuteIndirect that XCL skips did not do this. A title's occlusion query around skipped indirect draws resolved to 0 samples, and the title could take the objects as hidden. Open PR #1798 lets a draw go on with a stand-in while its graphics pipeline is built, which makes a skipped ExecuteIndirect the usual case during pipeline building; this change does not depend on it, because pipelines that are late, two-pass or without a usable ABI are skipped on main too. No existing PR or issue covers this (searched for "occlusion ExecuteIndirect", "note_dropped_draw", "occlusion query skipped"; #1991 added `note_dropped_draw` for draws only). *Rebased onto `main` `1c8b5514` (no conflicts); before that onto `d8bd9a38`, and the earlier merge checks were on `e033310c`.* `main` rewrote this code (5b03933e's signature snapshot, a pipeline choice before each ExecuteIndirect), so this is a port: `note_skipped_indirect` takes the `IndirectSignatureInfo` snapshot, the note sits on `main`'s `bound_unbuilt` skip and also on its new `Unavailable` skip (no usable pipeline, as `graphics_bound` already treats it), and `is_stand_in` reads `build.real`, where `main` moved the field. `main` now sends a two-pass pipeline with a signature that is not DispatchMesh to a new skip (`dispatch_mesh_sig_of` returns None); the note is there too. The test registers its signatures through `note_indirect_signature`; with the note switched off it still fails at "a pipeline still being built". **What is in it** - `bind.rs`: `execute_indirect` calls `note_dropped_draw` on the skips that could have drawn: a pipeline still being built, a finished two-pass mesh pipeline, a root-changing signature with a translated graphics pipeline, and a failed ABI bind of a graphics pipeline. A signature that makes no samples is left out (see the next bullet), and so are the console compute skips. `graphics_bound` also marks the two-pass skip, and a draw whose pipeline build failed (a stand-in with no real pipeline) is marked like one still being built. - `bind.rs`, `device_x.rs` (second commit): a command signature notes whether it has a Draw, DrawIndexed or DispatchMesh argument. A skipped ExecuteIndirect whose signature has none (Dispatch, DispatchRays or root arguments only) no longer marks the query visible; a signature never noted still does. Before, only a Dispatch argument was left out. Test `signature_draws_only_with_a_rasterising_argument` (`device_x.rs`) checks each argument type and root arguments alone. - `pso_async.rs`: `is_stand_in(pso)`, true while the pipeline is being built or after its build failed. - `list_x.rs`: two `#[cfg(test)]` helpers for the test. - Test `execute_indirect_skipped_inside_an_occlusion_query_reports_visible` (`bind.rs`): BeginQuery, ExecuteIndirect, EndQuery on a fake list, for a pipeline still being built (reads visible), the same pipeline with a Dispatch or a DispatchRays signature (does not), with a drawing signature and with one never noted (both visible), a two-pass pipeline and a root-changing signature that draws (both read visible), and a root-arguments-only signature (does not). **Tested** - Windows 11 Pro 10.0.26300, NVIDIA GeForce RTX 5070 Ti 16 GB (driver 617.42), AMD Ryzen 7 9800X3D, 32 GB RAM, rustc 1.100.0 - New test before the fix (the skip marking switched off): `cargo test -p xcl --lib execute_indirect_skipped_inside`: 0 passed, 1 failed ("a pipeline still being built"). After the fix, run 5 times: 1 passed each time. - `cargo build --workspace` and `cargo test --workspace --no-fail-fast -j 4 -- --test-threads=4`, run twice: 1420 passed, 4 failed, 46 ignored both times (25 `SKIPPED` lines). The 4 failures are `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3`, which fail the same way on `main`. - After the rebase onto `main` `d8bd9a38` (head `f169911a`): `cargo test --workspace --no-fail-fast -j 8 -- --test-threads=4`, one run: 2615 passed, 4 failed, 49 ignored (26 `SKIPPED` lines). The 4 failures are `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3`. The 4 are the `fuzz_validate_and_gpu_*` tests, which fail on `main` here too (#1919 fixes them); `main`'s run had a fifth failure, the intermittent e2e check reported in #3382. On `main` `d8bd9a38` on this machine the same command gave 2613 passed, 5 failed, 49 ignored (26 `SKIPPED` lines). The other results in this section are from the earlier heads named in them. - Head `22d48190` (rebased onto `main` `1c8b5514`, with the second commit), debug: `cargo build --workspace` ok; `cargo test --workspace --no-fail-fast -- --test-threads=4`: 2911 passed, 0 failed, 51 ignored, 24 `SKIPPED` tests (20 of them no wave64). Both tests above pass. **Regression run** `scripts/smoke.ps1 -Seconds 60 -Title 9cc6a39e` (Newer Retail Game), release builds of both commits in clean trees, `main` `1c8b5514` first, then this PR's head, one run each. Both runs had `XCL_PREPARE=0` and the same warm DXIL cache. `main` (`1c8b5514`): ``` xcl-smoke v1 commit: 1c8b551475e1e7bfe48f94448492a4c3544a2e0f gpu: NVIDIA GeForce RTX 5070 Ti title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1563 (PresentX 1563) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14842 MB ``` This PR (`22d48190`): ``` xcl-smoke v1 commit: 22d48190f24f1c560b2c16263678b8fe5405858e gpu: NVIDIA GeForce RTX 5070 Ti title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1710 (PresentX 1710) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15230 MB ``` **Not tested** - Whether the retail title uses occlusion queries around indirect draws: not known. No claim about world loading or any visible change. - Whether any title uses a DispatchRays or root-arguments-only signature inside an occlusion query: not checked; that path is covered only by the unit tests. - The failed-ABI path of `execute_indirect` and the `graphics_bound` changes have no unit test of their own: they need a real command list and unified memory. - AMD, other drivers, Wine. **AI use** - Claude Code with Claude Fable 5.2 and Anthropic subagents (Claude Opus 5.5, Claude Sonnet 5.5) helped developing. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
copilot-pull-request-reviewer[bot] commented 2026-11-25 22:41:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-25T22:41:40Z.

Review: COMMENTED


Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

<!-- greyfinch-sync:ivall/xcl:review:6065984304 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2550#pullrequestreview-6065984304). Originally posted by [copilot-pull-request-reviewer[bot]](https://github.com/apps/copilot-pull-request-reviewer) on 2026-11-25T22:41:40Z. **Review:** COMMENTED --- Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level. An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. [Learn about Copilot code review billing](https://docs.github.com/en/copilot/concepts/agents/code-review#code-review-usage).
xpatfussy69x commented 2026-11-25 23:09:21 +00:00 (Migrated from github.com)

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


Test run on exact head e033310 (e033310cd7b91767391f65080629a79c2664b9f8, on its base e1d84b7, current main), 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: 1424 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 execute_indirect_skipped: 1 passed, 0 failed
  • This PR's new tests in the workspace run:
    • execute_indirect_skipped_inside_an_occlusion_query_reports_visible: ok

Regression run (60 s, default settings, a retail title)

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: e033310cd7b91767391f65080629a79c2664b9f8
gpu: NVIDIA GeForce RTX 3060
title: c3f791f3
seconds: 60
exit: 0x0
frames shown: 1142 (PresentX 1142)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14788 MB

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

Not tested

  • Whether the title skips an ExecuteIndirect inside an occlusion query in this run: a regression check only
  • 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:7176976561 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2550#issuecomment-7176976561). Originally posted by [xpatfussy69x](https://github.com/xpatfussy69x) on 2026-11-25T22:57:12Z. --- Test run on exact head `e033310` (`e033310cd7b91767391f65080629a79c2664b9f8`, on its base `e1d84b7`, current `main`), 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`: 1424 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 execute_indirect_skipped`: 1 passed, 0 failed - This PR's new tests in the workspace run: - `execute_indirect_skipped_inside_an_occlusion_query_reports_visible`: ok **Regression run** (60 s, default settings, a retail title) 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: e033310cd7b91767391f65080629a79c2664b9f8 gpu: NVIDIA GeForce RTX 3060 title: c3f791f3 seconds: 60 exit: 0x0 frames shown: 1142 (PresentX 1142) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14788 MB ``` No crash or device removal; frames 105 % of `main`'s, peak commit 100 %. **Not tested** - Whether the title skips an ExecuteIndirect inside an occlusion query in this run: a regression check only - 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.
futurepro62 commented 2026-11-25 23:09:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-25T22:52:47Z.


Full-suite run, since this PR has no test report yet. Tested exact head e033310 (on its base e1d84b7).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 1412 passed, 0 failed, 44 ignored. SKIPPED (no wave64): a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu, a_per_lane_2d_or_3d_group_runs_on_the_gpu, coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu, cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu, dispatch_chain_native_wave64_builds_whole, gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware, the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.
  • The new tests ran and passed: execute_indirect_skipped_inside_an_occlusion_query_reports_visible.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 1423 passed, 0 failed, 46 ignored. SKIPPED: f16_programs_on_the_gpu (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), f32_programs_on_the_gpu (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), f32_programs_on_the_gpu (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • --skip leaves out tests that fail on main e1d84b7 too, not because of this PR. On NVIDIA: heap_window_out_of_memory_falls_back_to_the_switch_form (#1651), the four gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu tests, const_and_null_mask_operands_agree_with_hlsl_on_the_gpu and mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu (follow-up on #1651) fail because runner::skip_test turns their skips into failures under XCL_REQUIRE_GPU=mesh, and gpu::dxil::fuzz_tests seeds 70, 545, 1019 and 1507 fail CreateComputePipelineState with E_OUTOFMEMORY on this card (drivers 616.64 and 621.40). On AMD: fuzz_validate_and_gpu_1 fails on seed 540 (res[833] 0x7 vs CPU 0x6). The AMD run does not set XCL_REQUIRE_GPU.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7176892347 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2550#issuecomment-7176892347). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-25T22:52:47Z. --- Full-suite run, since this PR has no test report yet. Tested exact head `e033310` (on its base `e1d84b7`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests`: **1412 passed, 0 failed, 44 ignored**. SKIPPED (no wave64): `a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu`, `a_per_lane_2d_or_3d_group_runs_on_the_gpu`, `coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu`, `cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu`, `dispatch_chain_native_wave64_builds_whole`, `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`, `the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu`. - The new tests ran and passed: `execute_indirect_skipped_inside_an_occlusion_query_reports_visible`. - Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1`: **1423 passed, 0 failed, 46 ignored**. SKIPPED: `f16_programs_on_the_gpu` (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), `f32_programs_on_the_gpu` (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), `f32_programs_on_the_gpu` (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - `--skip` leaves out tests that fail on main `e1d84b7` too, not because of this PR. On NVIDIA: `heap_window_out_of_memory_falls_back_to_the_switch_form` (#1651), the four `gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu` tests, `const_and_null_mask_operands_agree_with_hlsl_on_the_gpu` and `mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu` ([follow-up on #1651](https://github.com/xcl-dev/xcl/issues/1651#issuecomment-7146069648)) fail because `runner::skip_test` turns their skips into failures under `XCL_REQUIRE_GPU=mesh`, and `gpu::dxil::fuzz_tests` seeds 70, 545, 1019 and 1507 fail `CreateComputePipelineState` with `E_OUTOFMEMORY` on this card (drivers 616.64 and 621.40). On AMD: `fuzz_validate_and_gpu_1` fails on seed 540 (`res[833]` 0x7 vs CPU 0x6). The AMD run does not set `XCL_REQUIRE_GPU`. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
DavidM1911 commented 2026-11-25 23:09:23 +00:00 (Migrated from github.com)

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


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

  • cargo test -p xcl --lib: all passed, 0 failed, 26 ignored.

Thanks!

— Devin

<!-- greyfinch-sync:ivall/xcl:comment:7177162599 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2550#issuecomment-7177162599). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T23:06:53Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 26 ignored. Thanks! — Devin
emirduran707 commented 2026-11-26 00:05:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by emirduran707 on 2026-11-25T23:17:03Z.


Independent AMD RDNA4 (native wave64) verification of exact PR head e033310cd7b91767391f65080629a79c2664b9f8 on Windows 11 Pro 26300 (AMD Radeon RX 9060 XT 16 GB, driver 32.0.31044.16, Ryzen 5 5600, Rust 1.100.0 MSVC, DXC 1.9.2602.17).

Tested

  • cargo build --workspace (debug): passed (0 errors).
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 1422 passed, 2 failed, 46 ignored (8 SKIPPED: 6 per-lane DXIL forms refused by host adapter/driver, 1 heap_window_out_of_memory_falls_back_to_the_switch_form no heap windows, 1 pso_measurement_compiles_an_exact_synthetic_record Windows Developer Mode off).
    • The new test hle::d3d12x::bind::tests::execute_indirect_skipped_inside_an_occlusion_query_reports_visible passed on this GPU.
    • The 2 failures (gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 and fuzz_validate_and_gpu_3) are pre-existing on unmodified main on this RX 9060 XT / driver 32.0.31044.16.
  • cargo build --release -p xcl + 60 s retail-title smoke test (scripts/smoke.ps1, offline):
xcl-smoke v1
commit: e033310cd7b91767391f65080629a79c2664b9f8
gpu: AMD Radeon RX 9060 XT
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1577 (PresentX 1577)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13932 MB

(Compare against main 68a284a on this machine: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.)

Not tested

  • NVIDIA / Intel GPUs, Linux / Wine.

AI use

  • Verification run and report prepared with Antigravity (Gemini 4 Neon); all build, test, and smoke results are from live runs on this machine.
<!-- greyfinch-sync:ivall/xcl:comment:7177357651 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2550#issuecomment-7177357651). Originally posted by [emirduran707](https://github.com/emirduran707) on 2026-11-25T23:17:03Z. --- Independent AMD RDNA4 (native wave64) verification of exact PR head `e033310cd7b91767391f65080629a79c2664b9f8` on Windows 11 Pro 26300 (AMD Radeon RX 9060 XT 16 GB, driver `32.0.31044.16`, Ryzen 5 5600, Rust 1.100.0 MSVC, DXC `1.9.2602.17`). **Tested** - `cargo build --workspace` (debug): passed (`0` errors). - `cargo test --workspace --no-fail-fast -- --test-threads=4`: `1422 passed, 2 failed, 46 ignored` (`8 SKIPPED`: 6 per-lane DXIL forms refused by host adapter/driver, 1 `heap_window_out_of_memory_falls_back_to_the_switch_form` no heap windows, 1 `pso_measurement_compiles_an_exact_synthetic_record` Windows Developer Mode off). - The new test `hle::d3d12x::bind::tests::execute_indirect_skipped_inside_an_occlusion_query_reports_visible` passed on this GPU. - The 2 failures (`gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` and `fuzz_validate_and_gpu_3`) are pre-existing on unmodified `main` on this RX 9060 XT / driver `32.0.31044.16`. - `cargo build --release -p xcl` + 60 s retail-title smoke test (`scripts/smoke.ps1`, offline): ``` xcl-smoke v1 commit: e033310cd7b91767391f65080629a79c2664b9f8 gpu: AMD Radeon RX 9060 XT title: 21222967 seconds: 60 exit: 0x0 frames shown: 1577 (PresentX 1577) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13932 MB ``` (Compare against `main` `68a284a` on this machine: `1573 frames, 14420 MB peak, 0 device removals, 0 crashes`.) **Not tested** - NVIDIA / Intel GPUs, Linux / Wine. **AI use** - Verification run and report prepared with Antigravity (Gemini 4 Neon); all build, test, and smoke results are from live runs on this machine.
SlopTart commented 2026-11-26 05:05:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-26T05:04:39Z.


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 execute_indirect_skipped_inside_an_occlusion_query_reports_visible: 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:7183159106 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2550#issuecomment-7183159106). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-26T05:04:39Z. --- **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 `execute_indirect_skipped_inside_an_occlusion_query_reports_visible`: 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.
Decodere commented 2026-11-27 02:29:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T02:29:16Z.


Independent desktop NVIDIA verification of PR #2550 at head e033310cd7b91767391f65080629a79c2664b9f8 (1 commit; exact parent & merge-base: e1d84b7d9153f86a97d2ec5d209d196046fc0bea, pre-#2555 ancestor of main).

Environment

  • 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 (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 (e033310c)

Command Result
cargo test --release -p xcl --lib execute_indirect_skipped_inside_an_occlusion_query_reports_visible -- --nocapture (3 consecutive runs) 1 passed; 0 failed; 0 ignored; 1324 filtered out × 3 (0.00s × 3, 0 skipped)
cargo test --release -p xcl --lib hle::d3d12x::bind:: -- --test-threads=1 (3 consecutive runs) 9 passed; 0 failed; 0 ignored; 1316 filtered out × 3 (0.43s × 3, 0 skipped)
cargo test --release -p xcl --lib hle::d3d12x::list_x:: -- --test-threads=1 (3 consecutive runs) 40 passed; 0 failed; 0 ignored; 1285 filtered out × 3 (1.17s, 1.15s, 1.13s, 0 skipped)
cargo test --release -p xcl --lib hle::d3d12x::pso_async:: -- --test-threads=1 (3 consecutive runs) 14 passed; 0 failed; 0 ignored; 1311 filtered out × 3 (1.19s × 3, 0 skipped)
cargo build --release -p xcl Clean build (1m 08s, exit 0, 0 new warnings)

Paired quiet 60 s retail smoke (title: 29640639)

Exact parent & merge-base (e1d84b7d9153f86a97d2ec5d209d196046fc0bea, cached baseline on the same machine):

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

PR #2550 (e033310cd7b91767391f65080629a79c2664b9f8):

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

Runtime log observations (xcl.log)

  • 9221 log lines, 0 [ERROR] / device-removal / panic lines.
  • Final draw/memory telemetry in log: 19522 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample 14015 MB committed by the process; video memory 6115 MB local, 4682 MB non-local.

Limits of coverage

  • Marking an active occlusion query visible when an ExecuteIndirect is skipped (stand-in/untranslated pipeline) was verified via execute_indirect_skipped_inside_an_occlusion_query_reports_visible (3/3), hle::d3d12x::bind:: (9/9 × 3), hle::d3d12x::list_x:: (40/40 × 3), and hle::d3d12x::pso_async:: (14/14 × 3).
  • The warm-cache 60 s retail smoke on title: 29640639 logged 0 skipped draws/dispatches, so it confirms zero runtime regression on normal occlusion-query / indirect-draw paths (frame-count and commit deltas vs. cached parent reflect single-run startup variance, not this PR).

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

<!-- greyfinch-sync:ivall/xcl:comment:7208167312 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2550#issuecomment-7208167312). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T02:29:16Z. --- Independent desktop NVIDIA verification of **PR #2550** at head `e033310cd7b91767391f65080629a79c2664b9f8` (`1` commit; exact parent & merge-base: `e1d84b7d9153f86a97d2ec5d209d196046fc0bea`, pre-`#2555` ancestor of `main`). ### Environment - **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 (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 (`e033310c`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --lib execute_indirect_skipped_inside_an_occlusion_query_reports_visible -- --nocapture` (3 consecutive runs) | `1 passed; 0 failed; 0 ignored; 1324 filtered out` × 3 (`0.00s` × 3, `0` skipped) | | `cargo test --release -p xcl --lib hle::d3d12x::bind:: -- --test-threads=1` (3 consecutive runs) | `9 passed; 0 failed; 0 ignored; 1316 filtered out` × 3 (`0.43s` × 3, `0` skipped) | | `cargo test --release -p xcl --lib hle::d3d12x::list_x:: -- --test-threads=1` (3 consecutive runs) | `40 passed; 0 failed; 0 ignored; 1285 filtered out` × 3 (`1.17s`, `1.15s`, `1.13s`, `0` skipped) | | `cargo test --release -p xcl --lib hle::d3d12x::pso_async:: -- --test-threads=1` (3 consecutive runs) | `14 passed; 0 failed; 0 ignored; 1311 filtered out` × 3 (`1.19s` × 3, `0` skipped) | | `cargo build --release -p xcl` | Clean build (`1m 08s`, exit `0`, `0` new warnings) | ### Paired quiet 60 s retail smoke (`title: 29640639`) Exact parent & merge-base (`e1d84b7d9153f86a97d2ec5d209d196046fc0bea`, cached baseline on the same machine): ``` xcl-smoke v1 commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1531 (PresentX 1531) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13982 MB ``` PR #2550 (`e033310cd7b91767391f65080629a79c2664b9f8`): ``` xcl-smoke v1 commit: e033310cd7b91767391f65080629a79c2664b9f8 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1598 (PresentX 1599) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14016 MB ``` ### Runtime log observations (`xcl.log`) - `9221` log lines, `0` `[ERROR]` / device-removal / panic lines. - Final draw/memory telemetry in log: `19522 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped)`; last memory sample `14015 MB committed by the process; video memory 6115 MB local, 4682 MB non-local`. ### Limits of coverage - Marking an active occlusion query visible when an `ExecuteIndirect` is skipped (stand-in/untranslated pipeline) was verified via `execute_indirect_skipped_inside_an_occlusion_query_reports_visible` (`3/3`), `hle::d3d12x::bind::` (`9/9` × 3), `hle::d3d12x::list_x::` (`40/40` × 3), and `hle::d3d12x::pso_async::` (`14/14` × 3). - The warm-cache 60 s retail smoke on `title: 29640639` logged `0` skipped draws/dispatches, so it confirms zero runtime regression on normal occlusion-query / indirect-draw paths (frame-count and commit deltas vs. cached parent reflect single-run startup variance, not this PR). *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
throny commented 2026-11-27 21:49:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T21:49:21Z.


merge-check claim
head: e033310cd7

<!-- greyfinch-sync:ivall/xcl:comment:7228785061 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2550#issuecomment-7228785061). Originally posted by [throny](https://github.com/throny) on 2026-11-27T21:49:21Z. --- merge-check claim head: e033310cd7b91767391f65080629a79c2664b9f8
throny commented 2026-11-27 22:11:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T22:11:29Z.


merge-check
base: 2c717a04
head: e033310cd7
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> first full run: 1466 passed, 1 failed, 47 ignored; failing: hle::d3d12x::list_x::tests::a_dispatch_with_a_pipeline_still_building_waits_at_the_submit (assertion on the recorded list: 403 against 421). Reruns on the same merge result: that test alone 6 of 6 passed; the whole lib suite 2 of 2 passed. On the base (2c717a04) it passed, and it passed in about 50 other trees built here tonight (26 SKIPPED lines); base alone: 1466 passed, 0 failed, 47 ignored
review: one thing to look at before merging: the failure above is in a test about a dispatch whose pipeline is still building, which is the area this PR touches (stand-in marking in graphics_bound and around the dispatch), and is_stand_in reads the pipeline's real slot without the done lock, so there is a window between complete() storing it and setting done. I could not tie the failure to that read (1 failure in 3 full runs here, none in the 6 single runs), so it may also be a flaky test of main that happened to show here. Otherwise none blocking: the graphics_bound changes go beyond ExecuteIndirect but are declared in the description; the PR's own test fails without the fix by reading the code.
performance: note_dropped_draw returns at once when no occlusion query is active; is_stand_in costs what is_pending did (reasoned).
verdict: safe to merge (edited after the author's reply: checked in the diff that is_stand_in has one caller, graphics_bound, and that the dispatch path the failing test exercises still uses the unchanged is_pending; and on main that the test's build job gives up after 10 s, so a slow full run can record dispatches without a split. The one failure above is therefore a timing-dependent test of main, not this PR. Build and suite results above are unchanged.)
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, 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:7229107982 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2550#issuecomment-7229107982). Originally posted by [throny](https://github.com/throny) on 2026-11-27T22:11:29Z. --- merge-check base: 2c717a04 head: e033310cd7b91767391f65080629a79c2664b9f8 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> first full run: 1466 passed, 1 failed, 47 ignored; failing: hle::d3d12x::list_x::tests::a_dispatch_with_a_pipeline_still_building_waits_at_the_submit (assertion on the recorded list: 403 against 421). Reruns on the same merge result: that test alone 6 of 6 passed; the whole lib suite 2 of 2 passed. On the base (2c717a04) it passed, and it passed in about 50 other trees built here tonight (26 SKIPPED lines); base alone: 1466 passed, 0 failed, 47 ignored review: one thing to look at before merging: the failure above is in a test about a dispatch whose pipeline is still building, which is the area this PR touches (stand-in marking in graphics_bound and around the dispatch), and is_stand_in reads the pipeline's real slot without the done lock, so there is a window between complete() storing it and setting done. I could not tie the failure to that read (1 failure in 3 full runs here, none in the 6 single runs), so it may also be a flaky test of main that happened to show here. Otherwise none blocking: the graphics_bound changes go beyond ExecuteIndirect but are declared in the description; the PR's own test fails without the fix by reading the code. performance: note_dropped_draw returns at once when no occlusion query is active; is_stand_in costs what is_pending did (reasoned). verdict: safe to merge (edited after the author's reply: checked in the diff that is_stand_in has one caller, graphics_bound, and that the dispatch path the failing test exercises still uses the unchanged is_pending; and on main that the test's build job gives up after 10 s, so a slow full run can record dispatches without a split. The one failure above is therefore a timing-dependent test of main, not this PR. Build and suite results above are unchanged.) hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, 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).
tiagonleal commented 2026-11-27 22:14:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-27T22:14:04Z.


@throny thanks for the check. From reading the code, that test cannot be affected by this PR, and it fails on main without it when the machine is loaded.

  • The test (list_x.rs:7004 on 2c717a04) records 210 calls of bind::dispatch on a compute list. The dispatch path asks pso_async::is_pending (bind.rs:891 in this PR, the same line as on main shifted by the hunks above it), which this PR does not change. is_stand_in is new and has one caller, graphics_bound (bind.rs:601). The other hunks are in execute_indirect, begin_query_x and tests. The test makes no draw and no ExecuteIndirect, so it reaches none of them.
  • The 403 against 421 is a count of list segments: 1 + 2 × 210 expected, so 9 dispatches were recorded without a split.
  • Correction (23:15 UTC): I first wrote here that the cause was the test's build job giving up after 10 s (list_x.rs:7032). That is wrong. With that limit raised to 120 s the test still failed under load on main (1 of 36, left: 247), and in a run with a print in the loop the splits stopped at dispatch 173, 185 ms into the loop, while is_pending was still true. So the stand-in was still building and list_x::defer stopped splitting for another reason, which I have not found yet (candidates: one of the silent None returns in split, or another test in the same process changing the shared list state). What I can stand behind is in the first bullet and in the counts below: the test does not reach this PR's hunks, and it fails on main without this PR.
  • You are right about the unlocked read: is_stand_in loads real without the done lock, so between the two stores in complete() it can say false while is_pending still says true. That only decides whether note_dropped_draw marks an open occlusion query in graphics_bound; it does not touch what is recorded for a dispatch. I can make it read under the lock if you prefer; I have not pushed that because it would move the head.

Measured afterwards on 2c717a04, RTX 5070 Ti (driver 617.42), Ryzen 7 9800X3D, debug:

  • cargo test -p xcl --lib --no-fail-fast -- --test-threads=4, 15 runs on main and 15 on main with this PR merged, alternating, nothing else running: the test passed 30 of 30 (each suite takes about 20 s here).
  • The lib test binary of main alone, without this PR, 6 copies at once with --test-threads=4, 6 rounds (each copy takes 31 to 50 s): the test failed in 1 of 36, with the same assertion (left: 275, right: 421). So it fails on main when the machine is loaded.
  • In all 66 runs the only other failures were fuzz_validate_and_gpu_0 to _3 (every run on this card; #1919 fixes them) and gamesave::tests::read_blob_names_require_a_complete_counted_array in 2 of the 36 loaded runs.

AI use: Claude Code. Claude Opus 5.5 traced the test and the PR's hunks; Claude Fable 5.2 checked the lines named here and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7229145145 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2550#issuecomment-7229145145). Originally posted by [tiagonleal](https://github.com/tiagonleal) on 2026-11-27T22:14:04Z. --- @throny thanks for the check. From reading the code, that test cannot be affected by this PR, and it fails on `main` without it when the machine is loaded. - The test (`list_x.rs:7004` on `2c717a04`) records 210 calls of `bind::dispatch` on a compute list. The dispatch path asks `pso_async::is_pending` (`bind.rs:891` in this PR, the same line as on `main` shifted by the hunks above it), which this PR does not change. `is_stand_in` is new and has one caller, `graphics_bound` (`bind.rs:601`). The other hunks are in `execute_indirect`, `begin_query_x` and tests. The test makes no draw and no ExecuteIndirect, so it reaches none of them. - The 403 against 421 is a count of list segments: 1 + 2 × 210 expected, so 9 dispatches were recorded without a split. - **Correction (23:15 UTC):** I first wrote here that the cause was the test's build job giving up after 10 s (`list_x.rs:7032`). That is wrong. With that limit raised to 120 s the test still failed under load on `main` (1 of 36, `left: 247`), and in a run with a print in the loop the splits stopped at dispatch 173, 185 ms into the loop, while `is_pending` was still true. So the stand-in was still building and `list_x::defer` stopped splitting for another reason, which I have not found yet (candidates: one of the silent `None` returns in `split`, or another test in the same process changing the shared list state). What I can stand behind is in the first bullet and in the counts below: the test does not reach this PR's hunks, and it fails on `main` without this PR. - You are right about the unlocked read: `is_stand_in` loads `real` without the `done` lock, so between the two stores in `complete()` it can say false while `is_pending` still says true. That only decides whether `note_dropped_draw` marks an open occlusion query in `graphics_bound`; it does not touch what is recorded for a dispatch. I can make it read under the lock if you prefer; I have not pushed that because it would move the head. Measured afterwards on `2c717a04`, RTX 5070 Ti (driver 617.42), Ryzen 7 9800X3D, debug: - `cargo test -p xcl --lib --no-fail-fast -- --test-threads=4`, 15 runs on `main` and 15 on `main` with this PR merged, alternating, nothing else running: the test passed 30 of 30 (each suite takes about 20 s here). - The lib test binary of `main` alone, without this PR, 6 copies at once with `--test-threads=4`, 6 rounds (each copy takes 31 to 50 s): the test failed in 1 of 36, with the same assertion (`left: 275`, `right: 421`). So it fails on `main` when the machine is loaded. - In all 66 runs the only other failures were `fuzz_validate_and_gpu_0` to `_3` (every run on this card; #1919 fixes them) and `gamesave::tests::read_blob_names_require_a_complete_counted_array` in 2 of the 36 loaded runs. AI use: Claude Code. Claude Opus 5.5 traced the test and the PR's hunks; Claude Fable 5.2 checked the lines named here and wrote this.
KOLESNiii commented 2026-11-28 01:12:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-28T01:12:29Z.


merge-check claim
head: e033310cd7

<!-- greyfinch-sync:ivall/xcl:comment:7231498895 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2550#issuecomment-7231498895). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-28T01:12:29Z. --- merge-check claim head: e033310cd7b91767391f65080629a79c2664b9f8
KOLESNiii commented 2026-11-28 02:44:23 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-28T02:44:23Z.


merge-check
base: 753e8b1a25
head: e033310cd7
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1513 passed, 0 failed, 47 ignored, 25 SKIPPED: 21 no wave64, 3 per-lane f16/f32 forms refused (#1426 semantics), 1 no heap windows; failing: none. The suite ran on this PC at the same time as 6 other PRs' suites, in one queued job.
review: none. Whole diff read (bind.rs: note_skipped_indirect on the four ExecuteIndirect skip paths, two-pass skip in graphics_bound, is_pending -> is_stand_in; list_x.rs test helpers; pso_async.rs is_stand_in; 1 test). A skipped graphics ExecuteIndirect inside an occlusion query now forces it visible, as a skipped draw does; Dispatch signatures are excluded; a stand-in whose build failed (no real pipeline) now counts as a dropped draw too.
Re-frozen on main 753e8b1a before posting (main changed this PR's files: README / build.rs / pso.rs / pso_async.rs, in code this PR does not touch); the merge diff was read again against it.
performance: reasoned, not measured: work only on the skip paths; occlusion queries around skipped indirect draws read visible, so a title may draw objects it would have culled.
verdict: safe to merge
hardware / tool and model: Windows 11 build 26300.9974, NVIDIA GeForce RTX 2070 SUPER 8 GB (driver 621.40, wave32 only), AMD Ryzen 5 3600XT; rustc 1.100.1 (20ddd0171 2026-11-25) x86_64-pc-windows-msvc, debug test profile; trial merge e2669ec9a5eb034e9aa7c2e7d8fcbe3008170ad7 (local, not pushed). Claude Code: Claude Opus 5.5 (coordination, full-diff review, draft).

<!-- greyfinch-sync:ivall/xcl:comment:7232562260 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2550#issuecomment-7232562260). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-28T02:44:23Z. --- merge-check base: 753e8b1a2568c37248133880328f5fe1d5220193 head: e033310cd7b91767391f65080629a79c2664b9f8 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1513 passed, 0 failed, 47 ignored, 25 SKIPPED: 21 no wave64, 3 per-lane f16/f32 forms refused (#1426 semantics), 1 no heap windows; failing: none. The suite ran on this PC at the same time as 6 other PRs' suites, in one queued job. review: none. Whole diff read (bind.rs: note_skipped_indirect on the four ExecuteIndirect skip paths, two-pass skip in graphics_bound, is_pending -> is_stand_in; list_x.rs test helpers; pso_async.rs is_stand_in; 1 test). A skipped graphics ExecuteIndirect inside an occlusion query now forces it visible, as a skipped draw does; Dispatch signatures are excluded; a stand-in whose build failed (no real pipeline) now counts as a dropped draw too. Re-frozen on main 753e8b1a before posting (main changed this PR's files: README / build.rs / pso.rs / pso_async.rs, in code this PR does not touch); the merge diff was read again against it. performance: reasoned, not measured: work only on the skip paths; occlusion queries around skipped indirect draws read visible, so a title may draw objects it would have culled. verdict: safe to merge hardware / tool and model: Windows 11 build 26300.9974, NVIDIA GeForce RTX 2070 SUPER 8 GB (driver 621.40, wave32 only), AMD Ryzen 5 3600XT; rustc 1.100.1 (20ddd0171 2026-11-25) x86_64-pc-windows-msvc, debug test profile; trial merge e2669ec9a5eb034e9aa7c2e7d8fcbe3008170ad7 (local, not pushed). Claude Code: Claude Opus 5.5 (coordination, full-diff review, draft).
throny commented 2026-11-28 17:47:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T17:47:41Z.


merge-check claim
head: 3df4e01ad2

Re-check of the new head (my earlier check was on the head before the rebase).

<!-- greyfinch-sync:ivall/xcl:comment:7243292075 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2550#issuecomment-7243292075). Originally posted by [throny](https://github.com/throny) on 2026-11-28T17:47:41Z. --- merge-check claim head: 3df4e01ad27eb1a33f7a17bfcd07b1c7b821756f Re-check of the new head (my earlier check was on the head before the rebase).
throny commented 2026-11-28 18:04:00 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T18:04:00Z.


merge-check
base: 10d27297
head: 3df4e01ad2
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2153 passed, 0 failed, 48 ignored (26 SKIPPED lines). Base alone at 10d27297: 2152 passed, 0 failed, 48 ignored.
review: re-check of the new head: an adaptation to main's indirect-signature snapshot (the skipped call is now noted with the signature, the new "unavailable" branch is covered, and the stand-in and two-pass lookups use main's current names). Calls deferred to the submit happen only for dispatch signatures, so no stale query state gets marked. Minor and offered by the author already: the stand-in test reads one field without the lock.
performance: none.
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, 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:7243502553 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2550#issuecomment-7243502553). Originally posted by [throny](https://github.com/throny) on 2026-11-28T18:04:00Z. --- merge-check base: 10d27297 head: 3df4e01ad27eb1a33f7a17bfcd07b1c7b821756f merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2153 passed, 0 failed, 48 ignored (26 SKIPPED lines). Base alone at 10d27297: 2152 passed, 0 failed, 48 ignored. review: re-check of the new head: an adaptation to main's indirect-signature snapshot (the skipped call is now noted with the signature, the new "unavailable" branch is covered, and the stand-in and two-pass lookups use main's current names). Calls deferred to the submit happen only for dispatch signatures, so no stale query state gets marked. Minor and offered by the author already: the stand-in test reads one field without the lock. performance: none. verdict: safe to merge hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, 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:21:32 +00:00 (Migrated from github.com)

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


Triage (#1607) – head f169911

No open or merged PR makes the same change. main still calls note_dropped_draw only for a pending stand-in in graphics_bound. The skipped ExecuteIndirect paths in bind.rs:execute_indirect_snapshot and the skipped two-pass draw leave an open occlusion query reading 0. Draw and DispatchMesh signatures now mark the query visible, and plain Dispatch signatures do not (dispatches() is set only for D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH). is_stand_in also covers a stand-in whose build failed.
No problems found in the diff.
Recommendation: keep open.

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

<!-- greyfinch-sync:ivall/xcl:comment:7305212493 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2550#issuecomment-7305212493). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:21:32Z. --- **Triage (#1607)** – head f169911 No open or merged PR makes the same change. main still calls `note_dropped_draw` only for a pending stand-in in `graphics_bound`. The skipped ExecuteIndirect paths in `bind.rs:execute_indirect_snapshot` and the skipped two-pass draw leave an open occlusion query reading 0. Draw and DispatchMesh signatures now mark the query visible, and plain Dispatch signatures do not (`dispatches()` is set only for `D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH`). `is_stand_in` also covers a stand-in whose build failed. No problems found in the diff. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
gut0to commented 2026-12-01 14:12:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by gut0to on 2026-12-01T14:12:26Z.

Review: COMMENTED


AI-assisted static review: I used an AI assistant to trace this control flow; I checked the command-signature contract against Microsoft documentation.

<!-- greyfinch-sync:ivall/xcl:review:6132979831 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2550#pullrequestreview-6132979831). Originally posted by [gut0to](https://github.com/gut0to) on 2026-12-01T14:12:26Z. **Review:** COMMENTED --- AI-assisted static review: I used an AI assistant to trace this control flow; I checked the command-signature contract against Microsoft documentation.
gut0to commented 2026-12-01 14:12:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by gut0to on 2026-12-01T14:12:27Z.

Code review location: crates/xcl/src/hle/d3d12x/bind.rs; line 1611

@@ -1605,6 +1605,14 @@ fn indirect_signature(sig: usize) -> IndirectSignatureInfo {
         .and_then(|signatures| signatures.get(&sig).copied()).unwrap_or_default()
 }
 
+/// An ExecuteIndirect that could have drawn is skipped: an occlusion query open on the list
+/// reads as visible, as for a skipped draw (`graphics_bound`). A Dispatch signature makes no samples.
+fn note_skipped_indirect(this: *mut c_void, signature: IndirectSignatureInfo) {
+    if !signature.dispatches() {

!dispatches() treats every non-Dispatch signature as draw-capable, but a valid ExecuteIndirect signature can contain only root-argument updates. When that root-only signature is skipped here, note_dropped_draw marks an active occlusion query visible even though no draw produced samples. Could signature classification also record whether a draw argument is present and force visibility only for draw-capable signatures? AI-assisted static review: I used an AI assistant to inspect this path; I checked the signature rules against https://learn.microsoft.com/en-us/windows/win32/api/d3d12/nf-d3d12-id3d12device-createcommandsignature.

<!-- greyfinch-sync:ivall/xcl:review-comment:4755427916 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2550#discussion_r4755427916). Originally posted by [gut0to](https://github.com/gut0to) on 2026-12-01T14:12:27Z. **Code review location:** `crates/xcl/src/hle/d3d12x/bind.rs`; line 1611 ~~~~diff @@ -1605,6 +1605,14 @@ fn indirect_signature(sig: usize) -> IndirectSignatureInfo { .and_then(|signatures| signatures.get(&sig).copied()).unwrap_or_default() } +/// An ExecuteIndirect that could have drawn is skipped: an occlusion query open on the list +/// reads as visible, as for a skipped draw (`graphics_bound`). A Dispatch signature makes no samples. +fn note_skipped_indirect(this: *mut c_void, signature: IndirectSignatureInfo) { + if !signature.dispatches() { ~~~~ --- `!dispatches()` treats every non-Dispatch signature as draw-capable, but a valid `ExecuteIndirect` signature can contain only root-argument updates. When that root-only signature is skipped here, `note_dropped_draw` marks an active occlusion query visible even though no draw produced samples. Could signature classification also record whether a draw argument is present and force visibility only for draw-capable signatures? AI-assisted static review: I used an AI assistant to inspect this path; I checked the signature rules against https://learn.microsoft.com/en-us/windows/win32/api/d3d12/nf-d3d12-id3d12device-createcommandsignature.
tiagonleal commented 2026-12-02 10:13:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by tiagonleal on 2026-12-02T10:13:08Z.

Code review location: crates/xcl/src/hle/d3d12x/bind.rs; line 1611

@@ -1605,6 +1605,14 @@ fn indirect_signature(sig: usize) -> IndirectSignatureInfo {
         .and_then(|signatures| signatures.get(&sig).copied()).unwrap_or_default()
 }
 
+/// An ExecuteIndirect that could have drawn is skipped: an occlusion query open on the list
+/// reads as visible, as for a skipped draw (`graphics_bound`). A Dispatch signature makes no samples.
+fn note_skipped_indirect(this: *mut c_void, signature: IndirectSignatureInfo) {
+    if !signature.dispatches() {

As far as I know D3D12 does not allow a signature with only root-argument updates: it needs exactly one draw or dispatch argument, and it has to be the last one, so that case cannot reach ExecuteIndirect. Your point holds for the classification though. It only recorded Dispatch, so a skipped DispatchRays would have marked the query visible. The signature now notes whether it has a Draw, DrawIndexed or DispatchMesh argument, and only those mark the query. 22d48190 has the change and the tests.

  • Tiago
<!-- greyfinch-sync:ivall/xcl:review-comment:4767955452 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2550#discussion_r4767955452). Originally posted by [tiagonleal](https://github.com/tiagonleal) on 2026-12-02T10:13:08Z. **Code review location:** `crates/xcl/src/hle/d3d12x/bind.rs`; line 1611 ~~~~diff @@ -1605,6 +1605,14 @@ fn indirect_signature(sig: usize) -> IndirectSignatureInfo { .and_then(|signatures| signatures.get(&sig).copied()).unwrap_or_default() } +/// An ExecuteIndirect that could have drawn is skipped: an occlusion query open on the list +/// reads as visible, as for a skipped draw (`graphics_bound`). A Dispatch signature makes no samples. +fn note_skipped_indirect(this: *mut c_void, signature: IndirectSignatureInfo) { + if !signature.dispatches() { ~~~~ --- As far as I know D3D12 does not allow a signature with only root-argument updates: it needs exactly one draw or dispatch argument, and it has to be the last one, so that case cannot reach ExecuteIndirect. Your point holds for the classification though. It only recorded Dispatch, so a skipped DispatchRays would have marked the query visible. The signature now notes whether it has a Draw, DrawIndexed or DispatchMesh argument, and only those mark the query. 22d48190 has the change and the tests. - Tiago
Foniass commented 2026-12-02 10:17:53 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T10:17:53Z.


Follow-up review (head 22d48190, since f169911, diff read, not a merge-check):

  • Triage (keep open, no problems found): still holds; the first commit is unchanged.

New: none. 22d48190 narrows the first commit's condition: with_draws replaces NO_SAMPLES on every signature created in create_command_signature_x (device_x.rs ~1497), so only Draw, DrawIndexed and DispatchMesh signatures can mark an open query visible (signature_draws checks the PC types after pc_argument_type), while DispatchRays and root-argument-only signatures no longer do; a signature never noted keeps could_draw. signature_draws_only_with_a_rasterising_argument and the extended occlusion-query test cover it. It reads as a follow-up to the first commit; squashing it in would match CONTRIBUTING.md's fixup rule.

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

<!-- greyfinch-sync:ivall/xcl:comment:7342260797 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2550#issuecomment-7342260797). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-02T10:17:53Z. --- Follow-up review (head 22d48190, since f169911, diff read, not a merge-check): - **Triage (keep open, no problems found):** still holds; the first commit is unchanged. New: none. `22d48190` narrows the first commit's condition: `with_draws` replaces `NO_SAMPLES` on every signature created in `create_command_signature_x` (`device_x.rs` ~1497), so only Draw, DrawIndexed and DispatchMesh signatures can mark an open query visible (`signature_draws` checks the PC types after `pc_argument_type`), while DispatchRays and root-argument-only signatures no longer do; a signature never noted keeps `could_draw`. `signature_draws_only_with_a_rasterising_argument` and the extended occlusion-query test cover it. It reads as a follow-up to the first commit; squashing it in would match CONTRIBUTING.md's fixup rule. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
fromthemoonx commented 2026-12-03 07:44:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-12-03T07:44:22Z.


merge-check
base: 16c2fd082a
head: 22d48190f2
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 3014 passed, 0 failed, 56 ignored (base: 3012 passed, 0 failed, 56 ignored, counted on 395405e4; only docs and scripts changed since); SKIPPED: 25, the same as base (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps); failing: none. This is the second run: in the first the lib binary ended with 0xc0000005 during the thread-dump test, which is #3586 and happens on main too
review: read the whole diff (4 files, +150 -3). No bug in what it changes. It leaves three dropped draws unmarked, all three the same on main, so none of them blocks it.

  1. Low: two skips of an ExecuteIndirect that could have drawn still leave the query at 0. I ran both in a scratch copy of the PR's test, and the query did not read visible:

    • the two-pass path that ends in an error (two-pass ExecuteIndirect skipped: …; here its arguments were not in a console buffer)
    • a PC pipeline on a list with no title root signature (note_no_root_signature in execute_indirect_snapshot)

    One note_skipped_indirect(this, signature) in each would match the PR's title. I did not test that change.

  2. Low, for a follow-up: a direct DispatchMesh whose pipeline is still being built is not marked either (dispatch_mesh, the DrawPipeline::StandIn arm; same scratch test). From reading, its two-pass error arm and its missing root signature skip are the same.

  3. The tests hold the fix: with note_skipped_indirect switched off, the new test fails at "a pipeline still being built". With only the second commit's condition undone, it fails at "a DispatchRays signature makes no samples". The new test passed 40 of 40 runs.

  4. The graphics_bound change has no test, as the description says: with its is_stand_in note switched off, the bind, device_x and pso_async tests all pass.

  5. Not tested: a retail title (none on this machine), AMD, real occlusion queries on a GPU (the test uses a fake list).
    performance: not measured. The notes are only on skipped calls and return at once when no occlusion query is open. A query around a skipped indirect draw now reads visible, so a title may draw what it would have culled.
    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)

<!-- greyfinch-sync:ivall/xcl:comment:7371366320 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2550#issuecomment-7371366320). Originally posted by [fromthemoonx](https://github.com/fromthemoonx) on 2026-12-03T07:44:22Z. --- merge-check base: 16c2fd082ae2e96967a2ab553bc2e1032e491f70 head: 22d48190f24f1c560b2c16263678b8fe5405858e merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 3014 passed, 0 failed, 56 ignored (base: 3012 passed, 0 failed, 56 ignored, counted on 395405e4; only docs and scripts changed since); SKIPPED: 25, the same as base (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps); failing: none. This is the second run: in the first the lib binary ended with 0xc0000005 during the thread-dump test, which is #3586 and happens on main too review: read the whole diff (4 files, +150 -3). No bug in what it changes. It leaves three dropped draws unmarked, all three the same on main, so none of them blocks it. 1) **Low: two skips of an ExecuteIndirect that could have drawn still leave the query at 0.** I ran both in a scratch copy of the PR's test, and the query did not read visible: - the two-pass path that ends in an error (`two-pass ExecuteIndirect skipped: …`; here its arguments were not in a console buffer) - a PC pipeline on a list with no title root signature (`note_no_root_signature` in `execute_indirect_snapshot`) One `note_skipped_indirect(this, signature)` in each would match the PR's title. I did not test that change. 2) **Low, for a follow-up: a direct `DispatchMesh` whose pipeline is still being built is not marked either** (`dispatch_mesh`, the `DrawPipeline::StandIn` arm; same scratch test). From reading, its two-pass error arm and its missing root signature skip are the same. 3) The tests hold the fix: with `note_skipped_indirect` switched off, the new test fails at "a pipeline still being built". With only the second commit's condition undone, it fails at "a DispatchRays signature makes no samples". The new test passed 40 of 40 runs. 4) The `graphics_bound` change has no test, as the description says: with its `is_stand_in` note switched off, the `bind`, `device_x` and `pso_async` tests all pass. 5) Not tested: a retail title (none on this machine), AMD, real occlusion queries on a GPU (the test uses a fake list). performance: not measured. The notes are only on skipped calls and return at once when no occlusion query is open. A query around a skipped indirect draw now reads visible, so a title may draw what it would have culled. 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)
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/2550:upstream-pr/2550'
git switch 'upstream-pr/2550'

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