mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 12:30:11 +01:00
i965: Use RNDZ for ir_unop_trunc in the new FS.
The existing code used RNDD, which rounds down, rather than toward zero.
This commit is contained in:
parent
f9bd4c6c26
commit
f541b685aa
1 changed files with 1 additions and 1 deletions
|
|
@ -869,7 +869,7 @@ fs_visitor::visit(ir_expression *ir)
|
|||
break;
|
||||
|
||||
case ir_unop_trunc:
|
||||
emit(fs_inst(BRW_OPCODE_RNDD, this->result, op[0]));
|
||||
emit(fs_inst(BRW_OPCODE_RNDZ, this->result, op[0]));
|
||||
break;
|
||||
case ir_unop_ceil:
|
||||
op[0].negate = !op[0].negate;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue