diff options
author | Dave Airlie <airlied@redhat.com> | 2008-11-10 15:25:27 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-11-10 15:25:27 +1000 |
commit | 994f2405030f7f595c4ec6bee524f7c06f27cd7b (patch) | |
tree | ca572ec328fe170e12693d8d0bd835d3db2e9622 /shared-core | |
parent | 758376e6eb2155605ad502d0dc5147c74f3c47a6 (diff) |
radeon: fix ring tail overflow issue since alignment
Diffstat (limited to 'shared-core')
-rw-r--r-- | shared-core/radeon_cp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shared-core/radeon_cp.c b/shared-core/radeon_cp.c index a087829e..285bd4d7 100644 --- a/shared-core/radeon_cp.c +++ b/shared-core/radeon_cp.c @@ -2863,6 +2863,8 @@ void radeon_commit_ring(drm_radeon_private_t *dev_priv) dev_priv->ring.space -= num_p2 * sizeof(u32); } + + dev_priv->ring.tail &= dev_priv->ring.tail_mask; DRM_MEMORYBARRIER(); GET_RING_HEAD( dev_priv ); |