diff options
| author | wxrrry <127362966+wxrrry@users.noreply.github.com> | 2026-11-23 03:28:30 +0300 |
|---|---|---|
| committer | wxrrry <127362966+wxrrry@users.noreply.github.com> | 2026-11-23 03:28:30 +0300 |
| commit | 862d3e918dca5d749291084923e59f2d3dbd6204 (patch) | |
| tree | 9e312d0b657f0d0f0be4ac77228e884ac562bfff /runtime/src | |
| parent | aa2988cc555bad7ecd508b48a702adbb32fe7c95 (diff) | |
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.
Diffstat (limited to 'runtime/src')
0 files changed, 0 insertions, 0 deletions