st/mesa: set sampler_view::last_level correctly
authorMarek Olšák <marek.olsak@amd.com>
Sat, 14 Jun 2014 00:49:11 +0000 (02:49 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 18 Jun 2014 22:17:09 +0000 (00:17 +0200)
commit552c70a837b68124a8cd85873d45075fa17659f4
treec3a3dc14a91b2d1c715cbb7709138a7f1572b3ed
parentc530282bbc5e235bee11f3d253d1bda20f5b98ba
st/mesa: set sampler_view::last_level correctly

It was set to pipe_resource::last_level and _MaxLevel was embedded in max_lod,
that's why it worked for ordinary texturing. However, min_lod doesn't have
any effect on texelFetch and textureQueryLevels, so we must still set
last_level correctly.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/state_tracker/st_atom_sampler.c
src/mesa/state_tracker/st_atom_texture.c