From: Ian Romanick Date: Thu, 6 Sep 2012 05:26:01 +0000 (-0700) Subject: mesa: Add dd_function_table::GetGraphicsResetStatus X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2fdc0ee19fe17d42e3662e8c561ad03e5e66e1ad;p=mesa.git 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 --- 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); };