gallium: clean-up, simplification of mipmapped textures
authorBrian <brian.paul@tungstengraphics.com>
Tue, 12 Feb 2008 21:53:25 +0000 (14:53 -0700)
committerBen Skeggs <skeggsb@gmail.com>
Fri, 15 Feb 2008 02:51:11 +0000 (13:51 +1100)
commit09e23e077b2bc3dc9ec0ecd97e1043ee7f32f2bb
tree7a2fb2b63feb49313e838c0061b55ae39fb6c033
parent5d1af60edb1dbdf69fbf08b93fe0781f33f075dd
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