summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2012-12-20 11:36:38 -0800
committerEric Anholt <eric@anholt.net>2012-12-26 12:02:47 -0800
commit3e1d8e62e7d52c19677c67d8f158688a9e4a0e51 (patch)
tree055b2408d1448202c0e3db98c7b08e368541d926 /src/mesa
parentcb3b172d196c98f4ab707751f0628e072ef47a86 (diff)
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>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/intel/intel_mipmap_tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
index 580d0215d49..9ae7bcccb19 100644
--- a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
@@ -857,7 +857,7 @@ intel_miptree_alloc_hiz(struct intel_context *intel,
/* MSAA HiZ surfaces always use IMS layout. */
mt->hiz_mt = intel_miptree_create(intel,
mt->target,
- MESA_FORMAT_X8_Z24,
+ mt->format,
mt->first_level,
mt->last_level,
mt->width0,