summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/common/drirenderbuffer.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-09-03 16:42:19 +0000
committerBrian Paul <[email protected]>2005-09-03 16:42:19 +0000
commite6925b51e1e71dc45079636ce336a09806356999 (patch)
tree9aedd34db3089a49b11fb5835cd660aaafcf34f4 /src/mesa/drivers/dri/common/drirenderbuffer.h
parentc6262cd8c5e1ca8f702e9694c81749601287fb10 (diff)
added flippedData field for page flipping, code to flip stereo color buffers
Diffstat (limited to 'src/mesa/drivers/dri/common/drirenderbuffer.h')
-rw-r--r--src/mesa/drivers/dri/common/drirenderbuffer.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/common/drirenderbuffer.h b/src/mesa/drivers/dri/common/drirenderbuffer.h
index 67affa06e15..bd07bc790f2 100644
--- a/src/mesa/drivers/dri/common/drirenderbuffer.h
+++ b/src/mesa/drivers/dri/common/drirenderbuffer.h
@@ -32,17 +32,23 @@ typedef struct {
/* 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.
+ * the offset/pitch/Data above.
* If page flipping is enabled, and this is the front(back) renderbuffer,
- * flippedOffset/Pitch will have the back(front) renderbuffer's values.
+ * flippedOffset/Pitch/Data will have the back(front) renderbuffer's values.
*/
GLint flippedOffset;
GLint flippedPitch;
+ GLubyte *flippedData; /* mmap'd memory, if used */
/* 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;
+
+ /* XXX this is for s3v only. A handy flag to know if this is the back
+ * color buffer.
+ */
+ GLboolean backBuffer;
} driRenderbuffer;
@@ -50,6 +56,6 @@ extern driRenderbuffer *
driNewRenderbuffer(GLenum format, GLint cpp, GLint offset, GLint pitch);
extern void
-driFlipRenderbuffers(struct gl_framebuffer *fb, GLenum flipped);
+driFlipRenderbuffers(struct gl_framebuffer *fb, GLboolean flipped);
#endif /* DRIRENDERBUFFER_H */