mesa: Fix up program_parse.y to avoid uninitialized $$
authorPaul Berry <stereotype441@gmail.com>
Fri, 9 Nov 2012 17:17:22 +0000 (09:17 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 19 Apr 2013 17:12:27 +0000 (10:12 -0700)
commitfe955dc6b626a43036ff2a4cfe44511e10a09332
tree19039b7025a22550fae0c43ddfe075475f2d12c2
parentea6cf2b68614e9f8d0db44ee917ce93f9ad1ac2f
mesa: Fix up program_parse.y to avoid uninitialized $$

Without this patch, $$.negate, $$.rgba_valid, and $$.xyzw_valid take
on garbage values.  At the moment this problem is benign (the garbage
values happen to be zero), but in my experiments executing GL
operations on a background thread, the garbage values change, leading
to piglit failures.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/program/program_parse.y