struct llvmpipe_tile_cache *tc;
uint pos;
- tc = CALLOC_STRUCT( llvmpipe_tile_cache );
+ tc = align_malloc( sizeof(struct llvmpipe_tile_cache), 16 );
if (tc) {
+ memset(tc, 0, sizeof *tc);
tc->screen = screen;
for (pos = 0; pos < NUM_ENTRIES; pos++) {
tc->entries[pos].addr.bits.invalid = 1;
screen->tex_transfer_destroy(tc->tex_trans);
}
- FREE( tc );
+ align_free( tc );
}