i965/gen7: Prefer vertical alignment of 4 when possible.
authorPaul Berry <stereotype441@gmail.com>
Wed, 13 Nov 2013 01:16:25 +0000 (17:16 -0800)
committerPaul Berry <stereotype441@gmail.com>
Tue, 19 Nov 2013 17:48:48 +0000 (09:48 -0800)
commit6b40dd17cf844b9cc8d6b1a816d4e93cbf6decef
tree99f4d1a252f62b179d7b0a443acdf34649189e94
parent60b1a118e123493624324ae191d05870e95968f3
i965/gen7: Prefer vertical alignment of 4 when possible.

Gen6+ allows for color buffers to use a vertical alignment of either 4
or 2.  Previously we defaulted to 2.  This may have caused problems on
Gen7 because Y-tiled render targets are not allowed to use a vertical
alignment of 2.

This patch changes the vertical alignment to 4 on Gen7, except for the
few formats where a vertical alignment of 2 is required.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_tex_layout.c