nir/print: Don't print extra swizzzle components
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 24 Mar 2015 01:20:21 +0000 (18:20 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 1 Apr 2015 19:49:49 +0000 (12:49 -0700)
commit793a94d6b5fc589ca8d7475347def4e222cd3d7c
tree8bc03f3f08b894e606f566411aac25074fa0796d
parentd99135b2e9b7599ee57ac90952c605b725239908
nir/print: Don't print extra swizzzle components

Previously, NIR would just print 4 swizzle components if the swizzle was
anything other than foo.xyzw.  This creates lots of noise if, for example,
you have a one-component element with a swizzle of foo.xxxx.

Reviewed-by: Kenneth Grunke <kenneth@whitecape.org>
src/glsl/nir/nir_print.c