summaryrefslogtreecommitdiffstats
path: root/src/gallium/docs
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2016-09-30 12:32:02 +0200
committerNicolai Hähnle <nicolai.haehnle@amd.com>2016-10-05 15:51:34 +0200
commit1a3c75e30ecb343a990823a838356c063652c237 (patch)
treed7d4ac6cd3fbe3a5c4a84393446cecaff791c4e2 /src/gallium/docs
parent8a943564fd7ebacd2437bb907535b7765ff448e4 (diff)
downloadexternal_mesa3d-1a3c75e30ecb343a990823a838356c063652c237.zip
external_mesa3d-1a3c75e30ecb343a990823a838356c063652c237.tar.gz
external_mesa3d-1a3c75e30ecb343a990823a838356c063652c237.tar.bz2
gallium: add pipe_context::set_device_reset_callback
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/gallium/docs')
-rw-r--r--src/gallium/docs/source/context.rst15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gallium/docs/source/context.rst b/src/gallium/docs/source/context.rst
index 13dd606..e190cef 100644
--- a/src/gallium/docs/source/context.rst
+++ b/src/gallium/docs/source/context.rst
@@ -692,3 +692,18 @@ last_level for layers range from first_layer through last_layer.
It returns TRUE if mipmap generation succeeds, otherwise it
returns FALSE. Mipmap generation may fail when it is not supported
for particular texture types or formats.
+
+Device resets
+^^^^^^^^^^^^^
+
+The state tracker can query or request notifications of when the GPU
+is reset for whatever reason (application error, driver error). When
+a GPU reset happens, the context becomes unusable and all related state
+should be considered lost and undefined. Despite that, context
+notifications are single-shot, i.e. subsequent calls to
+``get_device_reset_status`` will return PIPE_NO_RESET.
+
+* ``get_device_reset_status`` queries whether a device reset has happened
+ since the last call or since the last notification by callback.
+* ``set_device_reset_callback`` sets a callback which will be called when
+ a device reset is detected. The callback is only called synchronously.