i965/gen7: Set up surface horizontal alignment field.
authorEric Anholt <eric@anholt.net>
Tue, 17 Jan 2012 19:28:56 +0000 (11:28 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 18 Jan 2012 18:25:36 +0000 (10:25 -0800)
commitf0d5c92a4c9d5057d727819e501d80c5dfcdf76e
tree7640c9cb999ecba7d6f9943f02b4bdeed9739c51
parentfc767ff59056a418a1c573261f0d04a329278ee8
i965/gen7: Set up surface horizontal alignment field.

This is required for Z16 support for texturing, which is the first
thing to have a horizontal alignment of 8.  Renderbuffers don't need
it, since they're always set up as the only mip level, but do it for
completeness anyway.

NOTE: This is a candidate for the 8.0 branch.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c