diff options
author | Fabian Bieler <[email protected]> | 2011-02-25 10:11:37 +0100 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2011-02-28 09:21:41 +1000 |
commit | b6d40213935da702570eca2c0861bd4b1d7f5254 (patch) | |
tree | 03a41fcbe67cfad6ffbc174d18021f07b8490eba /src/gallium/drivers/r600/r600_shader.c | |
parent | d42c9433b0a3d9b3a198261d8037ce0d4595452d (diff) |
r600g: Don't negate result of ABS instruction
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 13ccc3fdc1f..cc4491c0f75 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -1014,6 +1014,8 @@ static int tgsi_op2_s(struct r600_shader_ctx *ctx, int swap) break; case TGSI_OPCODE_ABS: alu.src[0].abs = 1; + /* negation is performed after absolute value is taken */ + alu.src[0].neg = 0; break; default: break; |