[Mesa-dev] [PATCH 2/7] i965/cfg: Add a foreach_block_and_inst macro.

Pohjolainen, Topi topi.pohjolainen at intel.com
Fri Jul 18 02:57:09 PDT 2014


Subject of patch number four sort of hints that this would be used in patch
number three also. I didn't find any occurencies though, did you mean to use
it there already?

Anyway, patches 1-4 are:

Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

On Thu, Jul 17, 2014 at 03:26:02PM -0700, Matt Turner wrote:
> Will let us abstract how the instructions are stored.
> ---
>  src/mesa/drivers/dri/i965/brw_cfg.h | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_cfg.h b/src/mesa/drivers/dri/i965/brw_cfg.h
> index cdbadde..01fcc1b 100644
> --- a/src/mesa/drivers/dri/i965/brw_cfg.h
> +++ b/src/mesa/drivers/dri/i965/brw_cfg.h
> @@ -103,6 +103,10 @@ struct cfg_t {
>     int num_blocks;
>  };
>  
> +#define foreach_block_and_inst(__block, __type, __inst, __cfg) \
> +   foreach_block (__block, __cfg)                              \
> +      foreach_inst_in_block (__type, __inst, __block)
> +
>  #define foreach_inst_in_block(__type, __inst, __block)         \
>     for (__type *__inst = (__type *)__block->start;             \
>          __inst != __block->end->next;                          \
> -- 
> 1.8.5.5
> 
> _______________________________________________
> 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