projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23327af
)
glsl: Add field initializers for glsl_struct_field default constructor
author
Jordan Justen
<jordan.l.justen@intel.com>
Sat, 21 Oct 2017 01:54:17 +0000
(18:54 -0700)
committer
Jordan Justen
<jordan.l.justen@intel.com>
Wed, 25 Oct 2017 19:36:21 +0000
(12:36 -0700)
This helps valgrind when encode_type_to_blob is used.
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/glsl_types.h
patch
|
blob
|
history
diff --git
a/src/compiler/glsl_types.h
b/src/compiler/glsl_types.h
index
b5e97e6
..
0b4a66c
100644
(file)
--- a/
src/compiler/glsl_types.h
+++ b/
src/compiler/glsl_types.h
@@
-1045,6
+1045,13
@@
struct glsl_struct_field {
}
glsl_struct_field()
+ : type(NULL), name(NULL), location(0), offset(0), xfb_buffer(0),
+ xfb_stride(0), interpolation(0), centroid(0),
+ sample(0), matrix_layout(0), patch(0),
+ precision(0), memory_read_only(0),
+ memory_write_only(0), memory_coherent(0), memory_volatile(0),
+ memory_restrict(0), image_format(0), explicit_xfb_buffer(0),
+ implicit_sized_array(0)
{
/* empty */
}