intel: Avoid making tiled miptrees we won't be able to blit.
authorEric Anholt <eric@anholt.net>
Wed, 3 Apr 2013 00:28:41 +0000 (17:28 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 8 Apr 2013 18:49:33 +0000 (11:49 -0700)
commitca9a7d975af228cabb79c3040ec67f26f94f90a2
tree3acebb09847a38e94a3f06abc45f8201bc8f0735
parentdfed1150904ce8455126574a3dd5439de541726c
intel: Avoid making tiled miptrees we won't be able to blit.

Doing so was breaking miptree mapping, which we really need to be able to
handle.  With this change, intel_miptree_map_direct() falls through to
doing a CPU mapping on the buffer like we need.

With the previous 2 patches, all of these should be fixed:
piglit max-texture-size (all 3 patches required!)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=37871
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=44958
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=53494

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/intel/intel_mipmap_tree.c