summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2006-02-09 23:14:16 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2006-02-09 23:14:16 +0000
commit292d4a5b28af80f24f0db0e85c93f8067ed47b26 (patch)
tree77cb9fcdb43dab0d0d524ab1652887daa22538b4
parentf99fc2c12d3cb36706700fb70ff5301f956d1cb8 (diff)
Update the hardware breadcrumb in the sarea on irq reception so that
clients can avoid an ioctl waiting on fences that have already been received. Would be even better if the hardware did the update itself.
-rw-r--r--shared-core/i915_irq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/shared-core/i915_irq.c b/shared-core/i915_irq.c
index d5780d58..91e9573e 100644
--- a/shared-core/i915_irq.c
+++ b/shared-core/i915_irq.c
@@ -54,6 +54,8 @@ irqreturn_t i915_driver_irq_handler(DRM_IRQ_ARGS)
I915_WRITE16(I915REG_INT_IDENTITY_R, temp);
+ dev_priv->sarea_priv->last_dispatch = READ_BREADCRUMB(dev_priv);
+
if (temp & USER_INT_FLAG)
DRM_WAKEUP(&dev_priv->irq_queue);