Repository navigation
Conversation
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 → 97 passed, 0 failed. Hardware/valu/waterfall execution tests are #[cfg(all(test, windows))] and run only on Windows; macOS covers lowering/structure unit tests.
v_mad_u32_u16/v_mad_i32_i16/v_lerp_u8 lowered; mad_32_16_and_lerp_u8_lower_and_validate checks the DXIL container hash against the reference.
|
Rebased onto 70564ae; only the test module conflicted (upstream added the packed-half parameter test). Both tests are kept. mad_32_16_and_lerp_u8_lower_and_validate passes and cargo check -p victory-shader --tests is clean. |
65ae507 to
c7242f1
Compare
|
NVIDIA run: RTX 3070 8 GB, driver 616.56, Windows 11, debug, AI-assisted (Claude Code). Synthetic tests only. |
b380544 to
e3ecc5a
Compare
|
Automated triage for the maintainers. Needs rebase. This PR no longer merges cleanly into Previous verdict for this head: merge candidate. Generated by Claude Code |
|
Test report: RTX 5060 Ti (Blackwell), Windows 11 Pro 26200, driver 621.24. Branch at |
|
Thanks — the same five NVIDIA heap-cap failures as on |
main added Parts::view_marks; the test this branch adds predates it.
37be962 to
8c6ff38
Compare
|
Rebased. Dropped our duplicate |
Implements #1068.
Ports the verified branch from @kilvynsilveira-tech's fork (commit 5319a34 by Kilvy Nog), applied unchanged onto
ffe310e; the commit keeps its original author.Summary
Lower::integerrefused three RDNA2 integer VALU instructions:v_mad_u32_u16andv_mad_i32_i16(16x16 → 32 multiply-add), includingopsellow/high 16-bit selection forsrc0andsrc1.v_lerp_u8: the packed 4x8-bit rounded average,(a[i] + b[i] + (c[i] & 1)) >> 1, withsrc2supplying the rounding bits.Synthetic unit test
mad_32_16_and_lerp_u8_lower_and_validatecovers all three, including theopselhigh halves, and validates the emitted DXIL withdxil.dll.Validation
cargo test -p victory-shader --locked -- --test-threads=1 --skip emit::valu_tests --skip emit::waterfall_tests— passed (103 tests, 1 ignored).cargo clippy -p victory-shader --all-targets --all-features --locked -- -D warnings— passed.cargo xtask policy— passed (154 files).dxil.dllvalidation: passed.