i915: Clamp minimum lod to maximum texture level too.
authorEric Anholt <eric@anholt.net>
Fri, 4 Jun 2010 20:27:05 +0000 (13:27 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 4 Jun 2010 20:28:48 +0000 (13:28 -0700)
commitb80a728f8a86cbd1efce9611d822ab73b5baeab9
treec5dd964a9587a0549399ec9fe8200db8326e9a5b
parent18a6e5ee73c5cef283c6bef906e5f8e4f60d4000
i915: Clamp minimum lod to maximum texture level too.

Otherwise, we'd run into minlod > maxlod, and the sampler would give
us the undefined we asked for.

Bug #24846.  Fixes OGLC texlod.c.
src/mesa/drivers/dri/i915/i915_texstate.c