projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe10250
)
ir_variable: Initialize all attribute bits to reasonable defaults
author
Ian Romanick
<ian.d.romanick@intel.com>
Wed, 10 Mar 2010 08:21:27 +0000
(
00:21
-0800)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Wed, 10 Mar 2010 08:21:27 +0000
(
00:21
-0800)
This prevents variables from randomly having their 'invariant' or
'read_only' bits set, for example.
ir.cpp
patch
|
blob
|
history
diff --git
a/ir.cpp
b/ir.cpp
index 2eac2c90cd11ea98bbb94819ca21381b25d57510..ad93310bc90f626754324e3969948d8fe2285623 100644
(file)
--- a/
ir.cpp
+++ b/
ir.cpp
@@
-95,7
+95,8
@@
ir_dereference::ir_dereference(ir_instruction *var)
ir_variable::ir_variable(const struct glsl_type *type, const char *name)
- : ir_instruction(ir_op_var_decl)
+ : ir_instruction(ir_op_var_decl), read_only(false), centroid(false),
+ invariant(false), mode(ir_var_auto), interpolation(ir_var_smooth)
{
this->type = type;
this->name = name;