diff options
author | Jason Ekstrand <[email protected]> | 2016-07-16 08:21:50 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-12-05 15:40:10 -0800 |
commit | 7db009b59ee9df3a106f2f7e440a3ff9223b268f (patch) | |
tree | 93829e0ccc89442975d2cc92f8837be795711ecd /src/compiler/glsl/glsl_to_nir.cpp | |
parent | 50e0b0bee3fb97089cf9913af7a0c980dfce6dce (diff) |
nir: Remove some unused fields from nir_variable
All of these are happily set from glsl_to_nir or spirv_to_nir but their
values are never used for anything.
Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/compiler/glsl/glsl_to_nir.cpp')
-rw-r--r-- | src/compiler/glsl/glsl_to_nir.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp index f60139c2f2a..4debc37ea14 100644 --- a/src/compiler/glsl/glsl_to_nir.cpp +++ b/src/compiler/glsl/glsl_to_nir.cpp @@ -340,10 +340,6 @@ nir_visitor::visit(ir_variable *ir) var->data.interpolation = ir->data.interpolation; var->data.origin_upper_left = ir->data.origin_upper_left; var->data.pixel_center_integer = ir->data.pixel_center_integer; - var->data.explicit_location = ir->data.explicit_location; - var->data.explicit_index = ir->data.explicit_index; - var->data.explicit_binding = ir->data.explicit_binding; - var->data.has_initializer = ir->data.has_initializer; var->data.compact = false; var->data.location_frac = ir->data.location_frac; @@ -376,7 +372,6 @@ nir_visitor::visit(ir_variable *ir) var->data.image._volatile = ir->data.image_volatile; var->data.image.restrict_flag = ir->data.image_restrict; var->data.image.format = ir->data.image_format; - var->data.max_array_access = ir->data.max_array_access; var->data.fb_fetch_output = ir->data.fb_fetch_output; var->num_state_slots = ir->get_num_state_slots(); |