mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 11:09:56 -04:00
On a GPU without mesh shaders the fallback replaces the translated module's entry function with its own, which cleared only the primitive count and then copied the whole slot (vertex lines, count, index bytes) out of workgroup memory to be drawn. Lines and index bytes the program did not write kept what an earlier workgroup left there and were drawn as vertices and primitives. The fallback's entry function now sets every word of the slot to zero in a loop over the workgroup's threads before the payload copy and the barrier, as the translator's own entry function does. Checked: --probe-meshfb passes before and after (the fallback's pictures match the mesh pipeline's texel for texel on an RTX GPU); its module part converts all 520 task and mesh programs of an installed shader cache with 0 failures, all 1,020 resulting modules pass spirv-val (vulkan1.3) and their 520 compute pipelines build on the device. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
34 KiB
34 KiB