mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-06 09:28:19 +02:00
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:
parent
7f96e792f4
commit
189cd825a8
1 changed files with 7 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue