upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/vulkan_aftermath.cpp
diff options
context:
space:
mode:
authorohshitwaddup <38006566+ohshitwaddup@users.noreply.github.com>2026-11-24 21:37:54 +0700
committerohshitwaddup <38006566+ohshitwaddup@users.noreply.github.com>2026-11-25 08:53:57 +0700
commita9761ab2f9aaae5a29df2351c3edb2cd602deb31 (patch)
tree15969f7c10561f1512150f7514349b936660af3b /runtime/src/vulkan_aftermath.cpp
parent871e4b8b990bb9424c6f3c06175259d1a548239c (diff)
tests: GPU fixtures for the ds_wrxchg2_rtn_b32 pair cases and ds_wrxchg2st64_rtn_b32 (TEST-WRXCHG2-B32-EXT)
docs/design.md's ds_wrxchg2_rtn_b32 row names cs_w32_new_ops as its fixture, and that fixture compares only the first returned word and data1 in LDS. Four things the row states were therefore never checked on a GPU: the second returned word, data0, the st64 step, and vdst aliasing the data VGRs. The row's own note also records the non-st64 step indirectly only on gfx1100. Two branchless fixtures, one lane each (32 lanes on one LDS address would race): cs_w32_wrxchg2_ext both offsets on one dword: the first exchange returns the old word and the second returns data0, not the word the first wrote; a neighbouring LDS word is untouched; with vdst aliased onto the data VGPRs the data is read before the result is written, so vdst gets the old pair and LDS the new one. cs_w32_wrxchg2st64 the st64 unit is 64 dwords: base 0x80 with offsets 1/2 addresses 0x180 and 0x280. 0x84/0x88 (where a 4-byte step would land) and 0x140/0x2c0 (one step either side of the real elements) are seeded and must come back untouched, which is what pins the stride rather than assuming it. Both are registered in check.py (CS_DUMPS, WAVE32_DUMPS, WAVE32_LANE_DUMPS) and scripts/run_gpu_tests.py, and judge all eight words in hex. Measured on a Radeon RX 6900 XT (RDNA2, GFX1030, RADV Mesa 26.2.4, Nobara Linux 44), main d0da7da: build.py 283 shaders: 283 translated, 283 pass spirv-val check.py 217 of 222 pass, 3 skipped, 2 failed run_gpu_tests.py 233/251 passed, 16 skipped, 2 failed (native and LEONIDA_W64_EMULATE=1 alike) --filter wrxchg2 2/2 PASS both modes, every word exact (16/16) The two failures in the full runs are cs_imgload_tfe and cs_imgload_d16_tfe, the pre-existing SHADER-1266/#31 pair, unchanged by this commit. No game files, nothing online. AI-assisted (Hermes Agent).
Diffstat (limited to 'runtime/src/vulkan_aftermath.cpp')
0 files changed, 0 insertions, 0 deletions