projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d0ef6b
)
glsl: Completely initialize value member in ir_constant constructor.
author
Vinson Lee
<vlee@vmware.com>
Sun, 29 Aug 2010 20:15:56 +0000
(13:15 -0700)
committer
Vinson Lee
<vlee@vmware.com>
Sun, 29 Aug 2010 20:15:56 +0000
(13:15 -0700)
The
ir_constant::ir_constant(const struct glsl_type *type, exec_list *value_list)
did not completely initialize the entire value member.
Fixes piglit glsl-fs-sampler-numbering-2 valgrind uninitialized value
error in softpipe and llvmpipe.
src/glsl/ir.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/ir.cpp
b/src/glsl/ir.cpp
index d56b60311640416e14b40bbde2802b25acccd034..992853c0466a9583f3dc3b4fc5df21470f3362ba 100644
(file)
--- a/
src/glsl/ir.cpp
+++ b/
src/glsl/ir.cpp
@@
-409,6
+409,9
@@
ir_constant::ir_constant(const struct glsl_type *type, exec_list *value_list)
return;
}
+ for (unsigned i = 0; i < 16; i++) {
+ this->value.u[i] = 0;
+ }
ir_constant *value = (ir_constant *) (value_list->head);