Skip to content

mesa: use less temporaries in build_lighting

Pierre-Eric Pelloux-Prayer requested to merge pepp/mesa:mesa_fix_lightprod into main

Preallocating temporaries can cause "out of temporaries" error. Switch to on-demand allocation.

Growing temp_in_use would be an alternative, but some drivers support less than 64 temps (see PIPE_SHADER_CAP_MAX_TEMPS) so this wouldn't help them.

Closes: #5777 (closed) Fixes: 272acbed ("mesa: merge STATE_LIGHTPROD parameters")

Merge request reports