Repository navigation
Shaders: honor WARP-only mode in paired tests - #2225
andrewpozdnakov7-jpg wants to merge 3 commits into
Conversation
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified locally merged onto origin/main (940d32f, Windows 11 x64, NVIDIA GeForce RTX 5090 + WARP, Rust 1.98.1 MSVC):
cargo test -p victory-shader --lib emit::memory_tests::— 3 passed, 0 failed on both RTX 5090 hardware andVICTORY_D3D12_WARP=1cargo clippy -p victory-shader --all-targets— 0 warningscargo xtask policy— ok (183 files ok)
Clean test_backends() helper honoring WARP-only mode across paired shader tests. Looks good.
AI-assisted (Gemini 4 Neon).
|
I checked the remaining lane-permute failure separately. Native DXC HLSL with A native constant-index broadcast of lane 5 returned 1005, and selecting among 32 constant-index broadcasts returned the expected result for every lane. This isolates the remaining failure to the variable-index WARP shuffle seen by the existing test. If you reuse the test changes or the native control in another commit, please preserve the original Git author. If you fold them into your own commit, please add: Co-authored-by: andrewpozdnakov7-jpg andrewpozdnakov7-jpg@users.noreply.github.com |
|
Checked the env semantics: |
Offline measurement on a retail dumpResult: no count change against I merged head b3a6869 onto No program changes its failure reason. The count shows that the change rejects nothing on this data. It does not show whether the output is right. No shader names or data are included, per the asset policy. AI-assisted (Claude Code). |
|
Automated triage for the maintainers. Merge candidate. Thanks for the follow-up. CI: passing. Generated by Claude Code |
|
I resolved the With Please preserve the Git author if moving the test changes. If they are folded into another commit, please retain this trailer. Co-authored-by: andrewpozdnakov7-jpg andrewpozdnakov7-jpg@users.noreply.github.com AI-assisted with Codex. Synthetic shader fixtures on Windows/WARP. |
|
I checked how this branch composes with #2997. The exact #2225 head Using the same app-local WARP, DXIL validator configuration, and serial shader test command, #2997 alone gives 300 passed, 2 failed, and 3 ignored. The combination gives 301 passed, 1 failed, and 3 ignored. The explicit-LOD gather test is the added pass, and both permutation checks still pass. The existing edge-flagged mesh triangle test reports 0 of 256 lit pixels on both trees with this WARP build. Please keep my Git author if you move the paired-backend fix. If you fold it into another commit, please include: Co-authored-by: andrewpozdnakov7-jpg andrewpozdnakov7-jpg@users.noreply.github.com AI-assisted with Codex. Synthetic shader fixtures. |
|
I merged current main With VICTORY_WARP=1 on Windows, the D16 probe requested two hardware-labelled cases plus two WARP cases before and only the two WARP cases after. The FMad probe went from one case with each label to one WARP case. With the override unset, both probes still attempt both backends. The serial app-local WARP run moved from 298 passed / 4 failed / 3 ignored to 299 passed / 3 failed / 3 ignored. The divergent lane-permute test now passes. The two remaining lane-permute failures and the edge-flagged triangle failure were present on the input tree. Strict shader Clippy and asset policy passed. Please preserve my Git author if you move these test changes. If you fold them into another commit, please include: Co-authored-by: andrewpozdnakov7-jpg andrewpozdnakov7-jpg@users.noreply.github.com AI-assisted with Codex. Synthetic Windows/WARP tests. |
Change
Paired shader tests now use one adapter selector. With
VICTORY_WARP=1, they run the WARP case once. Without the override, they keep both cases and try the hardware adapter first.Previously the hardware case created WARP when the override was set. The explicit-LOD gather test then used WARP's native gather as its hardware reference, even though the test already accounts for the different rounding on WARP.
Verification
Same gather fixture on
940d32f69b22265690a0b5a15d6ded572ba33baf, with WARP forced. Before, the hardware comparison failed at lane 4. After, WARP executes and both translated gather paths match the expected footprint for all 32 records.Full shader suite: 244 passed / 3 failed / 3 ignored before, 245 passed / 2 failed / 3 ignored after. The pre-existing lane-permute and edge-flagged mesh tests still fail on this WARP runtime. Strict shader Clippy and staged asset policy passed.
AI-assisted with Codex.