feat: s_version, s_atc_probe and s_atc_probe_buffer in the RDNA 2 interpreter and HLSL — 1,211/1,490 #241
No reviewers
Labels
No labels
accessibility
bloqué : binaire console
bug
chargeur
console-dll
cpu
documentation
duplicate
enhancement
good first issue
gpu
help wanted
invalid
performance
question
runtime-gdk
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LooperSalty--AnyXboxX!241
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/241/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?
@lcg007xd-c on GitHub · 2026-11-25 20:53 UTC · original
lcg007xd-c:feat/s-version-atc-probe→main· +84 −25 · 14 files · 1 commits · merged 2026-11-26 00:15 UTCChange
Three RDNA 2 hints that write no register raised
Untranslatedin the reference interpreter and the HLSL recompiler. They now run as no-ops:s_version(SOPK 1)NO_OPERATION(newSOPK_NO_EFFECT), HLSL emits nothings_atc_probe(SMEM 38)CACHE_CONTROLwiths_dcache_inv,s_gl1_inv…, HLSL emits nothings_atc_probe_buffer(SMEM 39)The SDATA field of
s_atc_probeis the probe mode, an immediate (llvm-mc 20 printss_atc_probe 7, s[4:5], 0x64; the disassembler here already prints it that way), not a destination. A test checks thats7is left alone.rdna2_hlsl_memory.memory_statementsnow uses the interpreter'sCACHE_CONTROLset instead of a copy of the same names, so the two cannot drift apart.Coverage of the reference interpreter (
rdna2_exec.coverage()): 1,208 → 1,211 of 1,490. The 9 READMEs change that number, and the percentage stays 81%. Overlap: #230 and #232 change the same README number; whichever merges second takes a one-line rebase (add 3 to its count).Linked issue: none.
Verification
Linux (Arch, Python 3.14.10), no C++ runtime, no GPU (runtime and GPU tests skip), rebased rebased on
main9a06443:The suite is green on this machine since #237 and #238 merged.
Not run here:
test_hints_match_interpreter_on_gpu. I have no Windows,dxcor WARP, so it is skipped locally and will run in the Windows CI job. The HLSL side is still checked without a GPU:test_hlsl_translates_the_hints_to_nothingasserts that the translation with the three hints equals the translation without them.Oracle and test data
tests/test_rdna2_exec_hints.py:s7/s3, named in their SDATA fields, explicitly);main(Untranslated/Untranslatableon the hints).Checklist
E_NOTIMPL), never a fake success. (These are documented no-ops;s_code_end, an illegal instruction, stays refused.)test_readme_sync.pychecks it).Made with AI assistance (Claude Code).
🤖 Generated with Claude Code
@LooperSalty on GitHub · 2026-11-25 21:56 UTC · original
Thanks — this one is approved, but it now conflicts with main after #242, #244 and #248 were merged (mostly the README RDNA 2 line, plus shared rdna2 files for some). Could you merge or rebase onto main, recount the README line with
rdna2_exec.coverage()on the merged tree (all 9 languages), and push? I will merge it as soon as CI is green.@lcg007xd-c on GitHub · 2026-11-25 22:01 UTC · original
Rebased onto
main(9a06443), README line recounted withrdna2_exec.coverage()on the merged tree: 1,211 of 1,490 (81%), all 9 languages. Therdna2_*_memory.pyimports now carry both the addtid and cache-control names.