diff options
author | Connor Abbott <[email protected]> | 2014-07-30 11:56:52 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-15 07:18:58 -0800 |
commit | 370e875b32ebc7b2989fbc590b29e2d8dcb74913 (patch) | |
tree | 286dd3675ba66a1180855b21571a738718392148 /src/glsl/nir/nir.h | |
parent | 494790b2a958f964547fb4362929171efffde153 (diff) |
nir: add a pass to remove unused variables
After we lower variables, we want to delete them in order to free up
some memory.
v2: Jason Ekstrand <[email protected]>:
whitespace fixes
Diffstat (limited to 'src/glsl/nir/nir.h')
-rw-r--r-- | src/glsl/nir/nir.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index 868c769d938..ca4c43c5e47 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -1252,6 +1252,8 @@ void nir_lower_variables_scalar(nir_shader *shader, bool lower_globals, bool lower_io, bool add_names, bool native_integers); +void nir_remove_dead_variables(nir_shader *shader); + #ifdef __cplusplus } /* extern "C" */ #endif |