Repository navigation
Conversation
DenRakEiw
left a comment
There was a problem hiding this comment.
Tested head f574bf2 (fast-forward on main ffe310e) on Windows 11 x64 (Rust 1.98.1 MSVC) with NVIDIA GeForce RTX 5090 (Blackwell) and WARP:
cargo test -p victory-shader valu_tests: 14 passed, 0 failed (includingfma_k_f16_cvt_pk_16_and_lerp_u8_match_rdna2on both RTX 5090 and WARP)cargo clippy -p victory-shader --all-targets: 0 warningscargo xtask policy: ok
Clean lowering for v_{fmaak,fmamk}_f16, v_cvt_pk_{i16_i32,u16_u32}, and v_lerp_u8, verified on Blackwell hardware and WARP. Approving.
AI-assisted (Gemini 4 Neon).
|
Verified Small codegen note if helpful: |
|
I checked this PR at |
catminou4
left a comment
There was a problem hiding this comment.
Tested locally on macOS arm64 (rustc 1.98.1): PR head merged cleanly into current main (ffe310e), cargo test -p victory-shader --locked → 96 passed, 0 failed. Execution/valu tests are #[cfg(all(test, windows))] and only run on Windows; macOS covers lowering/structure/IR unit tests.
Lowers v_{fmaak,fmamk}f16, v_cvt_pk{i16_i32,u16_u32} and v_lerp_u8 with RDNA2-matched hardware cases (fma_k_f16_cvt_pk_16_and_lerp_u8_match_rdna2).
|
Automated triage for the maintainers. Needs work (small). Thanks for the rebase. It now merges cleanly, and CI What looks right in
What's left:
Generated by Claude Code |
|
Rebased onto \main\ (\940d32f) at $sha. Verified on RTX 3060 Ti + WARP: \ma_k_f16_cvt_pk_16_and_lerp_u8_match_rdna2\ passed, strict Clippy (--all-targets\ and --all-features) clean, \cargo xtask policy\ ok. |
f574bf2 to
4b1a829
Compare
4b1a829 to
249bd88
Compare
|
Addressed triage review at $sha: dropped \�_lerp_u8\ (covered by #1688) and added a regression test confirming \CLAMP=1\ on \�_cvt_pk_{i16_i32,u16_u32}\ is refused by \write_i\ (\integer output modifiers). Verified on RTX 3060 Ti + WARP: \ma_k_f16_and_cvt_pk_16_match_rdna2\ passed, strict Clippy (--all-targets\ and --all-features) clean, \cargo xtask policy\ ok. |
Summary
Lowers 5 missing GFX10/RDNA2 VALU instructions in
victory-shader:v_fmamk_f16(VOP20x037) &v_fmaak_f16(VOP20x038): wired intovalu16/valu16_op, using the literal f16 operand already placed bygfx10::fieldsand preserving the untouched high half ofvdst.v_cvt_pk_i16_i32(VOP30x36b) &v_cvt_pk_u16_u32(VOP30x36a): saturates two 32-bit integers to[-32768, 32767](signed) or[0, 65535](unsigned) and packs them into the low and high 16-bit halves ofvdst.v_lerp_u8(VOP30x14d): computes per-byte(src0.byte[i] + src1.byte[i] + (src2.byte[i] & 1)) >> 1across all 4 bytes.Verification
Tested locally on Windows 11 with NVIDIA GeForce RTX 3060 Ti (
Driver 32.0.16.1656) + Microsoft WARP +dxil.dllvalidator, Rust1.98.1MSVC:cargo clippy --workspace --all-targets --locked -- -D warnings— 0 warningscargo clippy --workspace --all-targets --all-features --locked -- -D warnings— 0 warningscargo test -p victory-shader --locked— 121 passed, 0 failed, 1 ignored (includingfma_k_f16_cvt_pk_16_and_lerp_u8_match_rdna2verifying all 5 opcodes, high-half preservation, signed/unsigned saturation, and per-byte rounding on RTX 3060 Ti and WARP)cargo xtask policy— 154 files ok