From 06b2fd04f6bc2f511f0c67a9b18f01b8f7296edc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sun, 7 Aug 2016 16:24:40 +0200 Subject: [PATCH] ddebug: dump driver states and shaders for apitrace calls MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit I think this was an oversight when the PIPE_DUMP flags were added. Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/ddebug/dd_draw.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/ddebug/dd_draw.c b/src/gallium/drivers/ddebug/dd_draw.c index c1bfdaf6865..e2005edc872 100644 --- a/src/gallium/drivers/ddebug/dd_draw.c +++ b/src/gallium/drivers/ddebug/dd_draw.c @@ -1091,7 +1091,10 @@ dd_after_draw(struct dd_context *dctx, struct dd_call *call) case DD_DUMP_APITRACE_CALL: if (dscreen->apitrace_dump_call == dctx->draw_state.apitrace_call_number) { - dd_write_report(dctx, call, 0, false); + dd_write_report(dctx, call, + PIPE_DUMP_CURRENT_STATES | + PIPE_DUMP_CURRENT_SHADERS, + false); /* No need to continue. */ exit(0); } -- 2.30.2