r600g: fix abs() support on ALU 3 source operands instructions
authorXavier Bouchoux <xavierb@gmail.com>
Wed, 28 Jan 2015 01:20:51 +0000 (02:20 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 6 Feb 2015 19:03:06 +0000 (20:03 +0100)
commitacef65503e79ce61a16bdba92462f0ed8a7b52c2
tree48227e0910ab48a75bc368d3651d7ea5f53d9847
parentbae23a1756c361dd74b97be6c9d4762bca4ca81a
r600g: fix abs() support on ALU 3 source operands instructions

Since alu does not support abs() modifier on source operands, spill
and apply the modifiers to a temp register when needed.

Signed-off-by: Xavier Bouchoux <xavierb@gmail.com>
Reviewed-by: Glenn Kennard <glenn.kennard@gmail.com>
src/gallium/drivers/r600/r600_asm.c
src/gallium/drivers/r600/r600_shader.c
src/gallium/drivers/r600/r700_asm.c