i965: Don't tile 1D miptrees.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 14 Nov 2014 18:30:46 +0000 (20:30 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 10 Feb 2015 17:09:25 +0000 (19:09 +0200)
commit36a17f0f991323410778392bc2d00f9d911d501b
tree265d7a434fd5a6d6950247af1bd52d113776b936
parentb40bcd24e0c86fb02c226261c1fe46fb362be217
i965: Don't tile 1D miptrees.

It doesn't really improve locality of texture fetches, quite the
opposite it's a waste of memory bandwidth and space due to tile
alignment.

v2: Check mt->logical_height0 instead of mt->target (Ken).  Add short
    comment explaining why they shouldn't be tiled.

Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c