From: Kenneth Graunke Date: Wed, 8 Sep 2010 06:22:10 +0000 (-0700) Subject: ir_validate: Ensure ir_binop_dot is only used on vector types. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=368dc76f04e19f5070d1f41795ea8cde2964639f;p=mesa.git ir_validate: Ensure ir_binop_dot is only used on vector types. --- diff --git a/src/glsl/ir_validate.cpp b/src/glsl/ir_validate.cpp index 8e825903644..445169f5202 100644 --- a/src/glsl/ir_validate.cpp +++ b/src/glsl/ir_validate.cpp @@ -338,6 +338,7 @@ ir_validate::visit_leave(ir_expression *ir) case ir_binop_dot: assert(ir->type == glsl_type::float_type); assert(ir->operands[0]->type->base_type == GLSL_TYPE_FLOAT); + assert(ir->operands[0]->type->is_vector()); assert(ir->operands[0]->type == ir->operands[1]->type); break;