[Mesa-dev] [PATCH] ddebug: dump most driver information with GALLIUM_DDEBUG=always

Nicolai Hähnle nhaehnle at gmail.com
Wed Oct 5 15:53:25 UTC 2016


Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

On 05.10.2016 00:37, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> ---
>  src/gallium/drivers/ddebug/dd_draw.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/ddebug/dd_draw.c b/src/gallium/drivers/ddebug/dd_draw.c
> index 511daf4..970712c 100644
> --- a/src/gallium/drivers/ddebug/dd_draw.c
> +++ b/src/gallium/drivers/ddebug/dd_draw.c
> @@ -1103,21 +1103,25 @@ dd_after_draw(struct dd_context *dctx, struct dd_call *call)
>              /* Terminate the process to prevent future hangs. */
>              dd_kill_process();
>           }
>           break;
>        case DD_DETECT_HANGS_PIPELINED:
>           dd_pipelined_process_draw(dctx, call);
>           break;
>        case DD_DUMP_ALL_CALLS:
>           if (!dscreen->no_flush)
>              pipe->flush(pipe, NULL, 0);
> -         dd_write_report(dctx, call, 0, false);
> +         dd_write_report(dctx, call,
> +                         PIPE_DUMP_CURRENT_STATES |
> +                         PIPE_DUMP_CURRENT_SHADERS |
> +                         PIPE_DUMP_LAST_COMMAND_BUFFER,
> +                         false);
>           break;
>        case DD_DUMP_APITRACE_CALL:
>           if (dscreen->apitrace_dump_call ==
>               dctx->draw_state.apitrace_call_number) {
>              dd_write_report(dctx, call,
>                              PIPE_DUMP_CURRENT_STATES |
>                              PIPE_DUMP_CURRENT_SHADERS,
>                              false);
>              /* No need to continue. */
>              exit(0);
>


More information about the mesa-dev mailing list