Revert "R6xx/R7xx: don't pad ring for IB age submission"

This reverts commit 7f96e792f4.

This is fixed in the DDX, EXA composite was leaking dma buffers
in some cases:
radeon: 4ad1c4decfee653dbbc1ea2ca4270487be622382
rhd: 9c8ab2dfbe61120298c4b46a2b49245c6779dbc2
This commit is contained in:
Alex Deucher 2009-03-02 16:26:58 -05:00
parent 7f96e792f4
commit 189cd825a8

View file

@ -2583,8 +2583,14 @@ static void r600_cp_discard_buffer(struct drm_device * dev, struct drm_buf * buf
buf_priv->age = ++dev_priv->sarea_priv->last_dispatch;
/* Emit the vertex buffer age */
BEGIN_RING(2);
BEGIN_RING(8);
R600_DISPATCH_AGE(buf_priv->age);
OUT_RING(CP_PACKET2());
OUT_RING(CP_PACKET2());
OUT_RING(CP_PACKET2());
OUT_RING(CP_PACKET2());
OUT_RING(CP_PACKET2());
OUT_RING(CP_PACKET2());
ADVANCE_RING();
buf->pending = 1;