Tests: add VALU hardware tests for integer min3/max3/med3, class_f32 and s_bfe_u32 #278
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!278
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-278"
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?
@towiice on GitHub · 2026-11-24 23:09 UTC · original
towiice:feat/valu-hardware-tests-and-gnullvm-delayload→main· +152 −0 · 1 files · 1 commits · openTest-only: synthetic GFX10 tests in
crates/victory-shader/src/emit/valu_tests.rs. Rebased onc96b4f2as one commit.What is in it
v_min3/max3/med3(_i32,_u32)max_and_min_order_negative_zero_below_positive_zerov_cmp_class_f32: the ten IEEE classes, complement and zero masks, ignored upper bitss_bfe_u32added tobfe_signed_and_unsigned_match_rdna2, including width 32The earlier MinGW delay-load change is no longer in this PR (thanks @ErRusso).
Tested (
b83cce1; GTX 1650 SUPER, driver 32.0.16.1088, Windows 11, Rust 1.98.1x86_64-pc-windows-gnullvm)cargo test --locked -p victory-shader --lib valu_tests: 22 passed, 0 failed, 1 ignored.cargo test --workspace --locked --no-fail-fast: 506 passed, 1 failed, 8 ignored. The failure isload_probe: building its fixture fails to link on gnullvm (/DELAYLOAD).cargo clippy --workspace --all-targets --locked -- -D warningsfails withplaced_filler_twinsis never used (crates/victory-gpu/src/resource.rs), a file this PR does not touch.rustfmt --checkreports differences in this file only outside the lines this PR adds.Not tested
AI use
@towiice on GitHub · 2026-11-24 23:38 UTC · original · edited 2026-11-25 04:58 UTC
Thanks @ErRusso for catching the GNU
ldvsllddifference onx86_64-pc-windows-gnu. Thetests/fixtures/hle-probe/build.rschange is no longer in this PR. The head is nowb83cce1, a single commit that only touchescrates/victory-shader/src/emit/valu_tests.rs.On your note that the tests need a Windows hardware run: on a GTX 1650 SUPER (Windows 11,
x86_64-pc-windows-gnullvm),cargo test --locked -p victory-shader --lib valu_testsgave 22 passed, 0 failed, 1 ignored. Could you take another look when you have time?(Edited with Claude Code, Claude Sonnet 5.5.)
@HAL9000RELOADED on GitHub · 2026-11-25 08:08 UTC · original
An AMD run for the "not tested on AMD" note.
Setup: Radeon RX 7900 XTX (RDNA3, waves of 32 to 64 lanes), Adrenalin 32.0.32015.7029, i7-13700KF, Windows 10 Pro 22H2 (19045), Rust 1.98.1. Windows 10's in-box D3D12 stops at SM 6.5, so the tree also carries the D3D12 Agility SDK 1.620 (the same approach as #69). The DXIL validator comes from SDK 10.0.26100 (
VICTORY_DXIL). WARP stays below SM 6.6 on this machine, so the GPU cases ran on the card only. No game data used.Base:
mainc96b4f2plus the Agility patch and the stack-headroom test fix from Marvisak/VIctory#742. The PR headb83cce1was merged on top of it.v_cmp_class_f32_matches_rdna2andv_med3_min3_max3_integer_matches_rdna2pass on the card, and so does the extendedbfe_signed_and_unsigned_match_rdna2(withs_bfe_u32). Only WARP printed "skipped", so the hardware device ran every case. The whole workspace with this PR: 507 passed, 0 failed.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.