Repository navigation
Shaders: hardware test for v_cvt_f16_u16 and v_cvt_f16_i16 - #990
Merged
Marvisak merged 2 commits intoNov 25, 2026
Merged
Conversation
JMAN730
pushed a commit
to JMAN730/project-flamingo
that referenced
this pull request
Nov 24, 2026
|
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at 8d67fa5: Tested with AI assistance (Claude). |
nazmi
pushed a commit
to nazmi/VIctory
that referenced
this pull request
Nov 24, 2026
Applied as the net diff of upstream PR Marvisak#990 (head 8d67fa5), 2 commits: 8d67fa5,45ed8e32.
|
Tested head
AI-assisted (Claude Code). |
github-actions Bot
added a commit
to KevinPratap/VIctory
that referenced
this pull request
Nov 24, 2026
github-actions Bot
added a commit
to KevinPratap/VIctory
that referenced
this pull request
Nov 24, 2026
KainanP
pushed a commit
to KainanP/VIctory
that referenced
this pull request
Nov 24, 2026
…fied together Merges Marvisak#156 Marvisak#162 Marvisak#168 Marvisak#169 Marvisak#368 Marvisak#379 Marvisak#456 Marvisak#587 Marvisak#990 Marvisak#1021 Marvisak#1048 Marvisak#1052 Marvisak#1053 Marvisak#1095 Marvisak#1142 Marvisak#1190 Marvisak#1211 Marvisak#1223 Marvisak#1259 Marvisak#1293 on top of the bundle of Marvisak#1402 (which is on Marvisak#1319, on main ffe310e), each head unchanged. Hunks that conflicted in emit/lower.rs, emit/valu_tests.rs and emit/diff_tests.rs were merged by keeping both sides (additions next to each other); a PR was kept only if cargo clippy -p victory-shader --all-targets -- -D warnings still passed with it. No instruction name is handled in two places. Marvisak#98 is not in this version: an offline measurement on a retail dump showed it loses 31 programs that validate on Marvisak#1402. cargo clippy --workspace --all-targets --locked -- -D warnings, with and without --all-features, is clean and cargo test --workspace --locked passes (381 passed, 6 ignored; main has 342 passed, 6 ignored). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
github-actions Bot
added a commit
to KevinPratap/VIctory
that referenced
this pull request
Nov 24, 2026
github-actions Bot
added a commit
to KevinPratap/VIctory
that referenced
this pull request
Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #866.
v_cvt_f16_u16(0x050) andv_cvt_f16_i16(0x051) had no hardware test, while their siblings 0x052/0x053 do. The signed one sign-extends withShl 16+AShr 16, which nothing exercised.New test
v_cvt_f16_u16_and_i16_widen_the_integer_first, in the same shape asv_cvt_u16_and_i16_f16_saturate: it runs 7 inputs through both opcodes, covering zero, 1.0, 2047, the sign flip at 0x8000, 64512 / -1024, and the signed -2 / -1 that exercise theShl 16+AShr 16sign-extension.The cases are limited to integers f16 holds exactly. The first version also asserted round-to-nearest (32767 -> 32768) and failed in CI: on
mainthe f32 -> f16 narrowing truncates (0x77ff), which #422 changes. Rounding cases belong with that fix, so the unsigned 65534/65535 overflow cases are skipped here too.Test only, no production change. Expected values were checked against IEEE half conversion. The table in #866 lists
0x0001as0x0400; that is 2^-14, and 1 is0x3C00, which is what the test asserts.Verify:
cargo test -p victory-shader v_cvt_f16_u16_and_i16(Windows, needs a GPU or WARP).I could not run it locally: the shader test module is Windows-only.
🤖 Generated with Claude Code