summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_nir.c
diff options
context:
space:
mode:
authorRob Clark <robclark@freedesktop.org>2016-03-25 13:47:15 -0400
committerRob Clark <robclark@freedesktop.org>2016-05-11 12:20:11 -0400
commit47fcef9a209e533103a7ecf4d69440a67aa463ed (patch)
treed21b1f701e1dc7bccdeb16aa1ec9e5d8973b1e9b /src/mesa/drivers/dri/i965/brw_nir.c
parent5261947260bf63693fc13eaaf8a1e845ab130a57 (diff)
downloadexternal_mesa3d-47fcef9a209e533103a7ecf4d69440a67aa463ed.zip
external_mesa3d-47fcef9a209e533103a7ecf4d69440a67aa463ed.tar.gz
external_mesa3d-47fcef9a209e533103a7ecf4d69440a67aa463ed.tar.bz2
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>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_nir.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_nir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_nir.c b/src/mesa/drivers/dri/i965/brw_nir.c
index 9414fa6..fb658ec 100644
--- a/src/mesa/drivers/dri/i965/brw_nir.c
+++ b/src/mesa/drivers/dri/i965/brw_nir.c
@@ -563,6 +563,7 @@ brw_create_nir(struct brw_context *brw,
/* First, lower the GLSL IR or Mesa IR to NIR */
if (shader_prog) {
nir = glsl_to_nir(shader_prog, stage, options);
+ OPT_V(nir_lower_outputs_to_temporaries, nir_shader_get_entrypoint(nir));
} else {
nir = prog_to_nir(prog, options);
OPT_V(nir_convert_to_ssa); /* turn registers into SSA */