summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/common/depthtmp.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-09-03 16:41:30 +0000
committerBrian Paul <[email protected]>2005-09-03 16:41:30 +0000
commitc6262cd8c5e1ca8f702e9694c81749601287fb10 (patch)
tree9d1ee2c03f62859b5db78242b3d3e4c5ef071385 /src/mesa/drivers/dri/common/depthtmp.h
parent3ba814ae0740fc9ceb79f05570bc889362cc288d (diff)
added SetStencil/DepthPointer functions
Diffstat (limited to 'src/mesa/drivers/dri/common/depthtmp.h')
-rw-r--r--src/mesa/drivers/dri/common/depthtmp.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/depthtmp.h b/src/mesa/drivers/dri/common/depthtmp.h
index 1875d157b4c..55199abf6a3 100644
--- a/src/mesa/drivers/dri/common/depthtmp.h
+++ b/src/mesa/drivers/dri/common/depthtmp.h
@@ -241,6 +241,22 @@ static void TAG(ReadDepthPixels)( GLcontext *ctx,
}
+/**
+ * Initialize the given renderbuffer's span routines to point to
+ * the depth/z functions we generated above.
+ */
+static void TAG(InitDepthPointers)(struct gl_renderbuffer *rb)
+{
+ rb->GetRow = TAG(ReadDepthSpan);
+ rb->GetValues = TAG(ReadDepthPixels);
+ rb->PutRow = TAG(WriteDepthSpan);
+ rb->PutRowRGB = NULL;
+ rb->PutMonoRow = TAG(WriteMonoDepthSpan);
+ rb->PutValues = TAG(WriteDepthPixels);
+ rb->PutMonoValues = NULL;
+}
+
+
#if HAVE_HW_DEPTH_SPANS
#undef WRITE_DEPTH_SPAN
#undef WRITE_DEPTH_PIXELS