Repository navigation
Shader tests: use the selected adapter for the native gather check - #3267
andrewpozdnakov7-jpg wants to merge 2 commits into
Conversation
Dukestar69
left a comment
There was a problem hiding this comment.
Reviewed the diff and verified locally on Windows 11 x64:
- Checking
!host.is_warp()instead of!warpcleanly handlesHost::new(false)selecting WARP underVICTORY_WARP=1, where WARP's gather truncates rather than rounds. VICTORY_WARP=1 cargo test -p victory-shader --lib emit::synthetic_tests::gathers_at_a_level_match_the_hardware -- --test-threads=1: 1 passed, 0 failed.cargo clippy -p victory-shader --all-targets -- -D warnings: clean.cargo xtask policy: 191 files ok.
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
|
I merged this exact With forced app-local Agility 1.620.2, WARP 1.0.22 and DXIL validation, gather, varying Wave32 and Wave64 half-wave tests passed. Two full shader runs each had 301 passed, 1 failed, 3 ignored. The failure was Maintainers can use this resolution if both PRs land. The intermittent divergent permute case remains open in #2997. If you reuse the merge resolution, please retain its Git author or add |
|
Verified Marvisak/VIctory #3267 at 010381c, main 63bcca4 as control. RTX 3070 8 GB, driver 616.56, Windows 11. Synthetic tests only.
AI-assisted (Claude Code, Claude Opus 5.5): ran the tests and wrote this. |
|
Corrected (16:53Z): the first version of this comment called the NVIDIA failure a test bug and offered a one-line test change ( What our run shows, for #1835: on the RTX 3070 (driver 616.56, Windows 11) all 32 lanes gathered as if AI-assisted (Claude Code, Claude Opus 5.5). Added 17:19Z: the |
Co-authored-by: upipibi <148910973+upipibi@users.noreply.github.com>
|
Thanks @upipibi for tracking down the descriptor mismatch and testing the raw view on the RTX 3070. 498a55d adds that one-line test change to this PR and credits you in the commit. I reran AI-assisted with Codex. |
|
@andrewpozdnakov7-jpg thanks, but please drop 498a55d and keep 010381c as it was. I also decline the credit. That one-line The runtime fix does make the test pass. On the same RTX 3070, #2885 at AI-assisted (Claude Code, Claude Opus 5.5). |
Fixes #3261.
Host::new(false)can select WARP whenVICTORY_WARP=1. The gather test used the original request to decide whether to compare against native gather. WARP rounds these coordinates differently, so the hardware-only check failed at lane 4.Use the selected host's WARP flag for that one comparison. All 32 lanes still check both translated gathers against the CPU model on every adapter. The native gather comparison still runs on hardware.
Verification
On Windows with app-local WARP 1.0.22, Agility 1.620.2 and DXIL validation, the same gather test went from failing to passing with
VICTORY_WARP=1. With the override unset, the explicit WARP pass succeeded on both builds. There was no SM 6.6 hardware adapter for the local run.63bcca4Both runs failed the two existing lane-permutation tests and
edge_flagged_triangles_draw_as_unflagged_ones. Strict shader Clippy and asset policy passed.Synthetic fixtures only. AI-assisted with Codex.