tombox-xshader tests: replay RDNA2-recorded image atomic results (13 image_atomic_* ops) #195
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!195
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/195/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?
@SchmashinPrunes on GitHub · 2026-11-23 00:25 UTC · original
SchmashinPrunes:rdna2-image-atomics→main· +420 −6 · 6 files · 1 commits · closed without mergingFollow-up to #191: a WARP replay test of image atomic results recorded on RDNA2 hardware, for all 13
image_atomic_*ops. As agreed on #191, it doesn't touch the progress files; the count is for your generator to pick up.Library / area: tombox-xshader tests,
tools/rdna2-hwprobeExports changed (exports.txt rows): none
Source of the behaviour: results recorded on RDNA2 hardware, the gfx1036 iGPU of a Ryzen 5 9600X (ROCm/HIP 5.7.1), with the new
tools/rdna2-hwprobe/image_probe.py. Each kernel run was done twice and kept only when both runs were identical. gfx1036 is RDNA2, not the console's gfx1013. No game or console files are involved.What is recorded
R32_UINTimage (dim 2D, height 1, unorm addressing).exec_mem::mimg::image_mimg_atomics, then runs one atomic with one of that test's 8(x, data, cmp)tuples, with and withoutglc.All 208 equal the existing test's ISA-model expectations. That covers the new texel, the untouched neighbours, the pre-op value with
glc, and vdata unchanged without it.Change
tests/exec_mem/mimg.rs: a new test,image_mimg_atomics_rdna2_silicon(groupmimg_atomics_rdna2_silicon). It replays the 208 recorded cases through the translator with the same encodings (mimg(),IMG_AT), checking all 8 texels and the returned value.tests/exec_mem/mimg_rdna2.rs(new, generated): the recorded table. It is registered inexec_mem/mod.rs.tools/rdna2-hwprobe/image_probe.py: writes the kernels and inputs. Itscheck <dir>mode compares a recording with the model, andrust <dir> <out> <machine>writesmimg_rdna2.rs.tools/rdna2-hwprobe/verify_runner.cpp: takes an optional case count and output bytes per case (the default behaviour is unchanged).tools/rdna2-hwprobe/README.txt: a section with the commands.One probe detail, recorded here because it cost a run: on RDNA2, stores are counted by
vscnt, so the probe needss_waitcnt_vscnt null, 0between filling the image and the atomic. Without it, about half the workgroups ran the atomic on unfilled memory.Tests (Windows 11 Pro, WARP, DXC 1.9.2609, on
c4b7607)The remaining RDNA2 instruction squares are
ds_gws_*,ds_ordered_countands_sendmsghalt. These are the translator's refusals in BLOCKERS, so this PR doesn't address them.cargo test -p tombox-xshaderpasses🤖 Generated with Claude Code
@kiwe147 on GitHub · 2026-11-23 00:29 UTC · original
Tested head
0cd2d86dd9, applied withgit apply(whitespace ignored, the line endings of my checkout differ) onmainc2a3522, this PR alone. It applied without conflicts and the tests built.Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, NVIDIA GeForce RTX 3080 (driver 621.24), MSVC, Rust 1.91.1.
cargo test --locked -p tombox-xshader --test exec mimg(11 tests, including the newimage_mimg_atomics_rdna2_silicon):TOMBOX_EXEC_HW=1(RTX 3080)So the recorded RDNA2 image-atomic results replay the same on WARP and on an NVIDIA GPU. I only ran the
mimgtests of theexecsuite, not the whole suite, and did not run thetools/rdna2-hwprobescripts (they need ROCm).For comparison,
rdna2_silicon_resultsfrom #191 passes on WARP but fails on this GPU in hardware mode (NaN payloads of the f16 FMA family, see #194); this PR's test does not show that.AI-assisted: yes (Claude Code)
@omonkeyz on GitHub · 2026-11-23 00:37 UTC · original
Applied in
50a13be(merged inc4e72f0) with your authorship kept, thanks. exec mimg passes 11/0 on WARP, and the progress files are untouched as agreed. Please also see #194: on NVIDIA in TOMBOX_EXEC_HW mode, the f16 FMA NaN payload cases from #191 fail.Pull request closed