From 25db44a84597960a6aea6b252bcf2c3d7e17fc74 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 18 Mar 2015 15:04:15 -0700 Subject: nir/lower_io: Make variable location assignment a manual operation Previously, we just assigned variable locations in nir_lower_io. Now, we force the user to assign variable locations for us. This gives the backend a bit more control over where variables are placed. v2: Rename from _packed to _scalar Reviewed-by: Connor Abbott --- src/glsl/nir/nir.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/glsl/nir/nir.h') diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index 6b42df953da..a2a03b22707 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -1577,6 +1577,9 @@ 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_lower_io(nir_shader *shader); void nir_lower_vars_to_ssa(nir_shader *shader); -- cgit v1.2.3