diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-12-04 06:30:53 -0500 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-12-04 19:37:38 -0500 |
commit | 1ec14ad3132702694f2e1a90b30641cf111183b9 (patch) | |
tree | 98ca9ae91f14ff5d8feed306941ea2c46479e71a /drivers/gpu/drm/i915/i915_drv.c | |
parent | 340479aac697bc73e225c122a9753d4964eeda3f (diff) |
drm/i915: Implement GPU semaphores for inter-ring synchronisation on SNB
The bulk of the change is to convert the growing list of rings into an
array so that the relationship between the rings and the semaphore sync
registers can be easily computed.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index 64844e2e9f86..413a040386a9 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c | |||
@@ -487,11 +487,11 @@ int i915_reset(struct drm_device *dev, u8 flags) | |||
487 | !dev_priv->mm.suspended) { | 487 | !dev_priv->mm.suspended) { |
488 | dev_priv->mm.suspended = 0; | 488 | dev_priv->mm.suspended = 0; |
489 | 489 | ||
490 | dev_priv->render_ring.init(&dev_priv->render_ring); | 490 | dev_priv->ring[RCS].init(&dev_priv->ring[RCS]); |
491 | if (HAS_BSD(dev)) | 491 | if (HAS_BSD(dev)) |
492 | dev_priv->bsd_ring.init(&dev_priv->bsd_ring); | 492 | dev_priv->ring[VCS].init(&dev_priv->ring[VCS]); |
493 | if (HAS_BLT(dev)) | 493 | if (HAS_BLT(dev)) |
494 | dev_priv->blt_ring.init(&dev_priv->blt_ring); | 494 | dev_priv->ring[BCS].init(&dev_priv->ring[BCS]); |
495 | 495 | ||
496 | mutex_unlock(&dev->struct_mutex); | 496 | mutex_unlock(&dev->struct_mutex); |
497 | drm_irq_uninstall(dev); | 497 | drm_irq_uninstall(dev); |