nir: Tag entrypoint for easy recognition by nir_shader_get_entrypoint()
authorMatt Turner <mattst88@gmail.com>
Thu, 6 Sep 2018 18:12:24 +0000 (11:12 -0700)
committerMatt Turner <mattst88@gmail.com>
Thu, 10 Jan 2019 00:42:40 +0000 (16:42 -0800)
commitdde73e646fe22e50878783580d1707a2acceb054
tree9ce2f4b77b3bc847f98c3eda585020dda212c1be
parent393b59e0772e7bf0426bdf61c740752c4e09dde1
nir: Tag entrypoint for easy recognition by nir_shader_get_entrypoint()

We're going to have multiple functions, so nir_shader_get_entrypoint()
needs to do something a little smarter.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/glsl/glsl_to_nir.cpp
src/compiler/nir/nir.c
src/compiler/nir/nir.h
src/compiler/nir/nir_builder.h
src/compiler/nir/nir_clone.c
src/compiler/nir/nir_serialize.c
src/compiler/spirv/spirv_to_nir.c