diff options
author | Iago Toral Quiroga <[email protected]> | 2015-06-18 13:52:21 +0200 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-08-03 09:40:47 -0700 |
commit | 01f6235020f9f0c2bc1a6e6ea9bd15c22fb2bcf5 (patch) | |
tree | 5b975529153843f332d18ef7fc4b37658d7f7b24 /src/glsl/nir/nir.h | |
parent | 5e839727ed2378a01d3b657bad83abd4728e8da6 (diff) |
nir/nir_lower_io: Add vec4 support
The current implementation operates in scalar mode only, so add a vec4
mode where types are padded to vec4 sizes.
This will be useful in the i965 driver for its vec4 nir backend
(and possbly other drivers that have vec4-based shaders).
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir.h')
-rw-r--r-- | src/glsl/nir/nir.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index 6c954c0ef7c..d9daaa2e7e2 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -1641,14 +1641,16 @@ void nir_lower_global_vars_to_local(nir_shader *shader); void nir_lower_locals_to_regs(nir_shader *shader); -void nir_assign_var_locations_scalar(struct exec_list *var_list, - unsigned *size); -void nir_assign_var_locations_scalar_direct_first(nir_shader *shader, - struct exec_list *var_list, - unsigned *direct_size, - unsigned *size); - -void nir_lower_io(nir_shader *shader); +void nir_assign_var_locations(struct exec_list *var_list, + unsigned *size, + bool is_scalar); +void nir_assign_var_locations_direct_first(nir_shader *shader, + struct exec_list *var_list, + unsigned *direct_size, + unsigned *size, + bool is_scalar); + +void nir_lower_io(nir_shader *shader, bool is_scalar); void nir_lower_vars_to_ssa(nir_shader *shader); |