summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Arceri <tarceri@itsqueeze.com>2017-07-31 22:48:27 +1000
committerTimothy Arceri <tarceri@itsqueeze.com>2017-08-02 12:55:42 +1000
commit06237fc9e15e6274c24f89985a224135a617a491 (patch)
tree37a8f78948654a7cdd4cb4b8192ea50aa53d3284
parentcb6f16dce90b4737f62588f8ea5083ee6544787e (diff)
mesa/st: fix conditional jump depends on uninitialised value
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 <nicolai.haehnle@amd.com> Reviewed-by: Karol Herbst <karolherbst@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
-rw-r--r--src/mesa/state_tracker/st_glsl_to_tgsi.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index 65bd3486d3..4d66a32d49 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;