softpipe: use last_level from sampler view, not from the resource
authorRoland Scheidegger <sroland@vmware.com>
Thu, 26 Jun 2014 00:37:44 +0000 (02:37 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 26 Jun 2014 14:57:12 +0000 (16:57 +0200)
commitb1c1c7d31b3ad625243616597028e7d599eb8190
tree2dbf2df126cc0cd45f5b4720aef68809c362f8f6
parentf3a97c0381acc73fa4404a8793059bd8e8d44a38
softpipe: use last_level from sampler view, not from the resource

The last_level from the sampler view may be limited by the state tracker
to a value lower than what the base texture provides.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=80541.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/softpipe/sp_tex_sample.c