i915: Implement min/max LOD clamping with the hardware.
authorEric Anholt <eric@anholt.net>
Thu, 29 Oct 2009 18:52:28 +0000 (11:52 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 29 Oct 2009 19:06:04 +0000 (12:06 -0700)
commitf8f40b53a6a4551630e25bfd7f6e12334bb0f3f8
tree439a6e62c435a4b9594a20ca6d34009f5ffe9895
parent374447244165b3b79892cb6840a76ea4c2f21f1e
i915: Implement min/max LOD clamping with the hardware.

This gets us expected behavior for clamping between mipmap levels, and
avoids relayout of textures for doing clamping.

Fixes piglit lodclamp-between.
src/mesa/drivers/dri/i915/i915_texstate.c
src/mesa/drivers/dri/i965/brw_wm_sampler_state.c
src/mesa/drivers/dri/intel/intel_context.h
src/mesa/drivers/dri/intel/intel_tex_validate.c