gallium: state tracker didn't always notify drivers of texobj data changes
authorBrian <brian.paul@tungstengraphics.com>
Wed, 20 Feb 2008 18:20:25 +0000 (11:20 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 20 Feb 2008 18:20:25 +0000 (11:20 -0700)
commit58edb0683db45c449b219988a8715cf8fd69e42d
tree1797c58be2dfa6768673e8542a754797d37065e4
parent22a0b85eaebf767f5b03bf899596e09f5cc03876
gallium: state tracker didn't always notify drivers of texobj data changes

Calling glTexSubImage() or glTexImage() to replace texture data didn't
reliably cause pipe->set_sampler_texture() to get called so drivers didn't
always get notified of new texture data.
The st_texture_object->pt pointer doesn't always indicate changed data so
added a dirtyData field.
src/mesa/state_tracker/st_atom_texture.c
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_cb_fbo.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_cb_texture.h
src/mesa/state_tracker/st_context.h
src/mesa/state_tracker/st_gen_mipmap.c
src/mesa/state_tracker/st_texture.h