diff options
author | Brian Paul <[email protected]> | 2009-10-10 09:25:34 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-10-10 09:25:34 -0600 |
commit | 57e3eb1b178e861dee7695c9a5e1c71a4333192d (patch) | |
tree | 9e4e6fc113820d1754f0955ce3f768d8d1ca1eec /src/gallium | |
parent | 39daa763b59cc80d862709e99ee3619bd0f7a14d (diff) | |
parent | 768481ed40cb7530fdbadbf4d6dc00b74209adf1 (diff) |
Merge branch 'mesa_7_6_branch'
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_tile_cache.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/drivers/softpipe/sp_tile_cache.c b/src/gallium/drivers/softpipe/sp_tile_cache.c index 83fb4e0d151..65872cecc4f 100644 --- a/src/gallium/drivers/softpipe/sp_tile_cache.c +++ b/src/gallium/drivers/softpipe/sp_tile_cache.c @@ -97,7 +97,12 @@ sp_create_tile_cache( struct pipe_screen *screen ) } 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 |