diff options
author | Nicolai Hähnle <[email protected]> | 2016-01-21 16:46:59 -0500 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-01-26 09:58:49 -0500 |
commit | f4c8fa4e49bf4a938bb0ec9ee7ff686e7c8007dc (patch) | |
tree | dab0bf9fd6a044c8b92f157fd31e91348f80c083 /src/gallium/drivers/ddebug/dd_draw.c | |
parent | 8894b5f0086cd80e7b5ccbe350d94e02fe4f4adf (diff) |
gallium/ddebug: make 'noflush' also affect 'always' mode
This changes the default behavior of 'always' mode to be consistent with
hang detection mode.
I have used this to more easily compare dumped command streams using diff.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/ddebug/dd_draw.c')
-rw-r--r-- | src/gallium/drivers/ddebug/dd_draw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/ddebug/dd_draw.c b/src/gallium/drivers/ddebug/dd_draw.c index 0d7ee9a1686..de484abbb3d 100644 --- a/src/gallium/drivers/ddebug/dd_draw.c +++ b/src/gallium/drivers/ddebug/dd_draw.c @@ -602,6 +602,7 @@ static void dd_after_draw(struct dd_context *dctx, struct dd_call *call) { struct dd_screen *dscreen = dd_screen(dctx->base.screen); + struct pipe_context *pipe = dctx->pipe; if (dctx->num_draw_calls >= dscreen->skip_count) { switch (dscreen->mode) { @@ -615,6 +616,8 @@ dd_after_draw(struct dd_context *dctx, struct dd_call *call) } break; case DD_DUMP_ALL_CALLS: + if (!dscreen->no_flush) + pipe->flush(pipe, NULL, 0); dd_dump_call(dctx, call, 0); break; default: |