diff options
author | Timothy Arceri <[email protected]> | 2017-11-15 14:28:01 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-12-04 12:52:18 +1100 |
commit | 2bc49ac3e6a6c8f93a2f32d62555bd653faf8d3e (patch) | |
tree | 9caed5a39297aac2b94d2105331dcff72edf123a /src/compiler/nir/nir.h | |
parent | f13790c92ff1433a0fbff35788761b75df567c44 (diff) |
nir: add array lowering function that assumes there are no indirects
The gallium glsl->nir pass currently lowers away all indirects on both inputs
and outputs. This fuction allows us to lower vs inputs and fs outputs and also
lower things one stage at a time as we don't need to worry about indirects
on the other side of the shaders interface.
Reviewed-by: Nicolai Hähnle <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r-- | src/compiler/nir/nir.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 83858afe148..189c17d1625 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -2496,6 +2496,7 @@ bool nir_lower_load_const_to_scalar(nir_shader *shader); bool nir_lower_read_invocation_to_scalar(nir_shader *shader); bool nir_lower_phis_to_scalar(nir_shader *shader); void nir_lower_io_arrays_to_elements(nir_shader *producer, nir_shader *consumer); +void nir_lower_io_arrays_to_elements_no_indirects(nir_shader *shader); void nir_lower_io_to_scalar(nir_shader *shader, nir_variable_mode mask); void nir_lower_io_to_scalar_early(nir_shader *shader, nir_variable_mode mask); |