diff options
author | Kenneth Graunke <[email protected]> | 2015-08-12 15:14:35 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2015-10-01 10:58:30 -0700 |
commit | 39a1d36a67974dd9fc3c0d834d6a117cdfed8f33 (patch) | |
tree | 8a552754b8dcf9f2c3accf4ef49b7be6307cc085 /src/glsl/nir/nir.h | |
parent | 1c6689bf03fe500cc1bc55d7c2039c0aa3ae095c (diff) |
nir: Allow nir_lower_io() to only lower one type of variable.
We may want to use different type_size functions for (e.g.) inputs
vs. uniforms. Passing in -1 for mode ignores this, handling all
modes as before.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir.h')
-rw-r--r-- | src/glsl/nir/nir.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index d0c7b04a49f..bf5d41d43a9 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -1822,6 +1822,7 @@ void nir_assign_var_locations(struct exec_list *var_list, int (*type_size)(const struct glsl_type *)); void nir_lower_io(nir_shader *shader, + nir_variable_mode mode, int (*type_size)(const struct glsl_type *)); void nir_lower_vars_to_ssa(nir_shader *shader); |