freedreno/a4xx: fix 3d texture setup
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 21 Nov 2015 02:34:20 +0000 (21:34 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 21 Nov 2015 14:08:16 +0000 (09:08 -0500)
commit740eb63aa78a48bae5248b72f023d725ed82d1b3
treed38f58e5fbd2d2c177500aaadb49757e22c87354
parentecb0dcd34c9bb31b240a213cd17c236b224cd290
freedreno/a4xx: fix 3d texture setup

Same fix as on a3xx - set the second (tiny) layer size bitfield to the
smallest level's size so that the hw knows not to minify beyond that.

This fixes texelFetch sampler3D piglits.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/freedreno/a4xx/fd4_emit.c
src/gallium/drivers/freedreno/a4xx/fd4_texture.c
src/gallium/drivers/freedreno/a4xx/fd4_texture.h