From: Vinson Lee Date: Sun, 29 Aug 2010 21:05:07 +0000 (-0700) Subject: glsl: Initialize data in ast_function_expression::hir. X-Git-Tag: 062012170305~10096 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c93e69b25559225d3124d5a0deaaeceabf8cb12;p=profile%2Fivi%2Fmesa.git glsl: Initialize data in ast_function_expression::hir. Completely initialize data that is passed to ir_constant constructor. Fixes piglit glsl-orangebook-ch06-bump valgrind uninitialized variable error on softpipe and llvmpipe. --- diff --git a/src/glsl/ast_function.cpp b/src/glsl/ast_function.cpp index 34b0f70..c2e526c 100644 --- a/src/glsl/ast_function.cpp +++ b/src/glsl/ast_function.cpp @@ -1193,7 +1193,7 @@ ast_function_expression::hir(exec_list *instructions, * causes the matrix to be filled with 0 and the diagonal to be * filled with the value. */ - ir_constant_data data; + ir_constant_data data = { { 0 } }; ir_constant *const initializer = (ir_constant *) actual_parameters.head; if (constructor_type->is_matrix())