summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2011-11-17 07:42:21 -0800
committerChad Versace <[email protected]>2011-11-22 10:50:49 -0800
commitcf5e08c8e41473467a8732fc834cec52f8b10dc8 (patch)
treef1122a3c7e4b2acb8c3346deb60325aab5f886e3 /src/mesa/drivers
parent8d3aa14e893d2912c393ac1ad9e142699d561018 (diff)
intel: Add field intel_mipmap_tree::hiz_map
This is a map of miptree slices to needed resolves. Reviewed-by: Eric Anholt <[email protected]> Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/intel/intel_mipmap_tree.h13
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 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 <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