upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/xma2_decoder.cpp
diff options
context:
space:
mode:
authorDadaCap <167002618+DadaCap@users.noreply.github.com>2026-11-26 20:18:21 +0100
committerDadaCap <167002618+DadaCap@users.noreply.github.com>2026-11-26 20:18:21 +0100
commitd48d8b3b0aafba90a26702cee9efe9fb912ee50c (patch)
treee9879b005201f593d0e46954a42effcb1f624352 /runtime/src/xma2_decoder.cpp
parent2d43417d49fdd8f2d8241f75ea8fd0cdd8811137 (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 'runtime/src/xma2_decoder.cpp')
0 files changed, 0 insertions, 0 deletions