nir: remove unused nir_variable fields
authorTimothy Arceri <timothy.arceri@collabora.com>
Tue, 2 Feb 2016 00:53:57 +0000 (11:53 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Tue, 9 Feb 2016 11:49:06 +0000 (22:49 +1100)
These are used in GLSL IR to removed unused varyings and match
transform feedback variables. There is no need to use these in NIR.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/glsl_to_nir.cpp
src/compiler/nir/nir.h

index 365fd4d0995ee7780ae520123f3dd0d8a830544a..3db27751289d7bd85839f2f4da28f79627903b8c 100644 (file)
@@ -364,8 +364,6 @@ nir_visitor::visit(ir_variable *ir)
    var->data.explicit_binding = ir->data.explicit_binding;
    var->data.has_initializer = ir->data.has_initializer;
    var->data.location_frac = ir->data.location_frac;
-   var->data.from_named_ifc_block_array = ir->data.from_named_ifc_block_array;
-   var->data.from_named_ifc_block_nonarray = ir->data.from_named_ifc_block_nonarray;
 
    switch (ir->data.depth_layout) {
    case ir_depth_layout_none:
index 4968460834f508b115e6386b85f4ee3361eda47b..a4dbfde21d0e88eca7ac20816abae4f5138520ab 100644 (file)
@@ -223,24 +223,6 @@ typedef struct nir_variable {
        */
       unsigned location_frac:2;
 
-      /**
-       * Non-zero if this variable was created by lowering a named interface
-       * block which was not an array.
-       *
-       * Note that this variable and \c from_named_ifc_block_array will never
-       * both be non-zero.
-       */
-      unsigned from_named_ifc_block_nonarray:1;
-
-      /**
-       * Non-zero if this variable was created by lowering a named interface
-       * block which was an array.
-       *
-       * Note that this variable and \c from_named_ifc_block_nonarray will never
-       * both be non-zero.
-       */
-      unsigned from_named_ifc_block_array:1;
-
       /**
        * \brief Layout qualifier for gl_FragDepth.
        *