nir/lower_io: fix array_length lowering if buffer is smaller than offset
authorRhys Perry <pendingchaos02@gmail.com>
Mon, 7 Dec 2020 14:44:15 +0000 (14:44 +0000)
committerMarge Bot <eric+marge@anholt.net>
Thu, 21 Jan 2021 11:53:12 +0000 (11:53 +0000)
commite200ce099623a1b0a076ed3def3865a968503dbc
tree81e64bd4f97dbf6d1783fdec5c33dccdf8dbcedf
parente10779a9f0da62b3968f48ae9d8c9d5275c7aac2
nir/lower_io: fix array_length lowering if buffer is smaller than offset

Matches SPIR-V -> NIR implementation of OpArrayLength.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8163>
src/compiler/nir/nir_lower_io.c