From f82ced5af3a65d4eccc2910c99ca3af3776c40d1 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 2 Sep 2016 18:35:38 -0700 Subject: [PATCH] glsl: Allow GLSL_TYPE_INT64 for ir_unop_abs and ir_unop_sign Signed-off-by: Ian Romanick Reviewed-by: Matt Turner --- src/compiler/glsl/ir_validate.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.30.2