Re: [Mesa-dev] [PATCH] nir+drivers: add helpers to get # of src/dest components

2018-03-30 Thread Eric Anholt
Rob Clark writes: > Add helpers to get the number of src/dest components for an intrinsic, > and update spots that were open-coding this logic to use the helpers > instead. > > Signed-off-by: Rob Clark > --- > src/compiler/nir/nir.h | 22 > ++ >

[Mesa-dev] [PATCH] nir+drivers: add helpers to get # of src/dest components

2018-03-28 Thread Rob Clark
Add helpers to get the number of src/dest components for an intrinsic, and update spots that were open-coding this logic to use the helpers instead. Signed-off-by: Rob Clark --- src/compiler/nir/nir.h | 22 ++ src/compiler/nir/nir_opt_copy_propagat