From: Chad Versace Date: Thu, 17 Nov 2011 15:42:21 +0000 (-0800) Subject: intel: Add field intel_mipmap_tree::hiz_map X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cf5e08c8e41473467a8732fc834cec52f8b10dc8;p=mesa.git intel: Add field intel_mipmap_tree::hiz_map This is a map of miptree slices to needed resolves. Reviewed-by: Eric Anholt Signed-off-by: Chad Versace --- diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.h b/src/mesa/drivers/dri/intel/intel_mipmap_tree.h index 2b20d061412..9531f20297c 100644 --- a/src/mesa/drivers/dri/intel/intel_mipmap_tree.h +++ b/src/mesa/drivers/dri/intel/intel_mipmap_tree.h @@ -31,6 +31,7 @@ #include #include "intel_regions.h" +#include "intel_resolve_map.h" /* A layer on top of the intel_regions code which adds: * @@ -58,6 +59,7 @@ * temporary system buffers. */ +struct intel_resolve_map; struct intel_texture_image; /** @@ -147,6 +149,17 @@ struct intel_mipmap_tree */ struct intel_mipmap_tree *hiz_mt; + /** + * \brief Map of miptree slices to needed resolves. + * + * This is used only when the miptree has a child HiZ miptree. + * + * Let \c mt be a depth miptree with HiZ enabled. Then the resolve map is + * \c mt->hiz_map. The resolve map of the child HiZ miptree, \c + * mt->hiz_mt->hiz_map, is unused. + */ + struct intel_resolve_map hiz_map; + /** * \brief Stencil miptree for depthstencil textures. *