[Mesa-dev] [PATCH 01/19] intel: Add HiZ operations to intel_context.vtbl

Chad Versace chad at chad-versace.us
Fri Sep 23 17:37:31 PDT 2011


Add the following functions:
    resolve_depthbuffer
    resolve_hizbuffer

Signed-off-by: Chad Versace <chad at chad-versace.us>
---
 src/mesa/drivers/dri/intel/intel_context.h |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_context.h b/src/mesa/drivers/dri/intel/intel_context.h
index b7989dd..78e3ca3 100644
--- a/src/mesa/drivers/dri/intel/intel_context.h
+++ b/src/mesa/drivers/dri/intel/intel_context.h
@@ -154,6 +154,17 @@ struct intel_context
       /** Can HiZ be enabled on a depthbuffer of the given format? */
       bool (*is_hiz_depth_format)(struct intel_context *intel,
 	                          gl_format format);
+
+      /**
+       * \name HiZ operations
+       * \{
+       */
+      void (*resolve_depthbuffer)(struct intel_context *intel,
+      				  struct intel_region *depth_region);
+      void (*resolve_hizbuffer)(struct intel_context *intel,
+				struct intel_region *depth_region);
+      /** \} */
+
    } vtbl;
 
    GLbitfield Fallback;  /**< mask of INTEL_FALLBACK_x bits */
-- 
1.7.6.2



More information about the mesa-dev mailing list