diff options
author | Robert Noland <rnoland@2hip.net> | 2008-09-05 11:52:53 -0400 |
---|---|---|
committer | Robert Noland <rnoland@2hip.net> | 2008-09-05 12:38:41 -0400 |
commit | 3f915f68e8f68fe0fc3d0e1eb8a18a16f8f397da (patch) | |
tree | 0ad084f0a750579a50eb556839dfba4fab5a8710 | |
parent | ce84511f4d647d5ce9fd52b838ee944e23050954 (diff) |
i915: fix i915_ring_validate()
-rw-r--r-- | shared-core/i915_dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-core/i915_dma.c b/shared-core/i915_dma.c index 5a69b1f3..c874ce28 100644 --- a/shared-core/i915_dma.c +++ b/shared-core/i915_dma.c @@ -119,8 +119,8 @@ void i915_ring_validate(struct drm_device *dev, const char *func, int line) { drm_i915_private_t *dev_priv = dev->dev_private; drm_i915_ring_buffer_t *ring = &(dev_priv->ring); - u32 tail = I915_READ(LP_RING+RING_TAIL) & HEAD_ADDR; - u32 head = I915_READ(LP_RING+RING_HEAD) & HEAD_ADDR; + u32 tail = I915_READ(PRB0_TAIL) & HEAD_ADDR; + u32 head = I915_READ(PRB0_HEAD) & HEAD_ADDR; if (tail != ring->tail) { DRM_ERROR("%s:%d head sw %x, hw %x. tail sw %x hw %x\n", |