nir: Fix per-component negation in prog_to_nir's SWZ handling.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 17 Apr 2015 21:08:14 +0000 (14:08 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 21 Apr 2015 19:01:36 +0000 (12:01 -0700)
commit44461e70985278464f5c2ce89bda2336c7299b0b
treece44a23e51844ffcc3c36da5949277baffc50559
parented10f9cfad1a01226725d542155a240bcf70e9cb
nir: Fix per-component negation in prog_to_nir's SWZ handling.

I missed the fact that the ARB_fragment_program SWZ instruction allows
per-component negation.  To fix this, move Abs/Negate handling into both
the simple case and the SWZ case's per-component loop.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90000
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/program/prog_to_nir.c