r600g: fix op3 abs issue
authorDave Airlie <airlied@redhat.com>
Tue, 31 Mar 2015 05:18:47 +0000 (15:18 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 7 Apr 2015 01:40:16 +0000 (11:40 +1000)
commitad84689f737edefe549688f9b36d66027ca3fcb2
treeb4b3c6daa59e2a63650cd842d415f032f8433df9
parent2042a2f961a07e04eaca0347e42859c249325531
r600g: fix op3 abs issue

This code to handle absolute values on op3 srcs was a bit too simple,
it really needs a temp reg per src, not one per channel, make it
easier and let sb clean up the mess.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89831

Reviewed-by: Glenn Kennard <glenn.kennard@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_shader.c