Reviewed-by: Brian Paul <brianp@vmware.com>
Acked-by: Christian König <christian.koenig@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
#include "p_format.h"
#include "p_video_enums.h"
#include "p_defines.h"
+#include <stdio.h>
#ifdef __cplusplus
extern "C" {
* 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);
};
PIPE_FLUSH_END_OF_FRAME = (1 << 0)
};
+/**
+ * Flags for pipe_context::dump_debug_state.
+ */
+#define PIPE_DEBUG_DEVICE_IS_HUNG (1 << 0)
+
/**
* Flags for pipe_context::memory_barrier.
*/