radeon: fix ring tail overflow issue since alignment

main
Dave Airlie 2008-11-10 15:25:27 +10:00
parent 758376e6eb
commit 994f240503
1 changed files with 2 additions and 0 deletions

View File

@ -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 );