diff options
author | Christoph Bumiller <[email protected]> | 2012-05-05 14:38:09 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2012-05-09 17:13:14 +0200 |
commit | f7665ca4fc2a7bba8378d44d38059fc5dd536223 (patch) | |
tree | 1190ec2b7a7eae30b74168d7bf3ddc23e42ed07c /src/mesa | |
parent | 6ae12bac596ce3a6aa8e09f638ad2cb4a7c18e5c (diff) |
glsl_to_tgsi: use TGSI_OPCODE_CEIL for ir_unop_ceil
The implementation using FLR was buggy, the second negation could
get lost.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 9e68deb3471..eecabb3e666 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -1775,9 +1775,7 @@ glsl_to_tgsi_visitor::visit(ir_expression *ir) emit(ir, TGSI_OPCODE_TRUNC, result_dst, op[0]); break; case ir_unop_ceil: - op[0].negate = ~op[0].negate; - emit(ir, TGSI_OPCODE_FLR, result_dst, op[0]); - result_src.negate = ~result_src.negate; + emit(ir, TGSI_OPCODE_CEIL, result_dst, op[0]); break; case ir_unop_floor: emit(ir, TGSI_OPCODE_FLR, result_dst, op[0]); |