ir_validate: Ensure ir_binop_dot is only used on vector types.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 8 Sep 2010 06:22:10 +0000 (23:22 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 8 Sep 2010 19:09:42 +0000 (12:09 -0700)
src/glsl/ir_validate.cpp

index 8e82590..445169f 100644 (file)
@@ -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;