summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/common/drirenderbuffer.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-09-01 03:07:29 +0000
committerBrian Paul <[email protected]>2005-09-01 03:07:29 +0000
commit5545245fe794519db577b2e8208277cd8fc7d276 (patch)
tree56a8bf2f69323091d5940a0a416735a4d4aac07a /src/mesa/drivers/dri/common/drirenderbuffer.h
parentdb84ec2c6ddb197409e7d7288308d030fd4649eb (diff)
added a few more fields to help with DRI drivers
Diffstat (limited to 'src/mesa/drivers/dri/common/drirenderbuffer.h')
-rw-r--r--src/mesa/drivers/dri/common/drirenderbuffer.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/drirenderbuffer.h b/src/mesa/drivers/dri/common/drirenderbuffer.h
index 627f1d41d98..b2b6fea12cd 100644
--- a/src/mesa/drivers/dri/common/drirenderbuffer.h
+++ b/src/mesa/drivers/dri/common/drirenderbuffer.h
@@ -29,6 +29,20 @@ typedef struct {
GLint offset; /* in bytes */
GLint pitch; /* in pixels */
+ /* If the driver can do page flipping (full-screen double buffering)
+ * the current front/back buffers may get swapped.
+ * If page flipping is disabled, these fields will be identical to
+ * the offset/pitch above.
+ * If page flipping is enabled, and this is the front(back) renderbuffer,
+ * flippedOffset/Pitch will have the back(front) renderbuffer's values.
+ */
+ GLint flippedOffset;
+ GLint flippedPitch;
+
+ /* XXX this is for radeon/r200 only. We should really create a new
+ * r200Renderbuffer class, derived from this class... not a huge deal.
+ */
+ GLboolean depthHasSurface;
} driRenderbuffer;