[Mesa-dev] [PATCH 02/10] mesa: Add dd_function_table::GetGraphicsResetStatus

Ian Romanick idr at freedesktop.org
Wed Oct 30 02:07:00 CET 2013


From: Ian Romanick <ian.d.romanick at intel.com>

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>
---
 src/mesa/main/dd.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h
index 5011921..40f8bb2 100644
--- a/src/mesa/main/dd.h
+++ b/src/mesa/main/dd.h
@@ -882,6 +882,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);
 };
 
 
-- 
1.8.1.4



More information about the mesa-dev mailing list