Repository navigation
Conversation
|
Hardware run on the RX 7800 XT (RDNA3), Windows 10 x64, Agility SDK 1.616 for SM 6.6:
|
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. Hardware/valu/waterfall execution tests are #[cfg(all(test, windows))] and run only on Windows; macOS covers lowering/structure unit tests.
v_cmp_f_i64/v_cmp_t_i64/v_cmp_f_u64/v_cmp_t_u64 constant 64-bit compares: 59-line diff with an RDNA2 reference test.
|
Rebased onto 70564ae; only the test module conflicted (upstream added more test helpers). Both sets are kept. cargo check -p victory-shader --tests --locked passes; the test itself was already verified on a Radeon RX 7800 XT before the rebase and is unchanged. |
04e65b6 to
d7536bd
Compare
|
NVIDIA run: RTX 3070 8 GB, driver 616.56, Windows 11, debug, AI-assisted (Claude Code). Synthetic tests only. |
Backport Marvisak#1685 unchanged, preserving Davi713's original commit. Verified 119 portable shader tests and Windows MSVC-target test compilation. The PR records earlier native AMD validation; native execution was not rerun here.
…difiers
v_cmp_{f,t}_{i64,u64} return their constant before reading sources, so
they no longer refuse on modifiers or unpaired sources (VIctory-zhai
d7536bd / c012f2d, Davi713, Marvisak/VIctory#1685).
v_frexp_mant_f32 and v_ldexp_f32 apply abs/neg to the raw sign bit, and
tb_ldexp returns an infinity or NaN unchanged, so a NaN keeps its bits
(leonida 5f063e58, milk4sale). The binary64 roundings of leonida 26d010b4
were already integer ops that keep NaN bits and round subnormals.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
d7536bd to
d869333
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 |
|
Hardware run on an RX 7800 XT (RDNA3), Windows 10 19045, SM 6.6 via the Agility runtime for the test binaries (#486): |
d869333 to
803c7f3
Compare
|
Rebased. The |
Implements #1531.
Ports the fix from @davi713albano-coder's fork (commit 41715fc by Davi713), applied unchanged onto
ffe310e; the commit keeps its original author.Summary
The
u64 | i64arm ofemit::lower::comparefell through toErr("a 64-bit compare")for the constant-true and constant-false compares, while the 32-bit arm handled them withself.lane(inst, Some(op == "t")).v_cmp_{f,t}_{i64,u64}andv_cmpx_{f,t}_{i64,u64}now short-circuit beforesrc64, so a constant compare does not set theInt64flag (SFI0bit 0x8000) it does not need.Test
New synthetic compute test
v_cmp_f_and_t_64bit_match_rdna2coversv_cmp_f_i64,v_cmp_t_i64,v_cmp_f_u64andv_cmp_t_u64: dxil.dll validation, absence of theInt64flag, and execution on D3D12 hardware/WARP.Validation
cargo test -p victory-shader --locked -- --test-threads=1 --skip emit::valu_tests --skip emit::waterfall_tests— passed (102 tests, 1 ignored).cargo clippy -p victory-shader --all-targets --all-features --locked -- -D warnings— passed.cargo xtask policy— passed (154 files).