Re: [Mesa-dev] [PATCH 2/3] intel/compiler: add a region_match() helper

2018-07-03 Thread Caio Marcelo de Oliveira Filho
> +/** > + * Check that the register region given by r [r.offset, r.offset + dr[ > + * is exactly the same as the the register region given by s > + * [s.offset, s.offset + ds[ > + */ > +static inline bool > +region_match(const fs_reg , unsigned dr, const fs_reg , unsigned ds) > +{ > + return

[Mesa-dev] [PATCH 2/3] intel/compiler: add a region_match() helper

2018-05-15 Thread Iago Toral Quiroga
This checks whether two register regions are an exact match. --- src/intel/compiler/brw_ir_fs.h | 13 + 1 file changed, 13 insertions(+) diff --git a/src/intel/compiler/brw_ir_fs.h b/src/intel/compiler/brw_ir_fs.h index f06a33c516d..cad333b6b6d 100644 ---