CI is red on a-publier: depth-bounds test fails on the GPU-less Windows runner #314
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD#314
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@itsonewi on GitHub · 2026-11-26 19:53 UTC · original
Summary
The default branch (
a-publier, headcd8dfc0) cannot pass CI. Both test jobs fail at the same test:test result: FAILED. 386 passed; 1 failed; 34 ignoredtest result: FAILED. 435 passed; 1 failed; 34 ignoredEvidence that the failure is in the base, not in a PR
Both failing runs are on branches whose diff against
cd8dfc0does not touchcrates/victory-gpu:1be739a):compare/cd8dfc0...1be739areportsahead_by: 1and one changed file,crates/victory-hle/src/modules/xmem.rs.1d10722): the same compare reports one changed file,.github/workflows/ci.yml.So the test fails on
cd8dfc0itself. It is not visible on the branch page because.github/workflows/ci.ymlruns only onpull_requestand on pushes tomain(see #278, #286, #289).Where it fails
crates/victory-gpu/src/pipeline/host.rs:1220(depth_bounds_pipeline_loads_and_filters_draws).Host::depth_bounds()is false (pipeline/host.rs:1224).Host::depth_bounds()(crates/victory-gpu/src/host.rs:4191) returnsD3D12_FEATURE_DATA_D3D12_OPTIONS2::DepthBoundsTestSupported.DEPTH_STENCIL1andDepthBoundsTestEnable = true(pipeline/host.rs:1238-1288). The vertex shader writesz = 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_drawrecords the bounds throughState::set_depth_bounds(crates/victory-gpu/src/draw.rs:1235) and replays them (draw.rs:1278), ending indraw::depth_bounds(draw.rs:4650).draw::depth_boundssilently does nothing unless bothhost.depth_bounds()is true andlist.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-latesthas no physical GPU, so D3D12 runs on WARP. Because the test does not skip, the host reportedDepthBoundsTestSupported = true; but the draw with bounds[0.6, 1.0]is not culled. Either WARP advertises the feature without applyingOMSetDepthBounds, or theID3D12GraphicsCommandList1cast 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
draw::depth_boundsreport (or record) when theID3D12GraphicsCommandList1cast fails instead of silently skipping.Environment
windows-latest, Rust 1.98.1 (rust-toolchain.toml)cargo test --workspace --lockedcargo test --workspace --all-features --locked -- --test-threads=1