mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-19 10:38:30 +02:00
i965/fs: When producing ir_unop_abs of an operand, strip negate.
We were returning the negative absolute value, instead of the absolute
value. Fixes glsl-fs-abs-neg.
(cherry picked from commit ab56e3be9a)
This commit is contained in:
parent
a702858139
commit
e15ad414d0
1 changed files with 1 additions and 0 deletions
|
|
@ -859,6 +859,7 @@ fs_visitor::visit(ir_expression *ir)
|
|||
break;
|
||||
case ir_unop_abs:
|
||||
op[0].abs = true;
|
||||
op[0].negate = false;
|
||||
this->result = op[0];
|
||||
break;
|
||||
case ir_unop_sign:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue