diff options
author | Dave Airlie <airlied@redhat.com> | 2008-08-19 08:18:46 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-08-19 08:20:09 +1000 |
commit | 2d4cf9cc0f31ca316b109cceffc463ea52db92f2 (patch) | |
tree | 815dd85d8dc6680933a88d3dac5f93734585ccf3 | |
parent | 232c369a05bbd9db17a0453380229c993cbbc8bd (diff) |
radeon: oops set correct scratch
-rw-r--r-- | shared-core/radeon_drv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-core/radeon_drv.h b/shared-core/radeon_drv.h index 9edd3884..019491c7 100644 --- a/shared-core/radeon_drv.h +++ b/shared-core/radeon_drv.h @@ -717,7 +717,7 @@ extern int r300_do_cp_cmdbuf(struct drm_device *dev, #define GET_SCRATCH( x ) (dev_priv->writeback_works ? \ (dev_priv->mm.ring_read.bo ? \ - readl(dev_priv->mm.ring_read.kmap.virtual + RADEON_SCRATCHOFF(0)) : \ + readl(dev_priv->mm.ring_read.kmap.virtual + RADEON_SCRATCHOFF(x)) : \ DRM_READ32(dev_priv->ring_rptr, RADEON_SCRATCHOFF(x))) : \ RADEON_READ( RADEON_SCRATCH_REG0 + 4*(x))) |