From: Ian Romanick Date: Sat, 3 Sep 2016 01:35:38 +0000 (-0700) Subject: glsl: Allow GLSL_TYPE_INT64 for ir_unop_abs and ir_unop_sign X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f82ced5af3a65d4eccc2910c99ca3af3776c40d1;p=mesa.git glsl: Allow GLSL_TYPE_INT64 for ir_unop_abs and ir_unop_sign Signed-off-by: Ian Romanick Reviewed-by: Matt Turner --- diff --git a/src/compiler/glsl/ir_validate.cpp b/src/compiler/glsl/ir_validate.cpp index 4f13754e74e..5a1202b0b0d 100644 --- a/src/compiler/glsl/ir_validate.cpp +++ b/src/compiler/glsl/ir_validate.cpp @@ -253,7 +253,8 @@ ir_validate::visit_leave(ir_expression *ir) case ir_unop_sign: assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT || ir->operands[0]->type->base_type == GLSL_TYPE_FLOAT || - ir->operands[0]->type->base_type == GLSL_TYPE_DOUBLE); + ir->operands[0]->type->base_type == GLSL_TYPE_DOUBLE || + ir->operands[0]->type->base_type == GLSL_TYPE_INT64); assert(ir->type == ir->operands[0]->type); break;