On Mon, Mar 7, 2016 at 12:46 AM, Samuel Iglesias Gonsálvez <
sigles...@igalia.com> wrote:

> From: Connor Abbott <connor.w.abb...@intel.com>
>
> ---
>  src/compiler/nir/nir.h | 9 +++++++++
>  1 file changed, 9 insertions(+)
>
> diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
> index 39aad02..c7e4dcc 100644
> --- a/src/compiler/nir/nir.h
> +++ b/src/compiler/nir/nir.h
> @@ -566,6 +566,15 @@ nir_src_bit_size(nir_src src)
>     return src.reg.reg->bit_size;
>  }
>
> +static inline unsigned
> +nir_dest_bit_size(nir_dest dest)
> +{
> +   if (dest.is_ssa)
> +      return dest.ssa.bit_size;
> +
> +   return dest.reg.reg->bit_size;
> +}
>

Same comment as for sources.


> +
>  void nir_src_copy(nir_src *dest, const nir_src *src, void *instr_or_if);
>  void nir_dest_copy(nir_dest *dest, const nir_dest *src, nir_instr *instr);
>
> --
> 2.7.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to