Files
mandy/tools
ItsNotRexed dcd8ecf10b rdna2spirv: decode run-time buffer formats in one function per module
buffer_load_format with the format taken from the V# decoded all 27 FORMATS inline and selected one, about 900
instructions per load once UNORM/SNORM became exact integer quotients. indirect_diffuse_lighting's two
ScreenProbes_ActivateProbes compute shaders have 3,281 such loads: under --wave64-emulate their modules passed
SPIR-V's id bound (4,194,303) and no longer validated, and before that they were 60 MB modules a driver could
not compile in 100 GB.

The decode is now %fmt_decode_fn, emitted once and called per load (like %desc_lookup_fn). tbuffer loads, whose
format is in the instruction, decode only that format. ScreenProbes_ActivateProbes: 6.16 M instructions -> 2.20 M,
41.7 MB, passes spirv-val. spirv_mini_interp runs OpFunctionCall / OpFunctionParameter / OpReturnValue so the
semantic tests go through the function.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 00:31:05 -05:00
..
2026-11-22 02:06:42 +00:00
2026-11-21 21:19:09 -05:00