summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/p_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/pipe/p_state.h')
-rw-r--r--src/mesa/pipe/p_state.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/mesa/pipe/p_state.h b/src/mesa/pipe/p_state.h
index 7264f253d9..dba1e11715 100644
--- a/src/mesa/pipe/p_state.h
+++ b/src/mesa/pipe/p_state.h
@@ -149,7 +149,9 @@ struct pipe_stencil_state {
/* This will change for hardware pipes...
*/
-struct pipe_surface {
+struct pipe_surface
+{
+ GLuint width, height;
GLubyte *ptr;
GLint stride;
GLuint cpp;
@@ -157,6 +159,17 @@ struct pipe_surface {
};
+struct pipe_framebuffer_state
+{
+ GLuint num_cbufs; /**< Number of color bufs to draw to */
+ struct pipe_surface *cbufs[4]; /**< OpenGL can write to as many as
+ 4 color buffers at once */
+ struct pipe_surface *zbuf; /**< Z buffer */
+ struct pipe_surface *sbuf; /**< Stencil buffer */
+ struct pipe_surface *abuf; /**< Accum buffer */
+};
+
+
/**
* Texture sampler state.
*/