diff options
| author | DadaCap <167002618+DadaCap@users.noreply.github.com> | 2026-11-26 20:18:21 +0100 |
|---|---|---|
| committer | DadaCap <167002618+DadaCap@users.noreply.github.com> | 2026-11-26 20:18:21 +0100 |
| commit | d48d8b3b0aafba90a26702cee9efe9fb912ee50c (patch) | |
| tree | e9879b005201f593d0e46954a42effcb1f624352 /docs/coder.md | |
| parent | 2d43417d49fdd8f2d8241f75ea8fd0cdd8811137 (diff) | |
rdna2spirv: keep mesh primitive indices below the vertex count
A GFX10 mesh epilogue marks a primitive null (bit 31) when an index field
is at or past the vertex count and keeps the field, so a null primitive can
carry indices up to 511. Vulkan leaves such an index undefined even on a
culled primitive. Both mesh finales (MeshEXT and --mesh-compute) now write
index k as null ? 0 : umin(field_k, vertex count - 1), as Mesa clamps them,
and a primitive count of 0 when the vertex count is 0. CullPrimitiveEXT is
unchanged.
Test: test_ms_prim_export.py gains MeshNullPrimitiveClamp with a
hand-written 128-thread wave64 fixture at vertex counts 0, 10, 100 and 128;
it fails on the old translator. docs/design.md moves the Open note into the
mesh primitive export row.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gt9hwNPurxyJ9LAfUbNiYr
Diffstat (limited to 'docs/coder.md')
0 files changed, 0 insertions, 0 deletions