summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_context.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-09-17 14:24:11 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-09-17 14:24:11 -0600
commitb4bacd1fca336f043d1ee3c3a346fbd42a3b02eb (patch)
tree81ff3b367c175ae693daed8a07f395fc0635cff7 /src/mesa/state_tracker/st_context.c
parent2a40c71fed9461a6ecd17788b17b35655262aec6 (diff)
Plug in selection/feedback code.
Not quite finished yet. Selection/feedback are done with a private instance of the 'draw' module in the state tracker. Not quite all the draw context's state is set yet, namely vertex format info. Hold off on that for a bit...
Diffstat (limited to 'src/mesa/state_tracker/st_context.c')
-rw-r--r--src/mesa/state_tracker/st_context.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
index e66e65e2dd..6ab643f1fe 100644
--- a/src/mesa/state_tracker/st_context.c
+++ b/src/mesa/state_tracker/st_context.c
@@ -33,6 +33,7 @@
#include "st_cb_clear.h"
#include "st_cb_drawpixels.h"
#include "st_cb_fbo.h"
+#include "st_cb_feedback.h"
#include "st_cb_queryobj.h"
#include "st_cb_rasterpos.h"
#include "st_cb_readpixels.h"
@@ -43,6 +44,7 @@
#include "st_draw.h"
#include "st_program.h"
#include "pipe/p_context.h"
+#include "pipe/draw/draw_context.h"
void st_invalidate_state(GLcontext * ctx, GLuint new_state)
@@ -64,6 +66,8 @@ struct st_context *st_create_context( GLcontext *ctx,
st->ctx = ctx;
st->pipe = pipe;
+ st->draw = draw_create(); /* for selection/feedback */
+
st->dirty.mesa = ~0;
st->dirty.st = ~0;
@@ -97,6 +101,7 @@ struct st_context *st_create_context( GLcontext *ctx,
void st_destroy_context( struct st_context *st )
{
+ draw_destroy(st->draw);
st_destroy_atoms( st );
st_destroy_draw( st );
@@ -120,6 +125,7 @@ void st_init_driver_functions(struct dd_function_table *functions)
st_init_clear_functions(functions);
st_init_drawpixels_functions(functions);
st_init_fbo_functions(functions);
+ st_init_feedback_functions(functions);
st_init_program_functions(functions);
st_init_query_functions(functions);
st_init_rasterpos_functions(functions);