Re: [Mesa-dev] [PATCH] nir: Fix per-component negation in prog_to_nir's SWZ handling.

2015-04-17 Thread Matt Turner
On Fri, Apr 17, 2015 at 2:32 PM, Kenneth Graunke wrote: > 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.freedeskto

[Mesa-dev] [PATCH] nir: Fix per-component negation in prog_to_nir's SWZ handling.

2015-04-17 Thread Kenneth Graunke
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=9 Signed-off-by: Kenneth Graunke --- s