glsl_to_tgsi: remove bad assertion

This commit is contained in:
Bryan Cain 2012-01-07 14:54:49 -06:00
parent 282292f24c
commit c4529d10be
1 changed files with 1 additions and 2 deletions

View 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;