summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2010-10-14 11:39:09 -0700
committerKenneth Graunke <[email protected]>2010-10-14 12:40:16 -0700
commitf541b685aaf404fa7c8142f51d91c2720d82f264 (patch)
tree87b10baa1915a7342069d9ad373916d552623886 /src/mesa
parentf9bd4c6c26e406834aaeec85d9068a901a4defb0 (diff)
i965: Use RNDZ for ir_unop_trunc in the new FS.
The existing code used RNDD, which rounds down, rather than toward zero.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index fc6f9920838..d46091c9e6e 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -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;