mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 07:00:12 +01:00
i965: Fix negation in the new FS backend.
Fixes: glsl1-Negation glsl1-Negation2
This commit is contained in:
parent
7ee8fa0421
commit
fceb78e3cc
1 changed files with 1 additions and 1 deletions
|
|
@ -638,7 +638,7 @@ fs_visitor::visit(ir_expression *ir)
|
||||||
emit(fs_inst(BRW_OPCODE_ADD, this->result, op[0], fs_reg(-1)));
|
emit(fs_inst(BRW_OPCODE_ADD, this->result, op[0], fs_reg(-1)));
|
||||||
break;
|
break;
|
||||||
case ir_unop_neg:
|
case ir_unop_neg:
|
||||||
op[0].negate = ~op[0].negate;
|
op[0].negate = !op[0].negate;
|
||||||
this->result = op[0];
|
this->result = op[0];
|
||||||
break;
|
break;
|
||||||
case ir_unop_abs:
|
case ir_unop_abs:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue