i965: Push intel_get_texture_alignment_unit call into brw_miptree_layout
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 2 Jul 2013 22:06:10 +0000 (15:06 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 3 Jul 2013 17:48:15 +0000 (10:48 -0700)
commit466aa712b695010371228f6032bbed210ca206b2
tree661263dbb644f74d41e608fbe30d80815e3293f0
parentc4c3c0dc940fb021cef237451b50fb762a97f792
i965: Push intel_get_texture_alignment_unit call into brw_miptree_layout

intel_miptree_create_layout() calls intel_get_texture_alignment_unit()
and then immediately calls brw_miptree_layout().  There are no other
callers.

intel_get_texture_alignment_unit() populates the miptree's alignment
unit fields, which are used by brw_miptree_layout() to determine where
to place each miplevel.  Since brw_miptree_layout() needs those to be
present, it makes sense to have it initialize them as the first step.

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