summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_context.c
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2010-03-31 12:01:16 +0800
committerChia-I Wu <olv@lunarg.com>2010-05-12 12:12:57 +0800
commitbcce57c2e9a1d9b203dba8fe13480889e6d19c89 (patch)
treee974365e0635003a159483fa86d49c05861d39dd /src/mesa/state_tracker/st_context.c
parent14a92b26ff76550c5010ddf8bcbf5226dae5183f (diff)
st/mesa: Make FEATURE_feedback and FEATURE_rastpos more modular.
Make st_cb_feedback.h FEATURE_feedback aware and st_cb_rastpos.h FEATURE_rastpos aware. Move creation of selection/feedback draw context to st_init_draw.
Diffstat (limited to 'src/mesa/state_tracker/st_context.c')
-rw-r--r--src/mesa/state_tracker/st_context.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
index bab54811b4..5c9462a399 100644
--- a/src/mesa/state_tracker/st_context.c
+++ b/src/mesa/state_tracker/st_context.c
@@ -45,9 +45,7 @@
#endif
#include "st_cb_eglimage.h"
#include "st_cb_fbo.h"
-#if FEATURE_feedback
#include "st_cb_feedback.h"
-#endif
#include "st_cb_program.h"
#include "st_cb_queryobj.h"
#include "st_cb_readpixels.h"
@@ -64,7 +62,6 @@
#include "util/u_inlines.h"
#include "util/u_rect.h"
#include "util/u_surface.h"
-#include "draw/draw_context.h"
#include "cso_cache/cso_context.h"
@@ -128,18 +125,6 @@ st_create_context_priv( GLcontext *ctx, struct pipe_context *pipe )
/* state tracker needs the VBO module */
_vbo_CreateContext(ctx);
-#if FEATURE_feedback || FEATURE_rastpos
- st->draw = draw_create(pipe); /* for selection/feedback */
-
- /* Disable draw options that might convert points/lines to tris, etc.
- * as that would foul-up feedback/selection mode.
- */
- draw_wide_line_threshold(st->draw, 1000.0f);
- draw_wide_point_threshold(st->draw, 1000.0f);
- draw_enable_line_stipple(st->draw, FALSE);
- draw_enable_point_sprites(st->draw, FALSE);
-#endif
-
st->dirty.mesa = ~0;
st->dirty.st = ~0;
@@ -224,9 +209,6 @@ static void st_destroy_context_priv( struct st_context *st )
{
uint i;
-#if FEATURE_feedback || FEATURE_rastpos
- draw_destroy(st->draw);
-#endif
st_destroy_atoms( st );
st_destroy_draw( st );
st_destroy_generate_mipmap(st);
@@ -315,9 +297,7 @@ void st_init_driver_functions(struct dd_function_table *functions)
st_init_eglimage_functions(functions);
st_init_fbo_functions(functions);
-#if FEATURE_feedback
st_init_feedback_functions(functions);
-#endif
st_init_program_functions(functions);
#if FEATURE_queryobj
st_init_query_functions(functions);