summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2008-03-19 17:53:21 -0700
committerEric Anholt <[email protected]>2008-03-19 17:54:06 -0700
commit7183ccaa9df1b5591e7aca926ce4ea5aab4ffc86 (patch)
tree1de3878a4219f34a7b9f64384ab8dec7fd06954e /src/mesa
parent7d5f713fa5c3d49425e984dc437926725ad4a8cc (diff)
[965] Initialize region surface key structure padding.
Fixes valgrind warnings, and potential performance loss from cache misses.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm_surface_state.c2
1 files changed, 2 insertions, 0 deletions
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;