Re: [Mesa-dev] [PATCH] nir: extract out helper macros for running passes

2016-01-01 Thread Jason Ekstrand
On Wed, Dec 30, 2015 at 9:04 AM, Rob Clark wrote: > On Wed, Dec 30, 2015 at 10:32 AM, Rob Clark wrote: > > diff --git a/src/mesa/drivers/dri/i965/brw_nir.c > b/src/mesa/drivers/dri/i965/brw_nir.c > > index e031173..a8bed70 100644 > > --- a/src/mesa/drivers/dri/i965/brw_nir.c > > +++ b/src/mesa/d

Re: [Mesa-dev] [PATCH] nir: extract out helper macros for running passes

2015-12-30 Thread Rob Clark
On Wed, Dec 30, 2015 at 10:32 AM, Rob Clark wrote: > diff --git a/src/mesa/drivers/dri/i965/brw_nir.c > b/src/mesa/drivers/dri/i965/brw_nir.c > index e031173..a8bed70 100644 > --- a/src/mesa/drivers/dri/i965/brw_nir.c > +++ b/src/mesa/drivers/dri/i965/brw_nir.c > @@ -405,42 +405,8 @@ brw_nir_lowe

[Mesa-dev] [PATCH] nir: extract out helper macros for running passes

2015-12-30 Thread Rob Clark
From: Rob Clark Note these are a bit uglier, due to avoidance of GNU C extensions. But drivers which do not need to be built with compilers that don't support the extension can wrap these macros with their own. Signed-off-by: Rob Clark --- So I can re-use in ir3. src/glsl/nir/nir.h