diff options
author | Marek Olšák <[email protected]> | 2015-07-11 12:34:46 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-08-26 19:25:18 +0200 |
commit | 7b5c92391f15533ec02327d617c4e8639a2f8bb4 (patch) | |
tree | 5666bd0e9e8a7c7af5c78bf26e0876ced29ec737 /src/gallium/include/pipe/p_context.h | |
parent | a3b617a25859ebbfe74b294b7e6bee7af1d24b8c (diff) |
gallium: add an interface for dumping debug driver state
Reviewed-by: Brian Paul <[email protected]>
Acked-by: Christian König <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/include/pipe/p_context.h')
-rw-r--r-- | src/gallium/include/pipe/p_context.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h index f89dae98a2f..9d8f5bdc8d2 100644 --- a/src/gallium/include/pipe/p_context.h +++ b/src/gallium/include/pipe/p_context.h @@ -32,6 +32,7 @@ #include "p_format.h" #include "p_video_enums.h" #include "p_defines.h" +#include <stdio.h> #ifdef __cplusplus extern "C" { @@ -617,6 +618,17 @@ struct pipe_context { * Return information about unexpected device resets. */ enum pipe_reset_status (*get_device_reset_status)(struct pipe_context *ctx); + + /** + * Dump driver-specific debug information into a stream. This is + * used by debugging tools. + * + * \param ctx pipe context + * \param stream where the output should be written to + * \param flags a mask of PIPE_DEBUG_* flags + */ + void (*dump_debug_state)(struct pipe_context *ctx, FILE *stream, + unsigned flags); }; |