aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h
index 9bc6f56590b..66c74f73cfa 100644
--- a/src/mesa/drivers/dri/i965/brw_context.h
+++ b/src/mesa/drivers/dri/i965/brw_context.h
@@ -1019,6 +1019,14 @@ struct brw_context
drm_intel_context *hw_ctx;
+ /**
+ * Number of resets observed in the system at context creation.
+ *
+ * This is tracked in the context so that we can determine that another
+ * reset has occured.
+ */
+ uint32_t reset_count;
+
struct intel_batchbuffer batch;
bool no_batch_wrap;