From a5f02b6696c3ce9ed87e017a537a37d09e288702 Mon Sep 17 00:00:00 2001 From: Abdiel Janulgue Date: Fri, 20 Jun 2014 11:56:48 -0700 Subject: glsl: Add ir_unop_saturate Signed-off-by: Abdiel Janulgue Reviewed-by: Matt Turner Reviewed-by: Ian Romanick --- src/glsl/ir_validate.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/glsl/ir_validate.cpp') diff --git a/src/glsl/ir_validate.cpp b/src/glsl/ir_validate.cpp index 5b20677825c..97a581dc2d5 100644 --- a/src/glsl/ir_validate.cpp +++ b/src/glsl/ir_validate.cpp @@ -241,6 +241,7 @@ ir_validate::visit_leave(ir_expression *ir) case ir_unop_log: case ir_unop_exp2: case ir_unop_log2: + case ir_unop_saturate: assert(ir->operands[0]->type->base_type == GLSL_TYPE_FLOAT); assert(ir->type == ir->operands[0]->type); break; -- cgit v1.2.3