summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/softpipe/sp_context.h
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-07-12 14:13:48 -0600
committerBrian <[email protected]>2007-07-12 14:13:48 -0600
commita48d767cf2ec82d0c0f893a22d22e8593901b206 (patch)
tree732104c0465295a05709e4caf786b722b393769e /src/mesa/pipe/softpipe/sp_context.h
parente8ceb5a2eb174f5444eaf5f52925fa161ea7d0a9 (diff)
Add a quad 'bufloop' stage to handle glDrawBuffer(GL_FRONT_AND_BACK).
This removes the notion of multiple color buffers from all other stages. Will need a bit more work when shaders with multiple render targets arrive.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_context.h')
-rw-r--r--src/mesa/pipe/softpipe/sp_context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/sp_context.h b/src/mesa/pipe/softpipe/sp_context.h
index 3ae1de71cf7..81d2b58cf93 100644
--- a/src/mesa/pipe/softpipe/sp_context.h
+++ b/src/mesa/pipe/softpipe/sp_context.h
@@ -122,6 +122,7 @@ struct softpipe_context {
struct quad_stage *alpha_test;
struct quad_stage *stencil_test;
struct quad_stage *depth_test;
+ struct quad_stage *bufloop;
struct quad_stage *blend;
struct quad_stage *colormask;
struct quad_stage *output;
@@ -131,6 +132,8 @@ struct softpipe_context {
/** The primitive drawing context */
struct draw_context *draw;
+
+ struct pipe_surface *cbuf; /**< current color buffer (one of cbufs) */
};