summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/p_state.h
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-07-12 16:17:14 -0600
committerBrian <[email protected]>2007-07-12 16:17:14 -0600
commitf0f9a22609ccf2b8edc5760480f1a7a78cb504d7 (patch)
tree8bcf2aff7109cb03d1fb0e7167a8ee34f1315b6b /src/mesa/pipe/p_state.h
parenta48d767cf2ec82d0c0f893a22d22e8593901b206 (diff)
minor changes, comments about multiple color buffers, MRT.
Diffstat (limited to 'src/mesa/pipe/p_state.h')
-rw-r--r--src/mesa/pipe/p_state.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mesa/pipe/p_state.h b/src/mesa/pipe/p_state.h
index 3dfe584af87..2b0d6599937 100644
--- a/src/mesa/pipe/p_state.h
+++ b/src/mesa/pipe/p_state.h
@@ -49,7 +49,7 @@
#define PIPE_MAX_CLIP_PLANES 6
#define PIPE_MAX_CONSTANT 32
#define PIPE_ATTRIB_MAX 32
-
+#define PIPE_MAX_COLOR_BUFS 8
/* fwd decl */
@@ -192,9 +192,10 @@ struct pipe_stencil_state {
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 */
+ /** multiple colorbuffers for multiple render targets */
+ GLuint num_cbufs;
+ struct pipe_surface *cbufs[PIPE_MAX_COLOR_BUFS];
+
struct pipe_surface *zbuf; /**< Z buffer */
struct pipe_surface *sbuf; /**< Stencil buffer */
struct pipe_surface *abuf; /**< Accum buffer */
@@ -221,6 +222,7 @@ struct pipe_sampler_state
#if 0 /* need these? */
GLint BaseLevel; /**< min mipmap level, OpenGL 1.2 */
GLint MaxLevel; /**< max mipmap level, OpenGL 1.2 */
+ GLfloat border_color[4];
#endif
GLfloat max_anisotropy;
};