From: Eric Anholt Date: Thu, 20 Mar 2008 00:53:21 +0000 (-0700) Subject: [965] Initialize region surface key structure padding. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7183ccaa9df1b5591e7aca926ce4ea5aab4ffc86;p=mesa.git [965] Initialize region surface key structure padding. Fixes valgrind warnings, and potential performance loss from cache misses. --- diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c index 86566df388c..c5c944f781f 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c +++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c @@ -257,6 +257,8 @@ brw_update_region_surface(struct brw_context *brw, struct intel_region *region, GLboolean tiled, color_blend; } key; + memset(&key, 0, sizeof(key)); + if (region != NULL) { region_bo = region->buffer;