Repository navigation
Conversation
RDNA2 reads only the low half in v_cmp_*/v_cmpx_* over f16, u16 and i16, whatever op_sel says; VIctory honoured it and compared the wrong half. The arithmetic paths still honour op_sel. Adds a test for the f16 and u16 compares with op_sel set and clear (Marvisak#833).
f73ce5b to
0d918ce
Compare
|
Windows CI passed: https://github.com/Altorru/VIctory/actions/runs/45393331977 — clippy (default and all-features) and cargo test --workspace. |
|
Windows CI passed: 45393331977 — clippy (default and all-features) and cargo test --workspace. v_cmp_16bit_ignores_vop3_op_sel ran and reports ok on WARP. The first run failed to compile because the test passed tuples to run_cases; fixed by separating inputs and expected values. Ready for merge or cherry-pick by a Marvisak collaborator. |
1 similar comment
|
Windows CI passed: 45393331977 — clippy (default and all-features) and cargo test --workspace. v_cmp_16bit_ignores_vop3_op_sel ran and reports ok on WARP. The first run failed to compile because the test passed tuples to run_cases; fixed by separating inputs and expected values. Ready for merge or cherry-pick by a Marvisak collaborator. |
|
CI pass confirmed: 45393331977 — clippy + all-features + cargo test --workspace. v_cmp_16bit_ignores_vop3_op_sel ok on WARP. No game data. Ready for merge/cherry-pick. |
- Add hex = "0.4" crate dependency to victory-loader - Replace custom hexDecode() with hex::decode() - Add parse_victory_patch() and apply_victory_patches() functions - Support format: <module>:<rva hex>:<hex bytes> - Log patch applications via tracing::info!
Fixes Marvisak#833. On RDNA2,
v_cmp_*/v_cmpx_*over f16, u16 and i16 ignore VOP3op_seland compare the low 16 bits; VIctory read the high half when the bit was set. Arithmetic paths still honourop_sel, andv_cmp_class_f16is unchanged (the issue notes its op_sel behaviour was not measured).Changes:
half_src/half_fsrckeep their behaviour; newhalf_cmp_src/half_cmp_fsrcignore VOP3op_selbut still honour an SDWA word select.v_cmp_16bit_ignores_vop3_op_selcoversv_cmp_lt_f16andv_cmp_lt_u16withop_sel:[1,0]and a clear control; the second f16 case is true only ifop_selis wrongly honoured, and the u16 case is the same trap.No game data. Verified by this PR's Windows CI (clippy default/all-features,
cargo test --workspace).AI-assisted: written by an agent (Codebuff) at the reporter's request; no local hardware, so CI's WARP run is the first execution.