Shaders: add hardware tests for v_cmp_class_f32, integer min3/max3/med3, and f16 signed-zero min/max #1164
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1164
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1164/head"
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?
@geiyiliyabumo on GitHub · 2026-11-24 16:18 UTC · original
geiyiliyabumo:test/valu-f32-class-int3-f16-zero→main· +190 −0 · 1 files · 1 commits · closed without mergingSummary
Relates to #799, Relates to #800, Relates to #802
Full verification details and change notes are documented in #799, #800, #802 (commit
9a173fc, based onmainffe310e).Verification (Windows 11 x64 MSVC)
rustfmt --edition 2024 --checkon edited files: PASScargo xtask policy: PASS (zero game files/data)cargo clippy --all-targets --locked -- -D warnings(default +--features diagnosticswhere applicable): PASSAI-assisted; synthetic tests only, no game files.
@Zipettte on GitHub · 2026-11-24 18:00 UTC · original
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
9a173fc:cargo test -p victory-shaderpasses, 123 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
@DeerSilver on GitHub · 2026-11-24 18:39 UTC · original
Tested head
9a173fcmerged ontomainffe310e(clean merge) on NVIDIA GeForce RTX 5060 Laptop GPU (Blackwell), driver 621.24, Windows 11 26300, Rust 1.98.1: pass. No game files: the test suite only.no SM 6.6skip:v_cmp_class_f32_matches_rdna2v_min3_max3_med3_integers_match_rdna2max_and_min_f16_order_negative_zero_below_positive_zero--all-featuressovictory-gpuenables it, plus a local, uncommittedEnableDebugLayerinemit::host::Host::newfor the shader tests), the run logs no debug-layer message thatmaindoesn't log too.cargo test --workspace --all-features --locked: 349 passed, 0 failed, 6 ignored (mainwith all features: 346 / 6).cargo clippy --workspace --all-targets --locked -- -D warnings, with and without--all-features: clean.These overlap with LouisRiverstone's PRs: #1053 adds a
v_cmp_class_f32_matches_rdna2too, #1052 tests the integerv_min3/v_max3/v_med3, and #1050 the f16 negative-zero ordering. Both versions pass here, but the twov_cmp_class_f32_matches_rdna2tests can't both be merged under that name.AI-assisted (Claude Code).
@geiyiliyabumo on GitHub · 2026-11-24 21:07 UTC · original
Thanks @DeerSilver for verifying on RTX 5060 + D3D12 Debug Layer! Happy to rebase or rename
v_cmp_class_f32_matches_rdna2if #1050/#1052/#1053 land first.AI-assisted; synthetic tests only, no game files.
@Marvisak on GitHub · 2026-11-25 00:33 UTC · original
Automated triage for the maintainers. Closing because another open pull request covers the same change.
See #1052. Tests only: v_cmp_class_f32, integer min3/max3/med3, f16 signed-zero min/max. Main's semantics_tests.rs covers class compares, f16 zeros and integer med3 since today; the integer min3/max3 test is the clean #1052. Same set as #1045 and the clean #1050/#1052/#1053.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed