i965: Set vertical alignment unit to 4 on Broadwell.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 15 Dec 2012 09:14:03 +0000 (01:14 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 2 Dec 2013 21:25:11 +0000 (13:25 -0800)
commit1110ba4c088e41548090d52d669157c3e9f6f9fa
tree6425538e47f476e96af7a8c50a6169704caa7178
parent93658054c03b4463d301be83b20c8933e49a5771
i965: Set vertical alignment unit to 4 on Broadwell.

Broadwell doesn't support a surface vertical alignment of 2.  It only
supports VALIGN_4, VALIGN_8, or VALIGN_16.  I chose 4 since it's the
least wasteful.

v2: Replace my comment with a better one from Eric.  Move Broadwell
    checks earlier so it's more obvious that "return 2" won't be hit.

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