Fix a buffer aging problem in new r300 code that could lead to hangs with some
apps. Obtained from: DRM CVS
This commit is contained in:
parent
c035ac04e6
commit
786d03d56a
@ -625,7 +625,7 @@ static void r300_discard_buffer(drm_device_t * dev, drm_buf_t * buf)
|
||||
drm_radeon_private_t *dev_priv = dev->dev_private;
|
||||
drm_radeon_buf_priv_t *buf_priv = buf->dev_private;
|
||||
|
||||
buf_priv->age = dev_priv->sarea_priv->last_dispatch+1;
|
||||
buf_priv->age = ++dev_priv->sarea_priv->last_dispatch;
|
||||
buf->pending = 1;
|
||||
buf->used = 0;
|
||||
}
|
||||
@ -790,8 +790,6 @@ cleanup:
|
||||
if (emit_dispatch_age) {
|
||||
RING_LOCALS;
|
||||
|
||||
dev_priv->sarea_priv->last_dispatch++;
|
||||
|
||||
/* Emit the vertex buffer age */
|
||||
BEGIN_RING(2);
|
||||
RADEON_DISPATCH_AGE(dev_priv->sarea_priv->last_dispatch);
|
||||
|
Loading…
x
Reference in New Issue
Block a user