diff options
author | Rob Clark <[email protected]> | 2015-11-06 11:35:20 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-11-18 12:28:32 -0800 |
commit | 624ec66653e2ce0abc6f4021111cf067b70741c1 (patch) | |
tree | 48f77655f6cf99ba756370918ccc232e037adba0 | |
parent | 4671c13852f3bb6341e4a6d4030948399e711e56 (diff) |
nir: remove nir_variable::max_ifc_array_access
No users.
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Iago Toral Quiroga <[email protected]>
-rw-r--r-- | src/glsl/nir/glsl_to_nir.cpp | 9 | ||||
-rw-r--r-- | src/glsl/nir/nir.h | 13 |
2 files changed, 0 insertions, 22 deletions
diff --git a/src/glsl/nir/glsl_to_nir.cpp b/src/glsl/nir/glsl_to_nir.cpp index c4b53f38b6b..5e9d57205a3 100644 --- a/src/glsl/nir/glsl_to_nir.cpp +++ b/src/glsl/nir/glsl_to_nir.cpp @@ -293,15 +293,6 @@ nir_visitor::visit(ir_variable *ir) var->type = ir->type; var->name = ralloc_strdup(var, ir->name); - if (ir->is_interface_instance() && ir->get_max_ifc_array_access() != NULL) { - unsigned size = ir->get_interface_type()->length; - var->max_ifc_array_access = ralloc_array(var, unsigned, size); - memcpy(var->max_ifc_array_access, ir->get_max_ifc_array_access(), - size * sizeof(unsigned)); - } else { - var->max_ifc_array_access = NULL; - } - var->data.read_only = ir->data.read_only; var->data.centroid = ir->data.centroid; var->data.sample = ir->data.sample; diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index 46add22da70..90f1e628fe0 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -147,19 +147,6 @@ typedef struct { */ char *name; - /** - * For variables which satisfy the is_interface_instance() predicate, this - * points to an array of integers such that if the ith member of the - * interface block is an array, max_ifc_array_access[i] is the maximum - * array element of that member that has been accessed. If the ith member - * of the interface block is not an array, max_ifc_array_access[i] is - * unused. - * - * For variables whose type is not an interface block, this pointer is - * NULL. - */ - unsigned *max_ifc_array_access; - struct nir_variable_data { /** |