[Mesa-dev] [PATCH 11/14] nir: add nir_dest_bit_size() helper
Jason Ekstrand
jason at jlekstrand.net
Mon Mar 14 20:38:54 UTC 2016
On Mon, Mar 7, 2016 at 12:46 AM, Samuel Iglesias Gonsálvez <
siglesias at igalia.com> wrote:
> From: Connor Abbott <connor.w.abbott at 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 at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160314/5b9f1140/attachment-0001.html>
More information about the mesa-dev
mailing list