diff options
author | Jason Ekstrand <[email protected]> | 2019-03-06 15:21:51 -0600 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-03-12 15:34:06 +0000 |
commit | 5ef2b8f1f2ebcdb4ffe5c98b3f4f48e584cb4b22 (patch) | |
tree | 3cc8ecc991db2d22a4349f19f7d8b1eedea2a052 /src/compiler/nir/nir.h | |
parent | 0f025bbccc236140101bc03ce9fa9d7a5bdb843b (diff) |
nir: Add a pass for lowering IO back to vector when possible
This pass tries to turn scalar and array-of-scalar IO variables into
vector IO variables whenever possible.
Reviewed-by: Connor Abbott <[email protected]>
Cc: "19.0" <[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 54f3f209950..22831cf3cc1 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -3061,6 +3061,7 @@ void nir_lower_io_arrays_to_elements_no_indirects(nir_shader *shader, bool outputs_only); 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); +bool nir_lower_io_to_vector(nir_shader *shader, nir_variable_mode mask); bool nir_lower_uniforms_to_ubo(nir_shader *shader, int multiplier); |