Mesa (gallium-0.2): cell: memset() key to zero
Brian Paul
brianp at kemper.freedesktop.org
Tue Oct 7 20:50:18 UTC 2008
Module: Mesa
Branch: gallium-0.2
Commit: be3c070b6a86255feb752b7574daff8cb6091b96
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=be3c070b6a86255feb752b7574daff8cb6091b96
Author: Brian Paul <brian.paul at tungstengraphics.com>
Date: Tue Oct 7 14:50:06 2008 -0600
cell: memset() key to zero
---
src/gallium/drivers/cell/ppu/cell_state_emit.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/cell/ppu/cell_state_emit.c b/src/gallium/drivers/cell/ppu/cell_state_emit.c
index b00c41f..69c1e4d 100644
--- a/src/gallium/drivers/cell/ppu/cell_state_emit.c
+++ b/src/gallium/drivers/cell/ppu/cell_state_emit.c
@@ -49,6 +49,7 @@ lookup_fragment_ops(struct cell_context *cell)
/*
* Build key
*/
+ memset(&key, 0, sizeof(key));
key.blend = *cell->blend;
key.dsa = *cell->depth_stencil;
More information about the mesa-commit
mailing list