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:
parent
fbddc75aa2
commit
564df9dc5f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue