intel: Store miptree alignment units in the miptree
authorChad Versace <chad.versace@linux.intel.com>
Thu, 17 Nov 2011 16:30:30 +0000 (08:30 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Tue, 22 Nov 2011 18:50:51 +0000 (10:50 -0800)
commit017c13d55b5b086774d6afea2ca754482c624c6a
tree2361a497d2c2d9de938a8a5af8a9fcd0e35348c9
parent293e9a7ccfeb64efd54464658518e4ded054a13c
intel: Store miptree alignment units in the miptree

This allows us to replace all the calls to
intel_get_texture_alignment_unit() with a single call at miptree creation.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_tex_layout.c
src/mesa/drivers/dri/intel/intel_mipmap_tree.c
src/mesa/drivers/dri/intel/intel_mipmap_tree.h
src/mesa/drivers/dri/intel/intel_tex_layout.c