CI is red on a-publier: depth-bounds test fails on the GPU-less Windows runner #314

Closed
opened 2026-11-26 19:59:05 +00:00 by github-bot · 0 comments
Owner

@⁠itsonewi on GitHub · 2026-11-26 19:53 UTC · original

Summary

The default branch (a-publier, head cd8dfc0) cannot pass CI. Both test jobs fail at the same test:

thread 'pipeline::host::tests::depth_bounds_pipeline_loads_and_filters_draws' panicked at crates\victory-gpu\src\pipeline\host.rs:1464:9:
assertion `left == right` failed: depth 0.5 outside [0.6, 1.0] must be rejected
  left: 255
 right: 0
  • Default tests: test result: FAILED. 386 passed; 1 failed; 34 ignored
  • Diagnostics tests: test result: FAILED. 435 passed; 1 failed; 34 ignored

Evidence that the failure is in the base, not in a PR

Both failing runs are on branches whose diff against cd8dfc0 does not touch crates/victory-gpu:

  • Run 45883850319 (PR #297, head 1be739a): compare/cd8dfc0...1be739a reports ahead_by: 1 and one changed file, crates/victory-hle/src/modules/xmem.rs.
  • Run 45881316393 (PR #289, head 1d10722): the same compare reports one changed file, .github/workflows/ci.yml.

So the test fails on cd8dfc0 itself. It is not visible on the branch page because .github/workflows/ci.yml runs only on pull_request and on pushes to main (see #278, #286, #289).

Where it fails

  • Test: crates/victory-gpu/src/pipeline/host.rs:1220 (depth_bounds_pipeline_loads_and_filters_draws).
  • It skips only when Host::depth_bounds() is false (pipeline/host.rs:1224). Host::depth_bounds() (crates/victory-gpu/src/host.rs:4191) returns D3D12_FEATURE_DATA_D3D12_OPTIONS2::DepthBoundsTestSupported.
  • The PSO is created with DEPTH_STENCIL1 and DepthBoundsTestEnable = true (pipeline/host.rs:1238-1288). The vertex shader writes z = 0.5 (pipeline/host.rs:1211-1214), the depth buffer is cleared to 0.5 (pipeline/host.rs:1334-1347), and the two draws use bounds [0.6, 1.0] and [0.4, 0.6] (pipeline/host.rs:1463-1464).
  • run_draw records the bounds through State::set_depth_bounds (crates/victory-gpu/src/draw.rs:1235) and replays them (draw.rs:1278), ending in draw::depth_bounds (draw.rs:4650).
  • draw::depth_bounds silently does nothing unless both host.depth_bounds() is true and list.list.cast::<ID3D12GraphicsCommandList1>() succeeds (draw.rs:4655-4659). The cast error is discarded, so a skipped call leaves no trace.

Why it fails on CI

windows-latest has no physical GPU, so D3D12 runs on WARP. Because the test does not skip, the host reported DepthBoundsTestSupported = true; but the draw with bounds [0.6, 1.0] is not culled. Either WARP advertises the feature without applying OMSetDepthBounds, or the ID3D12GraphicsCommandList1 cast fails and the call is skipped. In both cases this test can never pass on the CI runner, and the swallowed cast error makes the cause hard to see.

Suggested fix

  • Have draw::depth_bounds report (or record) when the ID3D12GraphicsCommandList1 cast fails instead of silently skipping.
  • Skip the draw-culling assertion when the adapter is WARP/software, or split the test: keep the pipeline-library round-trip on WARP and assert the actual culling only on hardware.
  • Alternatively, add a WARP-specific test that asserts the documented fallback (no depth-bounds culling) rather than the hardware behavior.

Environment

  • windows-latest, Rust 1.98.1 (rust-toolchain.toml)
  • cargo test --workspace --locked
  • cargo test --workspace --all-features --locked -- --test-threads=1
**@⁠itsonewi** on GitHub · 2026-11-26 19:53 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/314) ## Summary The default branch (`a-publier`, head `cd8dfc0`) cannot pass CI. Both test jobs fail at the same test: ``` thread 'pipeline::host::tests::depth_bounds_pipeline_loads_and_filters_draws' panicked at crates\victory-gpu\src\pipeline\host.rs:1464:9: assertion `left == right` failed: depth 0.5 outside [0.6, 1.0] must be rejected left: 255 right: 0 ``` - Default tests: `test result: FAILED. 386 passed; 1 failed; 34 ignored` - Diagnostics tests: `test result: FAILED. 435 passed; 1 failed; 34 ignored` ## Evidence that the failure is in the base, not in a PR Both failing runs are on branches whose diff against `cd8dfc0` does not touch `crates/victory-gpu`: - Run [45883850319](https://github.com/Belobug/VIctory-Belobug-AMD/actions/runs/45883850319) (PR #297, head `1be739a`): `compare/cd8dfc0...1be739a` reports `ahead_by: 1` and one changed file, `crates/victory-hle/src/modules/xmem.rs`. - Run [45881316393](https://github.com/Belobug/VIctory-Belobug-AMD/actions/runs/45881316393) (PR #289, head `1d10722`): the same compare reports one changed file, `.github/workflows/ci.yml`. So the test fails on `cd8dfc0` itself. It is not visible on the branch page because `.github/workflows/ci.yml` runs only on `pull_request` and on pushes to `main` (see #278, #286, #289). ## Where it fails - Test: `crates/victory-gpu/src/pipeline/host.rs:1220` (`depth_bounds_pipeline_loads_and_filters_draws`). - It skips only when `Host::depth_bounds()` is false (`pipeline/host.rs:1224`). `Host::depth_bounds()` (`crates/victory-gpu/src/host.rs:4191`) returns `D3D12_FEATURE_DATA_D3D12_OPTIONS2::DepthBoundsTestSupported`. - The PSO is created with `DEPTH_STENCIL1` and `DepthBoundsTestEnable = true` (`pipeline/host.rs:1238-1288`). The vertex shader writes `z = 0.5` (`pipeline/host.rs:1211-1214`), the depth buffer is cleared to 0.5 (`pipeline/host.rs:1334-1347`), and the two draws use bounds `[0.6, 1.0]` and `[0.4, 0.6]` (`pipeline/host.rs:1463-1464`). - `run_draw` records the bounds through `State::set_depth_bounds` (`crates/victory-gpu/src/draw.rs:1235`) and replays them (`draw.rs:1278`), ending in `draw::depth_bounds` (`draw.rs:4650`). - `draw::depth_bounds` silently does nothing unless **both** `host.depth_bounds()` is true **and** `list.list.cast::<ID3D12GraphicsCommandList1>()` succeeds (`draw.rs:4655-4659`). The cast error is discarded, so a skipped call leaves no trace. ## Why it fails on CI `windows-latest` has no physical GPU, so D3D12 runs on WARP. Because the test does not skip, the host reported `DepthBoundsTestSupported = true`; but the draw with bounds `[0.6, 1.0]` is not culled. Either WARP advertises the feature without applying `OMSetDepthBounds`, or the `ID3D12GraphicsCommandList1` cast fails and the call is skipped. In both cases this test can never pass on the CI runner, and the swallowed cast error makes the cause hard to see. ## Suggested fix - Have `draw::depth_bounds` report (or record) when the `ID3D12GraphicsCommandList1` cast fails instead of silently skipping. - Skip the draw-culling assertion when the adapter is WARP/software, or split the test: keep the pipeline-library round-trip on WARP and assert the actual culling only on hardware. - Alternatively, add a WARP-specific test that asserts the documented fallback (no depth-bounds culling) rather than the hardware behavior. ## Environment - `windows-latest`, Rust 1.98.1 (`rust-toolchain.toml`) - `cargo test --workspace --locked` - `cargo test --workspace --all-features --locked -- --test-threads=1`
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 19:59:05 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.