From 06237fc9e15e6274c24f89985a224135a617a491 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Mon, 31 Jul 2017 22:48:27 +1000 Subject: mesa/st: fix conditional jump depends on uninitialised value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported by valgrind at: glsl_to_tgsi_visitor::visit(ir_expression*) (st_glsl_to_tgsi.cpp:1560) When compiling the Deus Ex shaders. Fixes: 28a5e7104 ("st/glsl_to_tgsi: handle precise modifier") Reviewed-by: Nicolai Hähnle Reviewed-by: Karol Herbst Reviewed-by: Marek Olšák --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 65bd3486d32..4d66a32d490 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -4645,6 +4645,7 @@ glsl_to_tgsi_visitor::glsl_to_tgsi_visitor() mem_ctx = ralloc_context(NULL); ctx = NULL; prog = NULL; + precise = 0; shader_program = NULL; shader = NULL; options = NULL; -- cgit v1.2.3