glsl: prevent spurious Valgrind errors when serializing NIR
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 23 Mar 2018 14:43:58 +0000 (15:43 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 20 Apr 2018 07:21:23 +0000 (09:21 +0200)
commit68ee1d57962c81172841459f5eaeefbe5506425e
tree576d82a7aba489e0ad15feb941a7bcf78ac69442
parent354b12681bc01d967849e05fae2677a3e1c5ca3a
glsl: prevent spurious Valgrind errors when serializing NIR

It looks as if the structure fields array is fully initialized below,
but in fact at least gcc in debug builds will not actually overwrite
the unused bits of bit fields.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/glsl_types.cpp