projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b04ead
)
glsl2: add case for ir_unop_noise
author
Brian Paul
<brianp@vmware.com>
Tue, 14 Sep 2010 15:15:19 +0000
(09:15 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 14 Sep 2010 15:15:20 +0000
(09:15 -0600)
Silences a compiler warning. Still need to add some assertions
for this case.
src/glsl/ir_validate.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/ir_validate.cpp
b/src/glsl/ir_validate.cpp
index 1c50957d13be0636cac1d4ae2bf6004b20b3ae64..58ab8aa58f86492f780d0ae5de39b03a4480c09a 100644
(file)
--- a/
src/glsl/ir_validate.cpp
+++ b/
src/glsl/ir_validate.cpp
@@
-275,6
+275,10
@@
ir_validate::visit_leave(ir_expression *ir)
assert(ir->operands[0]->type == ir->type);
break;
+ case ir_unop_noise:
+ /* XXX what can we assert here? */
+ break;
+
case ir_binop_add:
case ir_binop_sub:
case ir_binop_mul: