nir: Rework nir_lower_constant_initializers() to handle functions
authorMatt Turner <mattst88@gmail.com>
Wed, 9 Jan 2019 03:49:14 +0000 (19:49 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 10 Jan 2019 00:42:40 +0000 (16:42 -0800)
commit393b59e0772e7bf0426bdf61c740752c4e09dde1
treef2ae3b2bce6c32c2a8a645ede5d24ba384391efb
parentf998ce41115a3c2bd87182885026a784aa6cd089
nir: Rework nir_lower_constant_initializers() to handle functions

Previously it assumed that only a single function (the entrypoint)
existed and attempted to lower constant initializers of shader outputs
for each function, for instance.
src/compiler/nir/nir_lower_constant_initializers.c