CI: clippy clean and the depth bounds test on WARP, so main's checks can pass #169
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!169
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-169"
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?
@amine23012004 on GitHub · 2026-11-26 09:52 UTC · original
amine23012004:ci/depth-bounds-on-warp→main· +7 −4 · 2 files · 2 commits · openWhat and why
CI has failed on every push to
mainsince the repository started (12 runs,0a43566to9576c45), so no pull request here can show a green check. Two causes, one commit each:-D warnings) stops atcrates/victory-loader/src/descriptor_sites.rs:277:clippy::missing_transmute_annotationson the test's twotransmutes. Nowtransmute::<usize, F>, the same conversion. (#158 carries the same line among its other changes.)pipeline::host::tests::depth_bounds_pipeline_loads_and_filters_drawsfails in both test jobs:depth 0.5 outside [0.6, 1.0] must be rejected, got 255. The runners have no GPU, so the host is WARP, and WARP passes every fragment when the depth test is off, whatever the bounds. The test now turns the depth test on withALWAYSand no writes. That still always passes, so the bounds are still the only thing that can reject the draw, and WARP applies them. The runtime is unchanged.Tested
depth_bounds_pipeline_loads_and_filters_draws ... ok, with no "skipped" line, so it drew on WARP.mainfails in both jobs on the runners. That is how the WARP behaviour was found; it was not seen on a real GPU.AI-assisted: yes (Claude Code)
🤖 Generated with Claude Code
@amine23012004 on GitHub · 2026-11-26 12:13 UTC · original
Still needed after #140: on current main (
a9400a6, run) the only CI failures left are the two this PR fixes:crates/victory-loader/src/descriptor_sites.rs:277,transmute used without annotations(both transmutes).pipeline::host::tests::depth_bounds_pipeline_loads_and_filters_drawson WARP.The branch still merges cleanly into
a9400a6, so with it main should go green.@Anzymanz on GitHub · 2026-11-26 14:08 UTC · original
Tested on real hardware, since the PR notes it wasn't:
mainatc9c932cb.depth_bounds_pipeline_loads_and_filters_draws ... okon this card. That fits the WARP explanation: the card applies the bounds even with the depth test off, so the failure in CI is WARP's.ALWAYS, no writes):okin 3 of 3 runs, and no "skipped" line, so the draws ran and the bounds rejected and passed as the test expects.So the change keeps the test meaningful on a card while letting WARP pass. I'd prefer it to skipping the test on WARP, which was my first fix, now dropped in favour of this one.
AI-assisted: yes (Claude Code)
@lerapeurdu62280-debug on GitHub · 2026-11-26 14:16 UTC · original · approved these changes
Read the diff. Turning the depth test on with ALWAYS and no writes keeps depth bounds as the only thing that can reject the draw, so the test still checks what it claims, and it now passes on WARP. Together with #241 this should turn main green, which every other open PR is waiting on.
@illuminatedfellow on GitHub · 2026-11-26 16:27 UTC · original · edited 2026-11-26 19:09 UTC
Checked against
main's latest CI run (#176 onc9c932c). It fails on exactly three things:transmute used without annotationsatdescriptor_sites.rs:277— fixed here (dbbd3b1).the function open doesn't need a mutable referenceatwatch.rs:3626— not fixed here. #241 (still open) has the one-line fix (open(&title_memory_changed(at, len), ..),opentakes&Guards).depth_bounds_pipeline_loads_and_filters_drawspanics on WARP (host.rs:1464) — fixed here (6242ea0). The test binds a DSV cleared to 0.5, so turning the depth test on withALWAYSand writes off changes nothing on hardware and lets WARP apply the bounds.Both commits apply cleanly to
c9c932c. So this PR plus #241 turnmain's CI green. Reviewed by reading and against the CI logs; not built locally.Edit: I first wrote that #241 was closed; I misread its status, it is open.
@JoeY54 on GitHub · 2026-11-27 10:38 UTC · original
Supplemental independent Windows / RTX 5090 and WARP evidence supporting this PR's test configuration. This was investigated on upstream main
014d52dedfas incorporated unchanged into my fork baseline 06edc349c8aaaa13c6dc235257e81cd743f7d04c; I did not run this PR's exact head.Windows 11 Pro 26300.9974, Rust 1.98.1 MSVC:
The comparison exercised both freshly created and pipeline-library-loaded PSOs, each with direct OMSetDepthBounds and State::replay:
Stored depth was 0.5. The PSO flag and library load were preserved; direct/replay behaved identically. This supports the adapter/configuration explanation rather than a replay or pipeline-library bug. The old CI logs we inspected did not print an adapter identifier, so this local reproduction alone is not proof of that runner's adapter identity.
I also expanded the regression while keeping its original rejection, acceptance and library-load assertions:
That is 16 draw assertions. The revised WARP test passed, and the combined fork patch passed default/all-features workspace tests on the Windows CI run. Local RTX workspace GPU tests passed in both configurations. The full report, including local default-suite launch-denial/retry and skip caveats, is here.
The test-only diff below is offered for adoption here, not as a competing PR. It is against main
014d52dand includes your same DepthEnable adjustment, so retain your existing configuration hunk when incorporating the additional coverage. It comes from my tested commit e383e94aea42bc62535ced1536370be411595dd3; no runtime changes or test skips.Microsoft's specification defines bounds in terms of stored depth but does not establish ordinary DepthEnable=true as a requirement. The observed WARP DepthEnable=false behavior remains a separate compatibility limitation.
AI-assisted: OpenAI Codex. Original synthetic fixtures only.
Test-only patch against
014d52dView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.