tombox-xshader tests: s_swappc_b64 vertex fetch with two link registers, ds_append/ds_consume verified, LDS-mode refusal pinned #298
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!298
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/298/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?
@MeNoSkills on GitHub · 2026-11-23 16:52 UTC · original
MeNoSkills:test/vertex-fetch-ds-append→main· +62 −0 · 3 files · 1 commits · closed without mergingTest only, no change to the translator. Follow-up to #297 for two more mnemonics that no verified group names although tests already exercise them.
What changes
s_swappc_b64(47,110 uses in the analysed titles, the vertex-fetch call):vertex_fetch_reads_sparse_attributes_from_a_vertex_bufferalready runs it end to end, but it never reports a verified mnemonic. The newexec_mem/vfetch.rstest runs the same draw (vertex buffer, input layout, translated vertex shader, pixel shader that reads the result back) with two link registers (s_swappc_b64 s4, s4ands12, s12) and seven 32-bit attribute values (0, 1, 0x7fffffff, 0x80000000, 0xffffffff, 0xdeadbeef, 0x01000001), and checks the four output words exactly, including the default (0, 0, 0, 1.0) of the components the layout does not supply. It reportss_swappc_b64in thevertex_fetch_callgroup.ds_appendandds_consume:ds_gds_append_consumechecks the GDS counter totals, the untouched neighbours, the inactive lanes and, on a wave32 device, the per-wave pre-op values for four exec masks. On hardware it now also reports both mnemonics in thegds_append_consumegroup (TOMBOX_EXEC_VERIFIED), as the other groups do. WithoutTOMBOX_EXEC_HWit behaves as before.ds_append_and_consume_on_lds_are_refused_by_name: with GDS=0 the translator answersunsupported encoding [ds_append @ 0x4c](andds_consume); the test pins that the refusal exists and names the instruction. There is no LDS-counter lowering, and neither mnemonic appears in the analysed titles (0 uses), so I did not add one.Results
On an NVIDIA RTX 4070 Ti (Windows 10 build 19045, MSVC,
TOMBOX_EXEC_HW=1): the three tests pass andTOMBOX_EXEC_VERIFIEDwritesvertex_fetch_call.txt(s_swappc_b64) andgds_append_consume.txt(ds_append,ds_consume). On WARP the new vertex-fetch test passes;ds_gds_append_consumefails on my machine's WARP withdevice removed 0x887a0005before reaching the new lines (Windows 10 WARP is old; it passes on the RTX and its CI result is the maintainer's to confirm). Sensitivity check: moving the first vertex attribute register from v4 to v8 (hlsl.rs, thefirstcomputation) makes both the old and the new vertex-fetch tests fail; reverted, not in the PR.python .github/scripts/pr_gate.py --base upstream/main --head HEAD: 0 problems; the branch is on mainf89e410.What this does not check
@omonkeyz on GitHub · 2026-11-25 13:48 UTC · original
Applied on main in
5ec2fde(cherry-picked onto the current history with your authorship kept; comment lines stripped per CONTRIBUTING). Thank you.Pull request closed