Commit Graph

3 Commits

Author SHA1 Message Date
80d1424960 tests: test_mesh_alloc_single_writer inserts 'tools' by __file__, not cwd (TEST-MESHALLOC-SYSPATH)
Replaces the cwd-relative sys.path.insert(0, 'tools') with a path
derived from __file__, matching the idiom used by neighbouring tests
(e.g. tests/test_f32_fuzz.py). Test now runs from any cwd.

AI-assisted.
2026-11-24 23:49:00 +00:00
0b589ea999 rdna2spirv: use OpAtomicStore for MSG_GS_ALLOC_REQ %ms_counts
(cherry picked from commit 0b094ae8e49dd846abf2abdac7e4b3588d18ee74)
(cherry picked from commit e1cbb27efc0fcddc0dad7a7ec560fcaa2e007300)
2026-11-23 19:42:47 -05:00
862d3e918d rdna2spirv: restrict %ms_counts store in mesh shaders to invocation 0 (SHADER-766)
- tools/rdna2spirv.py: when emitting s_sendmsg(MSG_GS_ALLOC_REQ) in stage ms/msc, guard OpStore %ms_counts with local_index == 0 to eliminate SharedMemoryDataRace-RaceOnStore. The counts are uniform across the workgroup (from SGPR m0), and all invocations synchronize at the subsequent workgroup barrier before loading %ms_counts.
- tests/test_mesh_alloc_single_writer.py: add unit tests verifying the invocation-0 guard and valid SPIR-V assembly for native mesh and --mesh-compute.
2026-11-23 03:28:30 +03:00