From: Dave Airlie Date: Mon, 10 Nov 2008 05:25:27 +0000 (+1000) Subject: radeon: fix ring tail overflow issue since alignment X-Git-Tag: libdrm-2.4.3~16^2~14^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=994f2405030f7f595c4ec6bee524f7c06f27cd7b;p=platform%2Fupstream%2Flibdrm.git radeon: fix ring tail overflow issue since alignment --- diff --git a/shared-core/radeon_cp.c b/shared-core/radeon_cp.c index a087829..285bd4d 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 );