i965/miptree: Set logical_depth0 == 6 for cube maps
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 19 Jul 2016 05:00:30 +0000 (22:00 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 20 Jul 2016 15:19:22 +0000 (08:19 -0700)
commite19b7f7f1b5d6a1d325c0129d6d6b9da6234330a
tree101b5b42868c84a5a7901b6298ba60a5337e5b4d
parentd4d505d0b04b9bce7c346fe0710df9921861edd6
i965/miptree: Set logical_depth0 == 6 for cube maps

This matches what we do for cube maps where logical_depth0 is in number of
face-layers rather than number of cubes.  This does mean that we will
temporarily be setting the surface bounds too loose for cube map textures
but we are already setting them too loose for cube arrays and we will be
fixing that in the next commit anyway.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Chris Forbes <chrisforbes@google.com>
Cc: "12.0 11.2 11.1" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c