nir: Don't bail too early in lower_mem_constant_vars
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 2 Sep 2020 22:38:23 +0000 (17:38 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 3 Sep 2020 18:02:50 +0000 (18:02 +0000)
commit9414cbc13c964b567a15637eaa7dc32899391594
treee37d18527824b81b88ff465bd1ad69920783a9ac
parenta7a0315d7fdaa0e3e698de2af043776e5da467ff
nir: Don't bail too early in lower_mem_constant_vars

If there were no constant variables, we would bail out entirely.
However, we may still have constant input pointers coming in from the
client.

Fixes: 4360a8a2b3fce "nir/lower_io: Add support for nir_var_mem_constant"
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6472>
src/compiler/nir/nir_lower_io.c