[Mesa-dev] [PATCH 3/4] nir: remove nir_src_get_parent_instr()

Jason Ekstrand jason at jlekstrand.net
Thu Jun 25 13:38:42 PDT 2015


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

On Thu, Jun 25, 2015 at 12:29 PM, Connor Abbott <cwabbott0 at gmail.com> wrote:
> It's now unused.
>
> Signed-off-by: Connor Abbott <cwabbott0 at gmail.com>
> ---
>  src/glsl/nir/nir.h | 10 ----------
>  1 file changed, 10 deletions(-)
>
> diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h
> index 2116f60..b33c9c5 100644
> --- a/src/glsl/nir/nir.h
> +++ b/src/glsl/nir/nir.h
> @@ -565,16 +565,6 @@ nir_src_for_reg(nir_register *reg)
>     return src;
>  }
>
> -static inline nir_instr *
> -nir_src_get_parent_instr(const nir_src *src)
> -{
> -   if (src->is_ssa) {
> -      return src->ssa->parent_instr;
> -   } else {
> -      return src->reg.reg->parent_instr;
> -   }
> -}
> -
>  static inline nir_dest
>  nir_dest_for_reg(nir_register *reg)
>  {
> --
> 2.4.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list