mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
glsl: Completely initialize value member in ir_constant constructor.
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.
This commit is contained in:
parent
2d0ef6bfee
commit
30a0865528
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue