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>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user