intel: Use the parent miptree's format for setting up HiZ miptrees.
authorEric Anholt <eric@anholt.net>
Thu, 20 Dec 2012 19:36:38 +0000 (11:36 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 26 Dec 2012 20:02:47 +0000 (12:02 -0800)
commit3e1d8e62e7d52c19677c67d8f158688a9e4a0e51
tree055b2408d1448202c0e3db98c7b08e368541d926
parentcb3b172d196c98f4ab707751f0628e072ef47a86
intel: Use the parent miptree's format for setting up HiZ miptrees.

This worked out before because the parent was always 4 bytes so it
didn't affect the layout, but now we want to support Z16 too.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/intel/intel_mipmap_tree.c