projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47f3f22
)
glsl2: Fix validation for ir_unop_not.
author
Eric Anholt
<eric@anholt.net>
Mon, 2 Aug 2010 19:06:34 +0000
(12:06 -0700)
committer
Eric Anholt
<eric@anholt.net>
Mon, 2 Aug 2010 19:06:34 +0000
(12:06 -0700)
We use vector ir_unop_not to implement builtin not(), and that seems fine.
src/glsl/ir_validate.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/ir_validate.cpp
b/src/glsl/ir_validate.cpp
index 85417a1dbc822fa8e9bfef27149bfb80c9b5a504..1dfac82826919c28b0faa825a3fd452625cb74c4 100644
(file)
--- a/
src/glsl/ir_validate.cpp
+++ b/
src/glsl/ir_validate.cpp
@@
-171,8
+171,8
@@
ir_validate::visit_leave(ir_expression *ir)
assert(ir->operands[0]->type == ir->type);
break;
case ir_unop_logic_not:
- assert(ir->type
== glsl_type::bool_type
);
- assert(ir->operands[0]->type
== glsl_type::bool_type
);
+ assert(ir->type
->base_type == GLSL_TYPE_BOOL
);
+ assert(ir->operands[0]->type
->base_type == GLSL_TYPE_BOOL
);
break;
case ir_unop_neg: