gallium: add an interface for querying a device reset status
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
@@ -562,6 +562,10 @@ struct pipe_context {
|
|||||||
void (*invalidate_resource)(struct pipe_context *ctx,
|
void (*invalidate_resource)(struct pipe_context *ctx,
|
||||||
struct pipe_resource *resource);
|
struct pipe_resource *resource);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return information about unexpected device resets.
|
||||||
|
*/
|
||||||
|
enum pipe_reset_status (*get_device_reset_status)(struct pipe_context *ctx);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@@ -476,6 +476,19 @@ enum pipe_flush_flags
|
|||||||
|
|
||||||
#define PIPE_TIMEOUT_INFINITE 0xffffffffffffffffull
|
#define PIPE_TIMEOUT_INFINITE 0xffffffffffffffffull
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Device reset status.
|
||||||
|
*/
|
||||||
|
enum pipe_reset_status
|
||||||
|
{
|
||||||
|
PIPE_NO_RESET = 0,
|
||||||
|
PIPE_GUILTY_CONTEXT_RESET = 1,
|
||||||
|
PIPE_INNOCENT_CONTEXT_RESET = 2,
|
||||||
|
PIPE_UNKNOWN_CONTEXT_RESET = 3
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementation capabilities/limits which are queried through
|
* Implementation capabilities/limits which are queried through
|
||||||
* pipe_screen::get_param()
|
* pipe_screen::get_param()
|
||||||
|
Reference in New Issue
Block a user