nv50: fix max level clamping on G80
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 20 Jul 2015 04:19:56 +0000 (00:19 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 20 Jul 2015 04:59:37 +0000 (00:59 -0400)
commit801d41fa43eba996c6bd7c071282ad15e51609d3
tree8e6d8070c8d891448a4a64bcb959270e69a14ac2
parent8c8a71f0d125bb655b17a32914ffecf8d159593b
nv50: fix max level clamping on G80

It appears that the G80 did not have support for the sampler view
first/last clamping. Put the view's last level in the place of the
texture's so that it doesn't go past what the sampler view allows.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/nouveau/nv50/nv50_tex.c