summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ddebug/dd_draw.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-06-30 02:11:04 +0200
committerMarek Olšák <[email protected]>2016-07-05 00:47:12 +0200
commit642cf400aa806281720acbe599a35a6a176c04b3 (patch)
tree5c9ab7641deac96a45750b76511e033f7f4458ad /src/gallium/drivers/ddebug/dd_draw.c
parent1daec2b795a2c029b89202a15142376ac701bc39 (diff)
ddebug: add an option to dump info about a specific apitrace call
Reviewed-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/ddebug/dd_draw.c')
-rw-r--r--src/gallium/drivers/ddebug/dd_draw.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/ddebug/dd_draw.c b/src/gallium/drivers/ddebug/dd_draw.c
index f0f6fb68b2d..f8047ccc852 100644
--- a/src/gallium/drivers/ddebug/dd_draw.c
+++ b/src/gallium/drivers/ddebug/dd_draw.c
@@ -617,6 +617,7 @@ dd_context_flush(struct pipe_context *_pipe,
"GPU hang detected in pipe->flush()");
break;
case DD_DUMP_ALL_CALLS:
+ case DD_DUMP_APITRACE_CALL:
pipe->flush(pipe, fence, flags);
break;
default:
@@ -659,6 +660,13 @@ dd_after_draw(struct dd_context *dctx, struct dd_call *call)
pipe->flush(pipe, NULL, 0);
dd_dump_call(dctx, call, 0);
break;
+ case DD_DUMP_APITRACE_CALL:
+ if (dscreen->apitrace_dump_call == dctx->apitrace_call_number) {
+ dd_dump_call(dctx, call, 0);
+ /* No need to continue. */
+ exit(0);
+ }
+ break;
default:
assert(0);
}