From 642cf400aa806281720acbe599a35a6a176c04b3 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Thu, 30 Jun 2016 02:11:04 +0200 Subject: ddebug: add an option to dump info about a specific apitrace call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Bas Nieuwenhuizen Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/ddebug/dd_draw.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gallium/drivers/ddebug/dd_draw.c') 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); } -- cgit v1.2.3