diff options
author | Kenneth Graunke <[email protected]> | 2019-05-07 23:19:30 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-05-09 16:49:07 -0700 |
commit | c5c12bdd004994abfe0f5723e2d285cc69706b1a (patch) | |
tree | 89de1645bfffb9db741122462f8713d0ce0c7946 /src/gallium/drivers/iris/iris_context.h | |
parent | 7402564c076a06c00fa71f880246775fa631b640 (diff) |
iris: Try to recover from GPU hangs.
The iris batch module now tries to detect that the kernel has banned
our GEM context, creates a new non-banned context, and informs the
iris context module that all assumptions about state are now invalid
and it needs to reinitialize the relevant state.
Based on Chris Wilson's work, but significantly rewritten by me.
Diffstat (limited to 'src/gallium/drivers/iris/iris_context.h')
-rw-r--r-- | src/gallium/drivers/iris/iris_context.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_context.h b/src/gallium/drivers/iris/iris_context.h index 31f345d36b0..4501c4fcad9 100644 --- a/src/gallium/drivers/iris/iris_context.h +++ b/src/gallium/drivers/iris/iris_context.h @@ -662,6 +662,8 @@ double get_time(void); struct pipe_context * iris_create_context(struct pipe_screen *screen, void *priv, unsigned flags); +void iris_lost_context_state(struct iris_batch *batch); + void iris_init_blit_functions(struct pipe_context *ctx); void iris_init_clear_functions(struct pipe_context *ctx); void iris_init_program_functions(struct pipe_context *ctx); |