i965: refactor miptree alignment calculation code
authorNanley Chery <nanley.g.chery@intel.com>
Thu, 28 May 2015 23:02:34 +0000 (16:02 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Wed, 26 Aug 2015 21:36:43 +0000 (14:36 -0700)
commit43d5b4db969930f9d85f605c75ef9ffe67e58ad3
tree463a99e4390fa801e5ad222b8a212091b1c8a761
parenta6877341358e1534e74dd9e5fc72934a20b78228
i965: refactor miptree alignment calculation code

Remove redundant checks and comments by grouping our calculations for
align_w and align_h wherever possible.

v2: reintroduce brw.
    don't include functional changes.
    don't adjust function parameters or create a new function.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
src/mesa/drivers/dri/i965/brw_tex_layout.c