i965/gen7: Disallow Y tiling of renderable surfaces with valign of 2.
authorPaul Berry <stereotype441@gmail.com>
Wed, 13 Nov 2013 01:51:15 +0000 (17:51 -0800)
committerPaul Berry <stereotype441@gmail.com>
Tue, 19 Nov 2013 17:48:51 +0000 (09:48 -0800)
commit81b998ca48fc96753096f22949bf3785b7aa425c
tree235b388bc924ea60e84a1d4f74fe1a690b969423
parent6b40dd17cf844b9cc8d6b1a816d4e93cbf6decef
i965/gen7: Disallow Y tiling of renderable surfaces with valign of 2.

Gen7 does not allow render targets to have a vertical alignment of 2.
So, when creating a surface, if its format is renderable, and its
vertical alignment is 2, force it to use X tiling.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c