diff options
author | Nicolai Hähnle <[email protected]> | 2016-09-30 12:32:02 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-10-05 15:51:34 +0200 |
commit | 1a3c75e30ecb343a990823a838356c063652c237 (patch) | |
tree | d7d4ac6cd3fbe3a5c4a84393446cecaff791c4e2 /src/gallium/include/pipe/p_context.h | |
parent | 8a943564fd7ebacd2437bb907535b7765ff448e4 (diff) |
gallium: add pipe_context::set_device_reset_callback
Reviewed-by: Edward O'Callaghan <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/include/pipe/p_context.h')
-rw-r--r-- | src/gallium/include/pipe/p_context.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h index f5841d7c424..b97aad5e313 100644 --- a/src/gallium/include/pipe/p_context.h +++ b/src/gallium/include/pipe/p_context.h @@ -47,6 +47,7 @@ struct pipe_clip_state; struct pipe_constant_buffer; struct pipe_debug_callback; struct pipe_depth_stencil_alpha_state; +struct pipe_device_reset_callback; struct pipe_draw_info; struct pipe_grid_info; struct pipe_fence_handle; @@ -691,6 +692,13 @@ struct pipe_context { enum pipe_reset_status (*get_device_reset_status)(struct pipe_context *ctx); /** + * Sets the reset status callback. If the pointer is null, then no callback + * is set, otherwise a copy of the data should be made. + */ + void (*set_device_reset_callback)(struct pipe_context *ctx, + const struct pipe_device_reset_callback *cb); + + /** * Dump driver-specific debug information into a stream. This is * used by debugging tools. * |