xshader: FLAT byte/short/d16_hi verified, FLAT offset decode fix (RDNA2 746/779) #25
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!25
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/25/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-21 18:01 UTC · original
QuentinDanblon:feat/ds-flat-mtbuf-verify→main· +1588 −840 · 18 files · 4 commits · closed without mergingLibrary / area: tombox-xshader (FLAT), progress map
Exports changed (exports.txt rows): none
Source of the behaviour: AMD RDNA2 ISA (FLAT offset fields, FLAT_STORE_*_D16_HI)
Stacked on #22: review only the last two commits.
Scope change: LDS atomics (#23) and MTBUF d16 were claimed first in #17 by @SchmashinPrunes, and the d16 PR is in progress. Both are removed here. This PR is now FLAT only.
FLAT
_d16_histores of S0[23:16] / S0[31:16]. Each is tested in three address forms: SGPR base + VGPR offset, 64-bit VGPR address, FLAT segment.tests/exec_mem/mod.rs: a sharedverified()writes the TOMBOX_EXEC_VERIFIED list for every runner.Tests (WARP, DXC 1.9.2609, #22 + this)
--test exec(measured with the d16 commit still included): 64 pass, 4 fail. The 4 failures are thevop::basicones present on main, fixed by #24.exec_mem::*tests pass on this exact tree.--lib8,--test opcodes22,--test synthetic7: all pass.Progress
12 more mnemonics verified. RDNA2 instructions 734/779 → 746/779.
cargo test -p tombox-xshaderpasses (except thevop::basicfailures already on main, fixed in #24)missingwith a notemnem_groups.json regenerated from rdna2/mnem.rs (same rule as sync.py): 58 new VOPC mnemonics, all verified by the new vopc_{i16,u16,i64,u64, class_f16} exec groups on WARP.@SchmashinPrunes on GitHub · 2026-11-21 18:44 UTC · original
PR for the MTBUf d16 part of that claim is in progress, should be pushing soon
@QuentinDanblon on GitHub · 2026-11-21 18:48 UTC · original
@SchmashinPrunes thanks, I've removed MTBUF d16 from this PR, which is now FLAT only. For comparison, my d16 version is commit 40159df on QuentinDanblon:ref/mtbuf-d16. It refuses loads from UNORM/SNORM, 32-bit and 16-bit scaled formats, because the ISA gives no rounding/clamp rule for 'converted to 16 bits', and it has 813 d16 cases that pass on WARP. Use whatever helps.
@QuentinDanblon on GitHub · 2026-11-21 21:03 UTC · original
Merged in the source sync
1159c96(adapted). Thanks! Closing.Pull request closed