This is a map of miptree slices to needed resolves.
Signed-off-by: Chad Versace <[email protected]>
---
src/mesa/drivers/dri/intel/intel_mipmap_tree.h | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.h
b/src/mesa/drivers/dri/intel/intel_mipmap_tree.h
index 1e6f2d6..faed454 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 <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;
/**
@@ -148,6 +150,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.
*
* This miptree is used for depthstencil textures that require separate
--
1.7.7.1
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev