CI: clippy clean and the depth bounds test on WARP, so main's checks can pass #169
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from avatarmanz/VIctory-7900XTX. Originally posted by amine23012004 on 2026-11-26T09:52:46Z.
What 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
Imported from avatarmanz/VIctory-7900XTX. Originally posted by amine23012004 on 2026-11-26T12:13:35Z.
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.Imported from avatarmanz/VIctory-7900XTX. Originally posted by Anzymanz on 2026-11-26T14:08:54Z.
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)
Imported from avatarmanz/VIctory-7900XTX. Originally posted by lerapeurdu62280-debug on 2026-11-26T14:16:01Z.
Review: APPROVED
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.
Imported from avatarmanz/VIctory-7900XTX. Originally posted by illuminatedfellow on 2026-11-26T16:27:50Z.
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.
Imported from avatarmanz/VIctory-7900XTX. Originally posted by JoeY54 on 2026-11-27T10:38:31Z.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.