glsl: explicitly zero out padding to gl_shader_variable bitfield
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 24 Jun 2017 08:27:18 +0000 (10:27 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 5 Jul 2017 10:25:49 +0000 (12:25 +0200)
commit210ebd4b9c1b510ff1b29a81aa7512ea77056966
tree40d2924415506c52dd1b68ab57626a835cc3cd27
parentf4f7096c1d68746a1833ba1b19d8a290a83cbdde
glsl: explicitly zero out padding to gl_shader_variable bitfield

Otherwise, the padding bits remain undefined, which leads to valgrind
errors when storing the gl_shader_variable in the disk cache.

v2: use rzalloc instead of an explicit padding member variable

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/glsl/linker.cpp