Mesa (master): mesa: Add dd_function_table::GetGraphicsResetStatus
Ian Romanick
idr at kemper.freedesktop.org
Fri Nov 8 00:41:50 UTC 2013
Module: Mesa
Branch: master
Commit: 2fdc0ee19fe17d42e3662e8c561ad03e5e66e1ad
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2fdc0ee19fe17d42e3662e8c561ad03e5e66e1ad
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Wed Sep 5 22:26:01 2012 -0700
mesa: Add dd_function_table::GetGraphicsResetStatus
This allows drivers to determine whether a GPU reset has occured. It
should return non-zero status if a reset was observed by the specified
context. Another mechanism will be used to observe resets occuring in
other contexts in the share group.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
---
src/mesa/main/dd.h | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h
index d7c4327..b5b874f 100644
--- a/src/mesa/main/dd.h
+++ b/src/mesa/main/dd.h
@@ -890,6 +890,15 @@ struct dd_function_table {
struct gl_texture_object *texObj,
struct gl_texture_image *texImage,
const GLvoid *vdpSurface, GLuint index);
+
+ /**
+ * Query reset status for GL_ARB_robustness
+ *
+ * Per \c glGetGraphicsResetStatusARB, this function should return a
+ * non-zero value once after a reset. If a reset is non-atomic, the
+ * non-zero status should be returned for the duration of the reset.
+ */
+ GLenum (*GetGraphicsResetStatus)(struct gl_context *ctx);
};
More information about the mesa-commit
mailing list