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@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user