shader: pin the opcode-name resolution with unit tests #481
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS#481
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?
@AnastasisKon on GitHub · 2026-11-27 21:58 UTC · original
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 policy@AnastasisKon on GitHub · 2026-11-27 21:58 UTC · original
/claim
github-bot referenced this issue2026-11-27 22:17:24 +00:00
@AnastasisKon on GitHub · 2026-11-27 22:15 UTC · original
/claim
@github-actions[bot] on GitHub · 2026-11-27 22:16 UTC · original
Claimed by @AnastasisKon. Open a draft pull request with
Refs #477in its description within 24 hours, or the claim expires.@AnastasisKon on GitHub · 2026-11-28 12:44 UTC · original
/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.@github-actions[bot] on GitHub · 2026-11-28 12:44 UTC · original
Released. This issue is free to claim.