softpipe: initialize the clear_flags bitvector in sp_create_tile_cache()

This silences tons of valgrind warnings in programs that don't call
glClear(), such as progs/demos/gamma.
This commit is contained in:
Brian Paul 2009-09-29 08:50:56 -06:00
parent fbddc75aa2
commit 564df9dc5f
1 changed files with 5 additions and 0 deletions

View File

@ -130,6 +130,11 @@ sp_create_tile_cache( struct pipe_screen *screen )
tc->entries[pos].x =
tc->entries[pos].y = -1;
}
#if TILE_CLEAR_OPTIMIZATION
/* set flags to indicate all the tiles are cleared */
memset(tc->clear_flags, 255, sizeof(tc->clear_flags));
#endif
}
return tc;
}