From a2656f850184d56fa2e129b5c686e9b4fbaad4f1 Mon Sep 17 00:00:00 2001 From: Tobim6 <102646588+Tobim6@users.noreply.github.com> Date: Thu, 12 Nov 2026 16:22:26 +0100 Subject: [PATCH] Mesh emulation: task records hold payloads of up to 776 words. Since 0.6.0 the translator sizes a task payload 32 bytes past the program header's size, for the header before the program's data (b6b76b7): Ocarina's foliage task, 3072 bytes, now declares 3104. A record held 768 payload words, so the emulation refused those programs ("payload too large") and the foliage went undrawn. Records are 780 words. Co-Authored-By: Claude Opus 5.5 --- runtime/mesh_emu_spirv.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtime/mesh_emu_spirv.h b/runtime/mesh_emu_spirv.h index ffa99fa4..430ca76a 100644 --- a/runtime/mesh_emu_spirv.h +++ b/runtime/mesh_emu_spirv.h @@ -15,6 +15,8 @@ #define MESH_EMU_DWORDS 16u #define MESH_EMU_DRECS 4096u #define MESH_EMU_TOFF (MESH_EMU_DOFF + MESH_EMU_DRECS * MESH_EMU_DWORDS * 4u) +#define MESH_EMU_TWORDS 780u // 1 + payloads of up to 776 words (3072 bytes and the 32 the + // translator adds for the payload header since 0.6.0), padded // task records: as many as the push constants say (the replay sizes them, NX2NAVI_MESH_EMU_TASKS); the index area // follows them // Push constants of every emulation stage (compute and the vertex shader), 32 bytes: