glsl_to_tgsi: remove bad assertion
authorBryan Cain <bryancain3@gmail.com>
Sat, 7 Jan 2012 20:54:49 +0000 (14:54 -0600)
committerBryan Cain <bryancain3@gmail.com>
Sat, 7 Jan 2012 21:33:36 +0000 (15:33 -0600)
src/mesa/state_tracker/st_glsl_to_tgsi.cpp

index 73d956ea12d9ee8644cc5fcb4e7136727b883742..ddd5366a23b6f58bda586ae1bd70d4024de52752 100644 (file)
@@ -1402,8 +1402,7 @@ glsl_to_tgsi_visitor::visit(ir_expression *ir)
       }
       break;
    case ir_unop_neg:
-      assert(result_dst.type == GLSL_TYPE_FLOAT || result_dst.type == GLSL_TYPE_INT);
-      if (result_dst.type == GLSL_TYPE_INT)
+      if (result_dst.type == GLSL_TYPE_INT || result_dst.type == GLSL_TYPE_UINT)
          emit(ir, TGSI_OPCODE_INEG, result_dst, op[0]);
       else {
          op[0].negate = ~op[0].negate;