glsl_to_nir: Zero nir_variable struct for valgrind & nir_serialize
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
78550869a1
commit
16867154d8
|
@ -311,7 +311,7 @@ nir_visitor::visit(ir_variable *ir)
|
|||
if (ir->data.mode == ir_var_shader_shared)
|
||||
return;
|
||||
|
||||
nir_variable *var = ralloc(shader, nir_variable);
|
||||
nir_variable *var = rzalloc(shader, nir_variable);
|
||||
var->type = ir->type;
|
||||
var->name = ralloc_strdup(var, ir->name);
|
||||
|
||||
|
|
Loading…
Reference in New Issue