Otherwise, the simulator would complain in tex-miplevel-selection that the
min/max clamp was out of order. The actual HW seems to have clamped to
the max anyway.
* TEXTURE_SHADER_STATE that ignores psview->min/max_lod to
* support txf properly.
*/
- .min_level_of_detail = (psview->u.tex.first_level +
- MAX2(psampler->min_lod, 0)),
+ .min_level_of_detail = MIN2(psview->u.tex.first_level +
+ MAX2(psampler->min_lod, 0),
+ psview->u.tex.last_level),
.max_level_of_detail = MIN2(psview->u.tex.first_level +
psampler->max_lod,
psview->u.tex.last_level),