projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1686715
)
glsl_to_nir: Zero nir_constant in constant_copy for valgrind & nir_serialize
author
Jordan Justen
<jordan.l.justen@intel.com>
Mon, 2 Oct 2017 07:19:31 +0000
(
00:19
-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 1d1085ffbcf970f6df1969d40bad9cff111d4441..c659a25ca77c86ae0b1d6c8ec82e870d0177da47 100644
(file)
--- a/
src/compiler/glsl/glsl_to_nir.cpp
+++ b/
src/compiler/glsl/glsl_to_nir.cpp
@@
-219,7
+219,7
@@
constant_copy(ir_constant *ir, void *mem_ctx)
if (ir == NULL)
return NULL;
- nir_constant *ret = ralloc(mem_ctx, nir_constant);
+ nir_constant *ret = r
z
alloc(mem_ctx, nir_constant);
const unsigned rows = ir->type->vector_elements;
const unsigned cols = ir->type->matrix_columns;