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 8e8259036447d52a4ce756f1b1541a74cf8f24ac..445169f5202ac5e572d1d7a051b2024648d0feb5 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;