From 7183ccaa9df1b5591e7aca926ce4ea5aab4ffc86 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 19 Mar 2008 17:53:21 -0700 Subject: [965] Initialize region surface key structure padding. Fixes valgrind warnings, and potential performance loss from cache misses. --- src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/drivers/dri/i965') 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 86566df388..c5c944f781 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; -- cgit v1.2.3