projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7855086
)
glsl_to_nir: Zero nir_variable struct for valgrind & nir_serialize
author
Jordan Justen
<jordan.l.justen@intel.com>
Mon, 2 Oct 2017 07:17:22 +0000
(
00:17
-0700)
committer
Jordan Justen
<jordan.l.justen@intel.com>
Wed, 25 Oct 2017 19:36:21 +0000
(12:36 -0700)
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>
src/compiler/glsl/glsl_to_nir.cpp
patch
|
blob
|
history
diff --git
a/src/compiler/glsl/glsl_to_nir.cpp
b/src/compiler/glsl/glsl_to_nir.cpp
index 63694fd41f4650f08e273677b10883aa6e72be25..1d1085ffbcf970f6df1969d40bad9cff111d4441 100644
(file)
--- a/
src/compiler/glsl/glsl_to_nir.cpp
+++ b/
src/compiler/glsl/glsl_to_nir.cpp
@@
-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 = r
z
alloc(shader, nir_variable);
var->type = ir->type;
var->name = ralloc_strdup(var, ir->name);