summaryrefslogtreecommitdiffstats
path: root/src/gallium/include
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2016-07-19 21:41:03 +0200
committerMarek Olšák <marek.olsak@amd.com>2016-07-26 23:06:46 +0200
commit6bf81de339289b0d005553414ce568b136a0ca5f (patch)
tree81b305d0fa4434db18b4caf3789475fa5727d103 /src/gallium/include
parent9ace2c13550609dfe78164f104500d438821f383 (diff)
downloadexternal_mesa3d-6bf81de339289b0d005553414ce568b136a0ca5f.zip
external_mesa3d-6bf81de339289b0d005553414ce568b136a0ca5f.tar.gz
external_mesa3d-6bf81de339289b0d005553414ce568b136a0ca5f.tar.bz2
gallium: rework flags for pipe_context::dump_debug_state
The pipelined hang detection mode will not want to dump everything. (and it's also time consuming) It will only dump shaders after a draw call and then dump the status registers separately if a hang is detected. Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Diffstat (limited to 'src/gallium/include')
-rw-r--r--src/gallium/include/pipe/p_context.h2
-rw-r--r--src/gallium/include/pipe/p_defines.h5
2 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h
index fe567b6..f1de189 100644
--- a/src/gallium/include/pipe/p_context.h
+++ b/src/gallium/include/pipe/p_context.h
@@ -690,7 +690,7 @@ struct pipe_context {
*
* \param ctx pipe context
* \param stream where the output should be written to
- * \param flags a mask of PIPE_DEBUG_* flags
+ * \param flags a mask of PIPE_DUMP_* flags
*/
void (*dump_debug_state)(struct pipe_context *ctx, FILE *stream,
unsigned flags);
diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h
index 8655814..69bd89e 100644
--- a/src/gallium/include/pipe/p_defines.h
+++ b/src/gallium/include/pipe/p_defines.h
@@ -355,7 +355,10 @@ enum pipe_flush_flags
/**
* Flags for pipe_context::dump_debug_state.
*/
-#define PIPE_DEBUG_DEVICE_IS_HUNG (1 << 0)
+#define PIPE_DUMP_DEVICE_STATUS_REGISTERS (1 << 0)
+#define PIPE_DUMP_CURRENT_STATES (1 << 1)
+#define PIPE_DUMP_CURRENT_SHADERS (1 << 2)
+#define PIPE_DUMP_LAST_COMMAND_BUFFER (1 << 3)
/**
* Create a compute-only context. Use in pipe_screen::context_create.