iris: Hook up device reset callbacks

This mechanism lets the driver inform the state tracker about GPU
resets, say for destroying a robust API context and reporting a "device
lost" error to the application, making it take action to deal with this.
This commit is contained in:
Kenneth Graunke
2019-05-07 22:26:22 -07:00
parent c5c12bdd00
commit 343f41781c
4 changed files with 26 additions and 1 deletions

View File

@@ -440,6 +440,9 @@ struct iris_context {
/** A debug callback for KHR_debug output. */
struct pipe_debug_callback dbg;
/** A device reset status callback for notifying that the GPU is hosed. */
struct pipe_device_reset_callback reset;
/** Slab allocator for iris_transfer_map objects. */
struct slab_child_pool transfer_pool;