tombox-xshader: LDS atomics + MTBUF d16 (claiming) #17
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#17
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?
@SchmashinPrunes on GitHub · 2026-11-21 17:27 UTC · original
Claiming two groups of unverified RDNA2 instructions in
tombox-xshaderso work isn't duplicated:1. LDS atomics (DS). The LDS path in
src/hlsl.rstranslates add / min_u32 / max_u32 / and / or / xor; the GDS path covers more. Adding LDS translation plus exec tests for:ds_sub_u32,ds_rsub_u32,ds_inc_u32,ds_dec_u32,ds_min_i32,ds_max_i32,ds_cmpst_b32, and their_rtnforms plusds_wrxchg_rtn_b32.(
ds_inc/ds_decwrap against data, so they need a compare-exchange loop;ds_cmpsttakes DATA as the compare value and DATA2 as the new value.)2. MTBUF d16.
tbuffer_load_format_d16_{x,xy,xyz,xyzw}andtbuffer_store_format_d16_{x,xy,xyz,xyzw}, which are in the decoder but not translated.Source: the public AMD RDNA2 ISA reference only. Tests will follow the existing
tests/exec_mempattern (WARP, known inputs, compared against the ISA model). Not touching the VOPC (#15), FLAT, GWS,ds_append/ds_consume/ds_ordered_countors_sendmsghaltrows.@SchmashinPrunes on GitHub · 2026-11-21 18:58 UTC · original
Both halves of this claim are up: LDS atomics in #23, MTBUF d16 in #41 (semantics measured on RDNA2 hardware, see
tools/rdna2-hwprobethere).