mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
i965: Fix swapped instructions in ir_unop_abs and ir_unop_neg.
Fixes glsl-fs-neg and 5 other tests.
This commit is contained in:
parent
2776ad2641
commit
53290900db
1 changed files with 2 additions and 2 deletions
|
|
@ -641,12 +641,12 @@ fs_visitor::visit(ir_expression *ir)
|
|||
emit(fs_inst(BRW_OPCODE_ADD, this->result, op[0], fs_reg(-1)));
|
||||
break;
|
||||
case ir_unop_neg:
|
||||
this->result = op[0];
|
||||
op[0].negate = ~op[0].negate;
|
||||
this->result = op[0];
|
||||
break;
|
||||
case ir_unop_abs:
|
||||
this->result = op[0];
|
||||
op[0].abs = true;
|
||||
this->result = op[0];
|
||||
break;
|
||||
case ir_unop_sign:
|
||||
temp = fs_reg(this, ir->type);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue