nir: Fix fddy swizzles in nir_lower_wpos_ytransform().
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 18 May 2016 06:16:14 +0000 (23:16 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 20 May 2016 21:29:04 +0000 (14:29 -0700)
commit287f099db170132518b75142de8580fd252fde45
treeb8bb08a56b1587cd0c815087ce7b05a7adec8531
parent7fe9a19302b8953cb267f3a1876543ad6aef8177
nir: Fix fddy swizzles in nir_lower_wpos_ytransform().

The original value might have been swizzled.  That's taken care of in
the fmul source - we don't want to reswizzle it again.

Fixes validation failures in glsl-derivs-varyings on a branch of mine
which uses this pass in i965.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/compiler/nir/nir_lower_wpos_ytransform.c