i965: Fix brw_vs_prog_data_compare to actually check field members.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 17 Sep 2013 05:39:37 +0000 (22:39 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 19 Sep 2013 17:52:57 +0000 (10:52 -0700)
commit4e4b0799165ae7b482da7d9af656ed8878500de1
treeae95adc63aee9e6734a8e0d553918e124c9ce16c
parentfeaad189b45cafe860b5f23bf534618ff30b5bd2
i965: Fix brw_vs_prog_data_compare to actually check field members.

&a and &b are the address of the local stack variables, not the actual
structures.  Instead of comparing the fields of a and b, we compared
...some stack memory.

Caught by Valgrind on Piglit's glsl-lod-bias test (among many others).

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68233
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Cc: mesa-stable@lists.freedesktop.org
src/mesa/drivers/dri/i965/brw_vs.c