cell: memset() key to zero
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 7 Oct 2008 20:50:06 +0000 (14:50 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 7 Oct 2008 20:50:06 +0000 (14:50 -0600)
src/gallium/drivers/cell/ppu/cell_state_emit.c

index b00c41f47d64365f2c3e0119c161f3a545ef81f9..69c1e4d342d686a3344423c44b5c3530bca8997c 100644 (file)
@@ -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;