i965: use ALIGN_NPOT for setting ASTC mipmap layouts
authorNanley Chery <nanley.g.chery@intel.com>
Thu, 21 May 2015 21:27:55 +0000 (14:27 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Wed, 26 Aug 2015 21:36:43 +0000 (14:36 -0700)
commit10ff64fd3d19bc9da793fa43eb746c29608bfddd
treea53870691e67b27b834429e51825cde5fdc54095
parent54d2aa4258f0bfcc669b2bc4e82332f7ff4876dd
i965: use ALIGN_NPOT for setting ASTC mipmap layouts

ALIGN is changed to ALIGN_NPOT because alignment values are sometimes not
powers of two when working with ASTC.

v2: handle texture arrays and LDR-only systems.

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
src/mesa/drivers/dri/i965/intel_mipmap_tree.c