xshader: check RDNA2 opcode tables against gfx1013 references (was #49) #201
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
library
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/omonkeyz--xbox-emulator!201
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/201/head"
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?
@QuentinDanblon on GitHub · 2026-11-23 01:02 UTC · original
QuentinDanblon:pr/isa-table→main· +3055 −12 · 8 files · 1 commits · closed without mergingLibrary / area: tombox-xshader (RDNA2 decoder tables, GCN lowering)
Exports changed (exports.txt rows): none
Source of the behaviour: LLVM AMDGPU MC test vectors for
gfx1013andgfx7(llvm-project963ab285f26c, Apache-2.0 WITH LLVM-exception) and AMD's machine-readable RDNA1 / RDNA2 ISA specification (MIT). Both get theirTHIRD_PARTY/CREDITSline in this PR.Part of the split of #152 (was #49). Based on
c2a3522. 8 files, +3,055 / -12, of which 2,817 lines are the two reference tables (tests/isa_table/gfx1013.txtandgfx7.txt: mnemonic lists, no code) that you said could come with the first PR that uses them. The code and test part is 238 lines.tests/isa_table.rschecks two things:Fixes found by the check:
0x36/0x37/0x38(VOP30x136) arev_fmac_f16/v_fmamk_f16/v_fmaak_f16on GFX10. The decoder named themv_mac_f16/v_madmk_f16/v_madak_f16.madmk,madak,fmamk,fmaak,v_pk_fmac_f16,v_swap_b32). VINTRP op 3 is undefined. MIMG gather4 has no_d/_d_clforms.s_memtimeis0x1eands_dcache_inv0x1fon GFX7 (0x1d, the volatile invalidate, maps tos_dcache_inv).buffer_wbinvl1(_vol)lowers tobuffer_gl0_inv+buffer_gl1_inv.image_atomic_rsubis refused, next to the R128 / TFE / LWE refusals.The CI failure of #152 after #140 and #141 is fixed here:
v_min_legacy_f32,v_max_legacy_f32andv_cvt_pkaccum_u8_f32are listed as equivalents of their lowerings. MiguelMatMar found the mismatch and proposed these lines in #152, and is named in the commit message.Results
WARP,
--release, this branch alone onc2a3522:cargo test -p tombox-xshader --lib --test isa_table --test mixed_table --test opcodes: lib 90 passed (2 ignored), isa_table 3, mixed_table 3, opcodes 24, 0 failed.v_med3_f32, SMEM) merged together onc2a3522,cargo test -p tombox-xshader, all targets: 0 failed. exec 115 passed (2 ignored), lib 90, mesh 26, opcodes 24, synthetic 24, isa_table 3, linkage 3, mixed_table 3, gcn_dims 3.isa_sweep: 541 mnemonics, 530 pass, 0 fail, 11 known WARP deviations.2eda8b0without conflict (git merge-tree); it was not rerun there.No comment lines added (PR gate: 8 files checked, 0 problems). The table check needs no GPU. Not run against a title.
cargo test -p tombox-xshaderpasses on WARPmissingwith a note🤖 Generated with Claude Code
@omonkeyz on GitHub · 2026-11-23 01:38 UTC · original
Applied in
2820575(merged in24e6c10) with your authorship kept, thanks. The full tombox-xshader suite passes on WARP with #198, #202 and #203.Pull request closed