Shaders: 16-bit compares ignore VOP3 op_sel #1043

Closed
Altorru wants to merge 2 commits from upstream-pr/1043 into main
Altorru commented 2026-11-24 15:15:31 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Altorru on 2026-11-24T15:15:31Z.


Sync from Altorru fork

<!-- greyfinch-sync:Marvisak/VIctory:issue:6585049774 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1043). Originally posted by [Altorru](https://github.com/Altorru) on 2026-11-24T15:15:31Z. --- Sync from Altorru fork
shortselow-byte commented 2026-11-24 16:05:24 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by shortselow-byte on 2026-11-24T15:51:42Z.


This PR has no CI run yet, so I ran the CI's checks at head f23c493 (on main ffe310e): Windows 11, Rust 1.98.1 MSVC, AMD Radeon RX 6900 XT (RDNA2).

  • cargo test --workspace --locked -- --test-threads=1: 343 passed, 0 failed, including v_cmp_16bit_ignores_vop3_op_sel (AMD device and WARP).
  • cargo clippy --workspace --all-targets --locked -- -D warnings fails, from the second commit (VICTORY_PATCH: refine hex crate support), not the compare change:
error: this let-binding has unit value
   --> crates\victory-loader\src\prepare.rs:217:9
    |
217 |         let _ = bytes[*rva as usize..*rva as usize + new_bytes.len()].copy_from_slice(new_bytes);

Two notes:

  • That commit (victory-loader/src/prepare.rs, a new dependency in Cargo.lock) is unrelated to the title and has no description; it probably belongs in its own PR.
  • The compare change overlaps #926, which makes the same fix (16-bit compares ignore VOP3 op_sel, v_cmp_class left alone) and is already reviewed and approved.
<!-- greyfinch-sync:Marvisak/VIctory:comment:7136736263 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1043#issuecomment-7136736263). Originally posted by [shortselow-byte](https://github.com/shortselow-byte) on 2026-11-24T15:51:42Z. --- This PR has no CI run yet, so I ran the CI's checks at head `f23c493` (on `main` `ffe310e`): Windows 11, Rust 1.98.1 MSVC, AMD Radeon RX 6900 XT (RDNA2). - `cargo test --workspace --locked -- --test-threads=1`: 343 passed, 0 failed, including `v_cmp_16bit_ignores_vop3_op_sel` (AMD device and WARP). - `cargo clippy --workspace --all-targets --locked -- -D warnings` fails, from the second commit (`VICTORY_PATCH: refine hex crate support`), not the compare change: ``` error: this let-binding has unit value --> crates\victory-loader\src\prepare.rs:217:9 | 217 | let _ = bytes[*rva as usize..*rva as usize + new_bytes.len()].copy_from_slice(new_bytes); ``` Two notes: - That commit (`victory-loader/src/prepare.rs`, a new dependency in `Cargo.lock`) is unrelated to the title and has no description; it probably belongs in its own PR. - The compare change overlaps #926, which makes the same fix (16-bit compares ignore VOP3 `op_sel`, `v_cmp_class` left alone) and is already reviewed and approved.
Zipettte commented 2026-11-24 17:04:32 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T16:30:22Z.


Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at f23c493: cargo test -p victory-loader -p victory-shader passes, 146 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).

Tested with AI assistance (Claude).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7137770310 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1043#issuecomment-7137770310). Originally posted by [Zipettte](https://github.com/Zipettte) on 2026-11-24T16:30:22Z. --- Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at f23c493: `cargo test -p victory-loader -p victory-shader` passes, 146 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed). _Tested with AI assistance (Claude)._
upstream-sync closed this pull request 2026-11-25 01:05:22 +00:00
Marvisak commented 2026-11-25 01:07:58 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:31:00Z.


Automated triage for the maintainers. Closing because another open pull request covers the same change.

See #926. 'Sync from fork': besides the op_sel change of #926 it adds an undisclosed VICTORY_PATCH that rewrites title image bytes in every build (uses the RVA as a file offset, panics past the end) and a new hex dependency, plus reformatting.

If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7148588559 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1043#issuecomment-7148588559). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T00:31:00Z. --- Automated triage for the maintainers. Closing because another open pull request covers the same change. See #926. 'Sync from fork': besides the op_sel change of #926 it adds an undisclosed VICTORY_PATCH that rewrites title image bytes in every build (uses the RVA as a file offset, panics past the end) and a new `hex` dependency, plus reformatting. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!1043
No description provided.