Re: [Mesa-dev] [PATCH v3 1/2] nir: Add is_non_scalar_swizzle search helper

2019-05-10 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Fri, May 10, 2019 at 12:59 PM Alyssa Rosenzweig wrote: > This allows algebraic optimizations to check if the argument accesses > multiple distinct components of a vector. So a swizzle like "xyz" will > return true, but "yyy" will return false, as will a scalar. Th

[Mesa-dev] [PATCH v3 1/2] nir: Add is_non_scalar_swizzle search helper

2019-05-10 Thread Alyssa Rosenzweig
This allows algebraic optimizations to check if the argument accesses multiple distinct components of a vector. So a swizzle like "xyz" will return true, but "yyy" will return false, as will a scalar. This can be useful for optimizations on vector processors, where a scalar swizzle can be handled i