mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
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>
This commit is contained in:
parent
cb6f16dce9
commit
06237fc9e1
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue