upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test
diff options
context:
space:
mode:
authorJolymmiles <75259437+Jolymmiles@users.noreply.github.com>2026-11-22 20:55:49 +0400
committerJolymmiles <75259437+Jolymmiles@users.noreply.github.com>2026-11-22 22:09:22 +0400
commitad88c19e971f3e8c5d54d0c9d0ea4c8ec1587330 (patch)
tree1939250f093a608b8ae65858d76824a5a21072b9 /runtime/test
parentec8ec4c9a46c6623f1a9c125afd3566da97f1e0c (diff)
xdxr_build: radix scan writes offsets apart from the counts, correct on MoltenVK 1.4.2
The scan read each digit count and stored its prefix sum over it. MoltenVK 1.4.2's SPIRV-Cross (6c09849f; MoltenVK main pins aa217aeb, also affected) moves a load through a pointer bitcast from a uvec2 past a later store to the same address, so the MSL read back the sum it had just written. The radix path (more than 1,024 elements) then lost and duplicated elements: blas_three_sort_tiles and blas_refit_in_place failed xdxr_build_check in 10 runs out of 10. SPIRV-Cross 38abe362 fixes it upstream. The prefix sums now go to their own scratch array (XdxrLayout::scratch grows by 64 bytes per tile), so no invocation stores to a word whose loaded value it still uses. xdxr_build.inc regenerated with glslc (shaderc 2026.4) --target-env=vulkan1.2 -O -mfmt=c. Tested on an Apple M3 Max, macOS 27.3: xdxr_build_check passes 10 runs out of 10 on Homebrew MoltenVK 1.4.2 (0/10 before), MoltenVK 5189f8de with SPIRV-Cross 57e4efcc, KosmicKrisp and llvmpipe. The full native ctest passes 36/36 on each driver, with the same two skips as before. AI-assisted.
Diffstat (limited to 'runtime/test')
0 files changed, 0 insertions, 0 deletions