Skip to content

Shaders: cover integer three-way ops, f16 zero order, s_bfe_u32 and f32 class - #1045

Closed
Altorru wants to merge 1 commit into
Marvisak:mainfrom
Altorru:test/valu-int-class
Closed

Altorru wants to merge 1 commit into
Marvisak:mainfrom
Altorru:test/valu-int-class

Conversation

@Altorru

@Altorru Altorru commented Nov 24, 2026

Copy link
Copy Markdown

Sync from Altorru fork

…32 class

The translator handled these RDNA2 instructions but nothing ran them on a
device, so signedness, -0 ordering and the f32 class-bit mapping could break
unseen. Adds the synthetic hardware cases requested in Marvisak#799, Marvisak#800, Marvisak#802 and
@shortselow-byte

Copy link
Copy Markdown

This PR has no CI run yet, so I ran the CI's checks at head bb3a37b (on main ffe310e): Windows 11, Rust 1.98.1 MSVC, AMD Radeon RX 6900 XT (RDNA2).

  • cargo test --workspace --locked -- --test-threads=1: 344 passed, 0 failed, including the new v_med3_min3_max3_integer_matches_rdna2 and v_cmp_class_f32_matches_rdna2 on the AMD device and WARP.
  • cargo clippy --workspace --all-targets --locked -- -D warnings, and with --all-features: clean.
  • cargo xtask policy: ok.

These tests check our translation on the host, not the console. The values they expect are the PR's own, and the description ("Sync from Altorru fork") doesn't say where they come from; a line on the source (ISA text or a hardware measurement) would help a reviewer.

@Zipettte

Copy link
Copy Markdown

Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at bb3a37b: cargo test -p victory-shader passes, 122 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).

Tested with AI assistance (Claude).

@Marvisak

Copy link
Copy Markdown
Owner

Automated triage for the maintainers. Closing because another open pull request covers the same change.

See #1052. Tests only (integer min3/max3/med3, f16 zero order, s_bfe_u32, f32 class). Main's semantics_tests.rs covers class compares, f16 min/max zeros, s_bfe and integer med3 since today; the integer min3/max3 test is the clean #1052. Same set as #1164 and the clean #1048/#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants