diff options
author | Alex Corscadden <[email protected]> | 2010-08-10 13:37:44 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-09-23 07:58:44 -0600 |
commit | 2883e3c0b5eafcc871775e0c3dbdf97ac6f35e15 (patch) | |
tree | 1be451dcea545b1ea8ffa3d970b89dc82e77bd56 /src/gallium | |
parent | ddfdea88d86bc9016dd51730b855ff6a9a53a4f3 (diff) |
Allow RBUG to start blocked
It is sometimes useful to examine the first frame or and early frame of a
quickly executing and non-repeating application, this chain introduces a new
environment variable that is checked when creating contexts. If
GALLIUM_RBUG_START_BLOCKED is set, then each context that is created is started
in a blocked state. This allows time to connect rbug before anything is
rendered in the context.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/rbug/rbug_context.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/rbug/rbug_context.c b/src/gallium/drivers/rbug/rbug_context.c index 6690c0208bd..96f4ce6b48b 100644 --- a/src/gallium/drivers/rbug/rbug_context.c +++ b/src/gallium/drivers/rbug/rbug_context.c @@ -1245,5 +1245,9 @@ rbug_context_create(struct pipe_screen *_screen, struct pipe_context *pipe) rbug_screen_add_to_list(rb_screen, contexts, rb_pipe); + if (debug_get_bool_option("GALLIUM_RBUG_START_BLOCKED", FALSE)) { + rb_pipe->draw_blocked = RBUG_BLOCK_BEFORE; + } + return &rb_pipe->base; } |