projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b2ffa0
)
ir_validate: Ensure ir_binop_dot is only used on vector types.
author
Kenneth Graunke
<kenneth@whitecape.org>
Wed, 8 Sep 2010 06:22:10 +0000
(23:22 -0700)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Wed, 8 Sep 2010 19:09:42 +0000
(12:09 -0700)
src/glsl/ir_validate.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/ir_validate.cpp
b/src/glsl/ir_validate.cpp
index 8e8259036447d52a4ce756f1b1541a74cf8f24ac..445169f5202ac5e572d1d7a051b2024648d0feb5 100644
(file)
--- 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;