aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/include/pipe/p_defines.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-04-29 15:04:34 +0200
committerMarek Olšák <[email protected]>2015-05-12 19:34:20 +0200
commitcacd0e290a7f510fe9cd78fde3156cd42f35a8b6 (patch)
tree4ee9c92fff33bbf4421def3b747e7c789d447ef0 /src/gallium/include/pipe/p_defines.h
parenta533d4edf1ea346dd9e343c71b2cd500fa550ef8 (diff)
gallium: add an interface for querying a device reset status
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium/include/pipe/p_defines.h')
-rw-r--r--src/gallium/include/pipe/p_defines.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h
index 8a16fde22e7..ba1a4c62f44 100644
--- a/src/gallium/include/pipe/p_defines.h
+++ b/src/gallium/include/pipe/p_defines.h
@@ -476,6 +476,19 @@ enum pipe_flush_flags
#define PIPE_TIMEOUT_INFINITE 0xffffffffffffffffull
+
+/**
+ * Device reset status.
+ */
+enum pipe_reset_status
+{
+ PIPE_NO_RESET = 0,
+ PIPE_GUILTY_CONTEXT_RESET = 1,
+ PIPE_INNOCENT_CONTEXT_RESET = 2,
+ PIPE_UNKNOWN_CONTEXT_RESET = 3
+};
+
+
/**
* Implementation capabilities/limits which are queried through
* pipe_screen::get_param()