mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 01:38:06 +02:00
r600g: Don't negate result of ABS instruction
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
d42c9433b0
commit
b6d4021393
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue