glsl-to-tgsi: handle ir_unop_round_even
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Mon, 2 Jan 2012 20:11:45 +0000 (21:11 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Mon, 2 Jan 2012 20:16:03 +0000 (21:16 +0100)
src/mesa/state_tracker/st_glsl_to_tgsi.cpp

index 1515fc1600287f4b6f4666e70028cfe1c14fb103..eb44df23f9f7c218c96be17c80d7a9906613a0b7 100644 (file)
@@ -1781,6 +1781,9 @@ glsl_to_tgsi_visitor::visit(ir_expression *ir)
    case ir_unop_floor:
       emit(ir, TGSI_OPCODE_FLR, result_dst, op[0]);
       break;
+   case ir_unop_round_even:
+      emit(ir, TGSI_OPCODE_ROUND, result_dst, op[0]);
+      break;
    case ir_unop_fract:
       emit(ir, TGSI_OPCODE_FRC, result_dst, op[0]);
       break;
@@ -1830,7 +1833,7 @@ glsl_to_tgsi_visitor::visit(ir_expression *ir)
          emit(ir, TGSI_OPCODE_OR, result_dst, op[0], op[1]);
          break;
       }
-   case ir_unop_round_even:
+
       assert(!"GLSL 1.30 features unsupported");
       break;