shader: pin the opcode-name resolution with unit tests #477
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-27T21:58:18Z.
What
crates/victory-shader/src/gfx10resolves an encoding plus an opcode word to an instruction name.apps/victory's survey counts opcodes it cannot name (shader.rs), and refusal messages and corpus comparisons read the same names — yet nothing tests the resolution, so a table edit can silently rename an instruction.What this pins
0x140is RDNA2'sv_fma_legacy_f32(#321);Test-only: synthetic instruction words and opcodes, no game data, no behaviour change, no new dependencies.
How it was tested
cargo test -p victory-shader(new unit tests)cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warningscargo xtask policyImported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-27T21:58:27Z.
/claim
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-27T22:15:54Z.
/claim
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T22:16:04Z.
Claimed by @AnastasisKon. Open a draft pull request with
Refs #477in its description within 24 hours, or the claim expires.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T12:44:32Z.
/release - done without a PR: on branch
vibe/opcode-name-tests-1705ac, in my fork'smain. Opcode-name resolution is pinned byevery_table_entry_resolves_to_its_own_name,tables_are_sorted_so_the_binary_search_finds_them,vop3_carries_vopc_vop2_and_vop1_at_their_bases_and_its_own_table_betweenandan_opcode_past_the_end_of_a_table_has_no_name.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-28T12:44:40Z.
Released. This issue is free to claim.