nv50,nvc0: fix blit 3d path for 1d array textures
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 10 May 2014 21:51:21 +0000 (17:51 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 11 May 2014 23:26:31 +0000 (19:26 -0400)
commit8baed872126b331aa8d789b78986c0100c6d853a
treefbbacbce0f4d064d30a95058cb4bb7cae1738ed7
parent4467c0c9fbf2c13b6c73a002e8247448ee12d4c4
nv50,nvc0: fix blit 3d path for 1d array textures

Need to adjust coordinates since the shader receives the array index as
depth in z, but the TEX instruction expects it to be the second
coordinate for a 1D array texture. This fixes fbo-generatemipmap-array.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
Cc: "10.2" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/nv50/nv50_surface.c