diff options
author | Keith Whitwell <[email protected]> | 2009-10-05 15:50:11 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2009-10-05 15:51:55 +0100 |
commit | b02ef740b90029bc40629e5b81270a8cf77101d3 (patch) | |
tree | 784f5b3804fae4a74fc84130f5922ea5d22c1054 /src/mesa/state_tracker/st_context.c | |
parent | 6a085184ebf251f145181796e317ffa179a38bae (diff) |
mesa/st: add ST_DEBUG environment variable
At last it's possible to turn on tgsi dumps and other debugging in the
state tracker without modifying sources...
Diffstat (limited to 'src/mesa/state_tracker/st_context.c')
-rw-r--r-- | src/mesa/state_tracker/st_context.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c index 96969c736c0..f0eddafd331 100644 --- a/src/mesa/state_tracker/st_context.c +++ b/src/mesa/state_tracker/st_context.c @@ -36,6 +36,7 @@ #include "shader/shader_api.h" #include "glapi/glapi.h" #include "st_public.h" +#include "st_debug.h" #include "st_context.h" #include "st_cb_accum.h" #include "st_cb_bitmap.h" @@ -113,6 +114,9 @@ st_create_context_priv( GLcontext *ctx, struct pipe_context *pipe ) st->ctx = ctx; st->pipe = pipe; + /* XXX: this is one-off, per-screen init: */ + st_debug_init(); + /* state tracker needs the VBO module */ _vbo_CreateContext(ctx); |