nv50,nvc0: limit the y-tiling of 3d textures to the first level's tiling
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 5 Apr 2015 21:40:44 +0000 (17:40 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 7 Apr 2015 03:06:55 +0000 (23:06 -0400)
commitae720c66cb91c2640dfd6707446899694a24ab5b
treeebb60a1b4ad19a8a1e1a7d7f486f2497d12db1e9
parentad84689f737edefe549688f9b36d66027ca3fcb2
nv50,nvc0: limit the y-tiling of 3d textures to the first level's tiling

We limit y-tiling to 0x20 when depth is involved. However the function is
run for each miplevel, and the hardware expects miplevel 0 to have the
highest tiling settings. Perform the y-tiling limit on all levels of a
3d texture, not just the ones that have depth.

Fixes:
  texelFetch fs sampler3D 98x129x1-98x129x9

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Tested-by: Nick Tenney <nick.tenney@gmail.com> # GT216
Cc: "10.4 10.5" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/nv50/nv50_miptree.c
src/gallium/drivers/nouveau/nv50/nv50_resource.h
src/gallium/drivers/nouveau/nvc0/nvc0_miptree.c