nir: move callsite of lower_outputs_to_temporaries
authorRob Clark <robclark@freedesktop.org>
Fri, 25 Mar 2016 17:47:15 +0000 (13:47 -0400)
committerRob Clark <robclark@freedesktop.org>
Wed, 11 May 2016 16:20:11 +0000 (12:20 -0400)
commit47fcef9a209e533103a7ecf4d69440a67aa463ed
treed21b1f701e1dc7bccdeb16aa1ec9e5d8973b1e9b
parent5261947260bf63693fc13eaaf8a1e845ab130a57
nir: move callsite of lower_outputs_to_temporaries

Going to convert this pass to parameterized lower_io_to_temporaries, and
we want the user to be able to specify whether to lower outputs or
inputs or both.  The restriction of running this pass before validate
to avoid output reads no longer applies.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/glsl_to_nir.cpp
src/compiler/nir/nir_lower_outputs_to_temporaries.c
src/mesa/drivers/dri/i965/brw_nir.c