intel: Fall back to X-tiling when larger than estimated aperture size.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 10 Apr 2013 20:49:16 +0000 (13:49 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 10 Apr 2013 23:54:31 +0000 (16:54 -0700)
commitcbe24ff7c8d69a6d378d9c2cce2bc117517f4302
tree1c1f778c043cc17bbf564b1a2c871e58d1e476c4
parenteef3dff3fda76a9f42b8f788b720bf7c69a25584
intel: Fall back to X-tiling when larger than estimated aperture size.

If a region is larger than the estimated aperture size, we map/unmap it
by copying with the BLT engine.  Which means we can't use Y-tiling.

Fixes Piglit max-texture-size and tex3d-maxsize, which regressed in my
recent change to use Y-tiling by default on Gen6+.  This was due to a
botched merge conflict resolution.

v2: Return a mask of valid tilings from intel_miptree_select_tiling.
    This allows us to avoid the X-tiling fallback if Y-tiling is actually
    mandatory.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/intel/intel_mipmap_tree.c