r600g: introduce r600_bc_src_toggle_neg helper and fix SUB & LRP
authorVadim Girlin <vadimgirlin@gmail.com>
Fri, 8 Jul 2011 02:19:37 +0000 (06:19 +0400)
committerAlex Deucher <alexdeucher@gmail.com>
Fri, 8 Jul 2011 21:21:32 +0000 (17:21 -0400)
commit3efb47f0b0557a6b96a7e41b27725cea4736a061
treef078b3eff1769a3c5f7dfcdc2b93eaab48d0ea57
parentf87d566f4b0e4df18ab60d64951013629bdd624c
r600g: introduce r600_bc_src_toggle_neg helper and fix SUB & LRP

SUB & LRP instructions should toggle NEG bit instead of setting it,
otherwise e.g. "SUB a,b,-1" is translated as "ADD a,b,-1"

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
src/gallium/drivers/r600/r600_shader.c