From: Brian Paul Date: Sat, 10 Oct 2009 15:25:34 +0000 (-0600) Subject: Merge branch 'mesa_7_6_branch' X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=57e3eb1b178e861dee7695c9a5e1c71a4333192d;p=mesa.git Merge branch 'mesa_7_6_branch' --- 57e3eb1b178e861dee7695c9a5e1c71a4333192d diff --cc src/gallium/drivers/softpipe/sp_tile_cache.c index 83fb4e0d151,b2195ec6b59..65872cecc4f --- a/src/gallium/drivers/softpipe/sp_tile_cache.c +++ b/src/gallium/drivers/softpipe/sp_tile_cache.c @@@ -93,11 -127,16 +93,16 @@@ sp_create_tile_cache( struct pipe_scree if (tc) { tc->screen = screen; for (pos = 0; pos < NUM_ENTRIES; pos++) { - tc->entries[pos].x = - tc->entries[pos].y = -1; + tc->entries[pos].addr.bits.invalid = 1; } + tc->last_tile = &tc->entries[0]; /* any tile */ - #if TILE_CLEAR_OPTIMIZATION + /* XXX this code prevents valgrind warnings about use of uninitialized + * memory in programs that don't clear the surface before rendering. + * However, it breaks clearing in other situations (such as in + * progs/tests/drawbuffers, see bug 24402). + */ + #if 0 && TILE_CLEAR_OPTIMIZATION /* set flags to indicate all the tiles are cleared */ memset(tc->clear_flags, 255, sizeof(tc->clear_flags)); #endif