nir/lower_out_to_temp: Add an "entrypoint" parameter
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 25 Mar 2016 21:11:19 +0000 (14:11 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 29 Mar 2016 01:32:48 +0000 (18:32 -0700)
commitbe98c475284823abdd9a6102c1c65ed548d9afd2
treef3faa1ed2cc745b910d4090759d69004da65ae39
parent31a5bec93fd6a39b0bc124965e828315aff105d2
nir/lower_out_to_temp: Add an "entrypoint" parameter

Previously, the pass assumed that the entrypoint would be whatever function
happened to have the name "main".  We really shouldn't trust in the
function names.

Reviewed-by: Rob Clark <robdclark@gmail.com>
src/compiler/nir/glsl_to_nir.cpp
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_outputs_to_temporaries.c