Skip to content

lavapipe, nir: Fix wrong array index scaling in nir_collect_src_uniforms

The scaling needs to be ubo * MAX_INLINABLE_UNIFORMS, not ubo * PIPE_MAX_CONSTANT_BUFFERS, otherwise accesses beyond buffer size will result for ubo >= 4 (and we'd also access the wrong values later for other non-zero ubo indices).

Fixes: a7696a4d ("lavapipe: Fix bad array index scale factor in lvp_inline_uniforms pass")

Merge request reports