i965: Fix negation in the new FS backend.
Fixes: glsl1-Negation glsl1-Negation2
This commit is contained in:
@@ -638,7 +638,7 @@ fs_visitor::visit(ir_expression *ir)
|
||||
emit(fs_inst(BRW_OPCODE_ADD, this->result, op[0], fs_reg(-1)));
|
||||
break;
|
||||
case ir_unop_neg:
|
||||
op[0].negate = ~op[0].negate;
|
||||
op[0].negate = !op[0].negate;
|
||||
this->result = op[0];
|
||||
break;
|
||||
case ir_unop_abs:
|
||||
|
||||
Reference in New Issue
Block a user