summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2016-09-02 18:35:38 -0700
committerIan Romanick <ian.d.romanick@intel.com>2017-01-20 15:41:23 -0800
commitf82ced5af3a65d4eccc2910c99ca3af3776c40d1 (patch)
tree57de966bc9b5aedd6df174e247599d31f04e7c90 /src/compiler
parent8e7e1ae0365ddc7edb0d4d98250ab46728e6c14a (diff)
glsl: Allow GLSL_TYPE_INT64 for ir_unop_abs and ir_unop_sign
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/glsl/ir_validate.cpp3
1 files changed, 2 insertions, 1 deletions
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;