From 2fdc0ee19fe17d42e3662e8c561ad03e5e66e1ad Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 5 Sep 2012 22:26:01 -0700 Subject: [PATCH] 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 Reviewed-by: Brian Paul --- 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 d7c43271355..b5b874f47ac 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); }; -- 2.30.2