From 720bdfbceb5b20bbbb4090cca7a1825ca5f89260 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Wed, 13 Oct 2010 14:21:08 -0700 Subject: [PATCH] glsl: Initialize variable in ir_derefence_array::constant_expression_value Completely initialize data passed to ir_constant constructor. Fixes piglit glsl-mat-from-int-ctor-03 valgrind uninitialized value error on softpipe. --- src/glsl/ir_constant_expression.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/ir_constant_expression.cpp b/src/glsl/ir_constant_expression.cpp index 61a708f6e2d..8301e680278 100644 --- a/src/glsl/ir_constant_expression.cpp +++ b/src/glsl/ir_constant_expression.cpp @@ -751,7 +751,7 @@ ir_dereference_array::constant_expression_value() */ const unsigned mat_idx = column * column_type->vector_elements; - ir_constant_data data; + ir_constant_data data = { { 0 } }; switch (column_type->base_type) { case GLSL_TYPE_UINT: -- 2.30.2