projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbddc75
)
softpipe: initialize the clear_flags bitvector in sp_create_tile_cache()
author
Brian Paul
<brianp@vmware.com>
Tue, 29 Sep 2009 14:50:56 +0000
(08:50 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 29 Sep 2009 14:51:00 +0000
(08:51 -0600)
This silences tons of valgrind warnings in programs that don't call
glClear(), such as progs/demos/gamma.
src/gallium/drivers/softpipe/sp_tile_cache.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/softpipe/sp_tile_cache.c
b/src/gallium/drivers/softpipe/sp_tile_cache.c
index 461cbb9f95350b82f57276268b2cfa6c0d5814b9..5f7864e6714f04bbf88db384a56a07a59c0dfa1d 100644
(file)
--- a/
src/gallium/drivers/softpipe/sp_tile_cache.c
+++ b/
src/gallium/drivers/softpipe/sp_tile_cache.c
@@
-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;
}