[Mesa-dev] [PATCH 04/19] i965: Set HiZ operations in brw vtbl
Chad Versace
chad at chad-versace.us
Fri Sep 23 17:37:34 PDT 2011
If Gen >= 6, then set the following:
vtbl.resolve_depthbuffer
vtbl.resolve_hizbuffer.
Signed-off-by: Chad Versace <chad at chad-versace.us>
---
src/mesa/drivers/dri/i965/brw_vtbl.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_vtbl.c b/src/mesa/drivers/dri/i965/brw_vtbl.c
index 8b3677b..135887b 100644
--- a/src/mesa/drivers/dri/i965/brw_vtbl.c
+++ b/src/mesa/drivers/dri/i965/brw_vtbl.c
@@ -44,6 +44,7 @@
#include "brw_context.h"
#include "brw_defines.h"
+#include "brw_hiz.h"
#include "brw_state.h"
#include "brw_draw.h"
#include "brw_vs.h"
@@ -254,4 +255,12 @@ void brwInitVtbl( struct brw_context *brw )
brw->intel.vtbl.debug_batch = brw_debug_batch;
brw->intel.vtbl.render_target_supported = brw_render_target_supported;
brw->intel.vtbl.is_hiz_depth_format = brw_is_hiz_depth_format;
+
+ if (brw->intel.gen >= 6) {
+ brw->intel.vtbl.resolve_hizbuffer = brw_hiz_resolve_hizbuffer;
+ brw->intel.vtbl.resolve_depthbuffer = brw_hiz_resolve_depthbuffer;
+ } else {
+ brw->intel.vtbl.resolve_hizbuffer = 0;
+ brw->intel.vtbl.resolve_depthbuffer = 0;
+ }
}
--
1.7.6.2
More information about the mesa-dev
mailing list