summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-08-28 17:09:02 -0700
committerJason Ekstrand <[email protected]>2015-09-09 12:29:21 -0700
commit1dbe4af9c9e318525fc082b542b93fb7f1e5efba (patch)
treeee54360108520ca2ea623560717ac209ecf38154 /src/glsl/nir/nir.h
parentf5e08ab6b1351c41000fd2f1a16c1273d2f74d40 (diff)
nir: Add a pass to lower outputs to temporary variables
This pass can be used as a helper for NIR producers so they don't have to worry about creating the temporaries themselves. Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir.h')
-rw-r--r--src/glsl/nir/nir.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h
index 2bcd18aabe5..2ba7731c1ff 100644
--- a/src/glsl/nir/nir.h
+++ b/src/glsl/nir/nir.h
@@ -1786,6 +1786,8 @@ void nir_lower_global_vars_to_local(nir_shader *shader);
void nir_lower_locals_to_regs(nir_shader *shader);
+void nir_lower_outputs_to_temporaries(nir_shader *shader);
+
void nir_assign_var_locations(struct exec_list *var_list,
unsigned *size,
int (*type_size)(const struct glsl_type *));