intel: Add field intel_mipmap_tree::hiz_map

This is a map of miptree slices to needed resolves.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
This commit is contained in:
Chad Versace
2011-11-17 07:42:21 -08:00
parent 8d3aa14e89
commit cf5e08c8e4

View File

@@ -31,6 +31,7 @@
#include <assert.h>
#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.
*