glsl/blob: add valgrind checks that written data is defined
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 24 Jun 2017 08:26:29 +0000 (10:26 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 5 Jul 2017 10:26:10 +0000 (12:26 +0200)
commit3628efedf29d2b5e181ea88f24db518038ab1a92
treeeb49d9cc4edf8b5aff0212bb73184f1d1f3cd50b
parent210ebd4b9c1b510ff1b29a81aa7512ea77056966
glsl/blob: add valgrind checks that written data is defined

Undefined data will eventually trigger a valgrind error while computing
its CRC32 while writing it into the disk cache, but at that point, it is
basically impossible to track down where the undefined data came from.

With this change, finding the origin of undefined data becomes easy.

v2: remove duplicate VALGRIND_CFLAGS (Emil)

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/compiler/Makefile.am
src/compiler/glsl/blob.c