diff options
author | Jordan Justen <[email protected]> | 2017-10-20 18:54:17 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2017-10-25 12:36:21 -0700 |
commit | abbcdc9b69901528c9ea4469a4dc2977c71ff9f9 (patch) | |
tree | 6579cb38dc1d59ad16a9f4d8b52677024b4d8d43 /src/compiler | |
parent | 23327af91c3ccb82be3a5de3ed1b2b3f49168d75 (diff) |
glsl: Add field initializers for glsl_struct_field default constructor
This helps valgrind when encode_type_to_blob is used.
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/glsl_types.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/compiler/glsl_types.h b/src/compiler/glsl_types.h index b5e97e638ba..0b4a66ca4d2 100644 --- 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 */ } |