intel: Change signature of HiZ resolve functions
authorChad Versace <chad.versace@linux.intel.com>
Thu, 17 Nov 2011 07:23:30 +0000 (23:23 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Tue, 22 Nov 2011 18:50:49 +0000 (10:50 -0800)
Now that intel_renderbuffer::region has been replaced with a miptree, the
HiZ functions region parameter must be replaced with a miptree parameter.

Change the return type from bool to void.

Rename the 'depth' parameter to 'layer', because it will correspond to
irb->mt_layer.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_vtbl.c
src/mesa/drivers/dri/i965/gen6_hiz.c
src/mesa/drivers/dri/i965/gen6_hiz.h
src/mesa/drivers/dri/intel/intel_context.h

index 75e8b2645b6051e5954cb935ab7ea91ba28bf01b..dd2e05a3669baa67cd2b9164384ca448e13eaa8e 100644 (file)
@@ -236,8 +236,8 @@ void brwInitVtbl( struct brw_context *brw )
    brw->intel.vtbl.is_hiz_depth_format = brw_is_hiz_depth_format;
 
    if (brw->intel.has_hiz) {
-      brw->intel.vtbl.hiz_resolve_hizbuffer = gen6_hiz_resolve_hizbuffer;
-      brw->intel.vtbl.hiz_resolve_depthbuffer = gen6_hiz_resolve_depthbuffer;
+      brw->intel.vtbl.resolve_depth_slice = gen6_resolve_depth_slice;
+      brw->intel.vtbl.resolve_hiz_slice = gen6_resolve_hiz_slice;
    }
 
    if (brw->intel.gen >= 7) {
index fc6344b0aa94403cae9668d663417c50648a7f79..5bb56a78348c95a5574115a518f85d8bfb5cc82e 100644 (file)
 
 #include "gen6_hiz.h"
 
-#include <assert.h>
-
 void
-gen6_hiz_resolve_depthbuffer(struct intel_context *intel,
-                             struct intel_region *depth_region)
+gen6_resolve_hiz_slice(struct intel_context *intel,
+                       struct intel_mipmap_tree *mt,
+                       uint32_t level,
+                       uint32_t layer)
 {
-   assert("!stub");
+   /* FINISHME: stub */
 }
 
 void
-gen6_hiz_resolve_hizbuffer(struct intel_context *intel,
-                           struct intel_region *depth_region)
+gen6_resolve_depth_slice(struct intel_context *intel,
+                         struct intel_mipmap_tree *mt,
+                         uint32_t level,
+                         uint32_t layer)
 {
-   assert("!stub");
+   /* FINISHME: stub */
 }
index 4611182b9801301a607fd09296fd70aae3a47972..49290123ff050eb2c4de67be809cf9262edc384b 100644 (file)
 
 #pragma once
 
+#include <stdint.h>
+
 struct intel_context;
-struct intel_region;
+struct intel_mipmap_tree;
 
 void
-gen6_hiz_resolve_depthbuffer(struct intel_context *intel,
-                             struct intel_region *depth_region);
+gen6_resolve_hiz_slice(struct intel_context *intel,
+                       struct intel_mipmap_tree *mt,
+                       uint32_t level,
+                       uint32_t layer);
 
 void
-gen6_hiz_resolve_hizbuffer(struct intel_context *intel,
-                           struct intel_region *depth_region);
+gen6_resolve_depth_slice(struct intel_context *intel,
+                         struct intel_mipmap_tree *mt,
+                         uint32_t level,
+                         uint32_t layer);
index f2be597385108013f3c32400de0753cc43efab0d..efaf721ae828dcf831d3afd2c46ec19dc8445a3e 100644 (file)
@@ -166,10 +166,15 @@ struct intel_context
        *   - 7.5.3.3 Hierarchical Depth Buffer Resolve
        * \{
        */
-      void (*hiz_resolve_depthbuffer)(struct intel_context *intel,
-                                     struct intel_region *depth_region);
-      void (*hiz_resolve_hizbuffer)(struct intel_context *intel,
-                                   struct intel_region *depth_region);
+      void (*resolve_hiz_slice)(struct intel_context *intel,
+                               struct intel_mipmap_tree *mt,
+                               uint32_t level,
+                               uint32_t layer);
+
+      void (*resolve_depth_slice)(struct intel_context *intel,
+                                 struct intel_mipmap_tree *mt,
+                                 uint32_t level,
+                                 uint32_t layer);
       /** \} */
 
       /**