gallium: clean-up, simplification of mipmapped textures
authorBrian <brian.paul@tungstengraphics.com>
Tue, 12 Feb 2008 21:53:25 +0000 (14:53 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 12 Feb 2008 21:53:25 +0000 (14:53 -0700)
commit4da1cdf78fa3b954840650fa46cf72da5daf149f
tree0496f6f4364e3608f7bb7af2a549a9ba3a898252
parentb61b1a295b13a0ff2cf98c8d07e62147d71c08b9
gallium: clean-up, simplification of mipmapped textures

Remove pipe_texture->first_level (always implicitly zero).  This means there's
never any unused mipmap levels at the top.
In the state tracker, we no longer re-layout mipmapped textures if the
MinLod/MaxLod texture parameters change.  It's up to the driver to obey the
pipe_sampler->min/max_lod clamps.
13 files changed:
src/mesa/pipe/i915simple/i915_state.c
src/mesa/pipe/i915simple/i915_state_sampler.c
src/mesa/pipe/i915simple/i915_texture.c
src/mesa/pipe/i965simple/brw_tex_layout.c
src/mesa/pipe/i965simple/brw_wm_surface_state.c
src/mesa/pipe/p_state.h
src/mesa/pipe/softpipe/sp_state_sampler.c
src/mesa/pipe/softpipe/sp_tex_sample.c
src/mesa/pipe/softpipe/sp_texture.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_gen_mipmap.c
src/mesa/state_tracker/st_texture.c
src/mesa/state_tracker/st_texture.h