nir_to_tgsi: Handle blocks defined as arrays of arrays
authorCorentin Noël <corentin.noel@collabora.com>
Fri, 1 Apr 2022 14:34:13 +0000 (16:34 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 1 Apr 2022 15:41:36 +0000 (15:41 +0000)
commit23f5e2edbd85b50cd8b26a3b1aa9bb3bfe1cf202
treeb5ce4cf2dce820fec4cb50ff1c0e5174c9c31e2e
parentb5fd1fddd9cf24e9250b659130057289d5080746
nir_to_tgsi: Handle blocks defined as arrays of arrays

Make sure to take all the array sizes into account when generating the TGSI.

Makes the `piglit.spec@arb_arrays_of_arrays@execution@ubo@fs-const-explicit-binding`
test pass

Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15713>
src/gallium/auxiliary/nir/nir_to_tgsi.c