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.
main
Keith Whitwell 2006-02-09 23:14:16 +00:00
parent f99fc2c12d
commit 292d4a5b28
1 changed files with 2 additions and 0 deletions

View File

@ -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);