From 7183ccaa9df1b5591e7aca926ce4ea5aab4ffc86 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 19 Mar 2008 17:53:21 -0700 Subject: [PATCH] [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(+) 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; -- 2.30.2