ir_to_mesa: Add support for trunc/ceil/floor.

This commit is contained in:
Eric Anholt
2010-05-19 16:02:00 -07:00
parent c45b615a37
commit c2014f03e8
2 changed files with 22 additions and 3 deletions
+9
View File
@@ -520,6 +520,15 @@ ir_to_mesa_visitor::visit(ir_expression *ir)
this->result = this->create_tree(MB_TERM_sne_vec4_vec4, ir,
op[0], this->result);
break;
case ir_unop_trunc:
this->result = this->create_tree(MB_TERM_trunc_vec4, ir, op[0], NULL);
break;
case ir_unop_ceil:
this->result = this->create_tree(MB_TERM_ceil_vec4, ir, op[0], NULL);
break;
case ir_unop_floor:
this->result = this->create_tree(MB_TERM_floor_vec4, ir, op[0], NULL);
break;
default:
break;
}