[Mesa-dev] [PATCH] nir: remove field only used in GLSL IR when assigning varying locations

Jason Ekstrand jason at jlekstrand.net
Mon Dec 21 19:24:36 PST 2015


On Mon, Dec 21, 2015 at 2:54 PM, Timothy Arceri <
timothy.arceri at collabora.com> wrote:

> This field is used as a flag to optimise out any varyings that don't have
> matching varying on the other side of the interface.
>
> The value should be the same for all varyings (except for SSO but we can't
> optimise those) by the time they reach nir and are no longer be needed.
>

Acked-by: Jason Ekstrand <jason.ekstrand at intel.com>


> ---
>  src/glsl/nir/glsl_to_nir.cpp | 1 -
>  src/glsl/nir/nir.h           | 9 ---------
>  2 files changed, 10 deletions(-)
>
> diff --git a/src/glsl/nir/glsl_to_nir.cpp b/src/glsl/nir/glsl_to_nir.cpp
> index 9d9053f..0f0f4a1 100644
> --- a/src/glsl/nir/glsl_to_nir.cpp
> +++ b/src/glsl/nir/glsl_to_nir.cpp
> @@ -364,7 +364,6 @@ nir_visitor::visit(ir_variable *ir)
>     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.is_unmatched_generic_inout =
> ir->data.is_unmatched_generic_inout;
>     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;
> diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h
> index 2e72e66..9dbda44 100644
> --- a/src/glsl/nir/nir.h
> +++ b/src/glsl/nir/nir.h
> @@ -216,15 +216,6 @@ typedef struct {
>        unsigned has_initializer:1;
>
>        /**
> -       * Is this variable a generic output or input that has not yet been
> matched
> -       * up to a variable in another stage of the pipeline?
> -       *
> -       * This is used by the linker as scratch storage while assigning
> locations
> -       * to generic inputs and outputs.
> -       */
> -      unsigned is_unmatched_generic_inout:1;
> -
> -      /**
>         * If non-zero, then this variable may be packed along with other
> variables
>         * into a single varying slot, so this offset should be applied when
>         * accessing components.  For example, an offset of 1 means that
> the x
> --
> 2.4.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20151221/41d0cddf/attachment-0001.html>


More information about the mesa-dev mailing list