summaryrefslogtreecommitdiff
path: root/shared/i915_dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'shared/i915_dma.c')
-rw-r--r--shared/i915_dma.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/shared/i915_dma.c b/shared/i915_dma.c
index 34552008..cf0333f6 100644
--- a/shared/i915_dma.c
+++ b/shared/i915_dma.c
@@ -761,4 +761,10 @@ void i915_driver_register_fns(drm_device_t *dev)
dev->fn_tbl.irq_postinstall = i915_driver_irq_postinstall;
dev->fn_tbl.irq_uninstall = i915_driver_irq_uninstall;
dev->fn_tbl.irq_handler = i915_driver_irq_handler;
+
+ dev->counters += 4;
+ dev->types[6] = _DRM_STAT_IRQ;
+ dev->types[7] = _DRM_STAT_PRIMARY;
+ dev->types[8] = _DRM_STAT_SECONDARY;
+ dev->types[9] = _DRM_STAT_DMA;
}