nvc0: fix 3d images on kepler
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 4 Feb 2019 02:55:12 +0000 (21:55 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 7 Feb 2019 00:35:57 +0000 (19:35 -0500)
commit162352e6711b3ceab114686f7a3248074339e7f7
treeb43d8d2b791a984fbb34aa7f902e21979d99f2b2
parent5de5beedf21306b01730085f8e03d8f424729016
nvc0: fix 3d images on kepler

Looks like SUBFM.3D and SUEAU are perfectly capable of dealing with 3d
tiling, they just need the correct inputs. Supply them.

We also have to deal with the case where a 2d "layer" of a 3d image is
bound. In this case, we supply the z coordinate separately to the
shader, which has to optionally treat every 2d case as if it could be a
slice of a 3d texture.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: 19.0 <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
src/gallium/drivers/nouveau/nvc0/nvc0_tex.c