diff options
author | Ben Skeggs <skeggsb@gmail.com> | 2007-11-14 05:09:07 +1100 |
---|---|---|
committer | Ben Skeggs <skeggsb@gmail.com> | 2007-11-14 05:09:07 +1100 |
commit | eb5487b9ca1d7ce60d5ddc784089d91cf176f439 (patch) | |
tree | 55309717d95b69223a6c1c815286196c47ccd70c /linux-core | |
parent | 2370ded79b4176d76cda1ec5f495fd33c2d566ed (diff) | |
parent | 7c1e59fb0c5043d3d369f5feb8e195a6a3da3457 (diff) |
Merge branch 'fifo-cleanup' into upstream-master
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/nouveau_fence.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-core/nouveau_fence.c b/linux-core/nouveau_fence.c index b3e81a89..4e624a7a 100644 --- a/linux-core/nouveau_fence.c +++ b/linux-core/nouveau_fence.c @@ -79,6 +79,7 @@ nouveau_fence_perform_flush(struct drm_device *dev, uint32_t class) { struct drm_nouveau_private *dev_priv = dev->dev_private; struct drm_fence_class_manager *fc = &dev->fm.fence_class[class]; + struct nouveau_channel *chan = dev_priv->fifos[class]; uint32_t pending_types = 0; DRM_DEBUG("class=%d\n", class); @@ -89,7 +90,7 @@ nouveau_fence_perform_flush(struct drm_device *dev, uint32_t class) fc->pending_flush); if (pending_types) { - uint32_t sequence = NV_READ(NV03_FIFO_REGS(class) + 0x48); + uint32_t sequence = NV_READ(chan->ref_cnt); DRM_DEBUG("got 0x%08x\n", sequence); drm_fence_handler(dev, class, sequence, pending_types, 0); |