projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7292db2
)
gallium: don't call st_flush_bitmap_cache() if the only change is _NEW_PACKUNPACK...
author
Brian
<brian.paul@tungstengraphics.com>
Fri, 28 Mar 2008 21:17:50 +0000
(15:17 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Fri, 28 Mar 2008 21:17:50 +0000
(15:17 -0600)
src/mesa/state_tracker/st_atom.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_atom.c
b/src/mesa/state_tracker/st_atom.c
index 40e4142631bf3b38cd1035ceacfd1ff2aa26bdf9..18063adc79c16056d1d30620d4ede76b802a8928 100644
(file)
--- a/
src/mesa/state_tracker/st_atom.c
+++ b/
src/mesa/state_tracker/st_atom.c
@@
-148,7
+148,12
@@
void st_validate_state( struct st_context *st )
struct st_state_flags *state = &st->dirty;
GLuint i;
- st_flush_bitmap_cache(st);
+ /* The bitmap cache is immune to pixel unpack changes.
+ * Note that GLUT makes several calls to glPixelStore for each
+ * bitmap char it draws so this is an important check.
+ */
+ if (state->mesa & ~_NEW_PACKUNPACK)
+ st_flush_bitmap_cache(st);
check_program_state( st );