nir/inline_uniforms: fix oob access with nir_find_inlinable_uniforms
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 5 Sep 2023 16:37:29 +0000 (12:37 -0400)
committerMarge Bot <emma+marge@anholt.net>
Sat, 9 Sep 2023 16:40:46 +0000 (16:40 +0000)
commit39fca243bb914cea853e9d3502f1f38e6bf96ad4
tree0b7c2ec2276509cb0a5efe3d1568186cd45196fc
parent94941de25b53ca73bb62fe91ad2cabbd0e679ebc
nir/inline_uniforms: fix oob access with nir_find_inlinable_uniforms

the array dimensionality needs to match nir_add_inlinable_uniforms even if
only the first member is used

Fixes: 0c0fb216dd6 ("nir/inline_uniforms: Allow possibility of more than one UBO")

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25063>
src/compiler/nir/nir_inline_uniforms.c