On Wed, 27 Jul 2005 23:38:57 +0200
Bellido Nicolas <[EMAIL PROTECTED]> wrote:

> On Wednesday 27 July 2005 10:13, Jerome Glisse wrote:
> > On 7/27/05, Bellido Nicolas <[EMAIL PROTECTED]> wrote:
> > > BTW, do you have any scenario where you are sure X will hang ??
> >
> > Launch ut2003 or 2004 (don't remember which one) demos then start a game
> > (quick launch) and it will lockup during level loading or few second after
> > the intro begin...Other opengl apps do the same a flight simulator which
> > i didn't remember the name will lockup in the menu after few secs..
> >
> > Btw if i try to resize or move glxgears i have a lockup, less often but
> > some times...
> 
> ut2k4 did the trick...
> 
> I get lockups during the mission breafing or shortly after beginning of intro.
> Modprobing drm with debug=1, shows two cases:
> 
> . ut2004-bin does an DRM_IOCTL_DMA ioctl, but radeon_freelist_get, called by
>   radeon_cp_buffers returns NULL;

last_dispatch gets wrong value if buffer has more than one dma discard: (could 
someone check this change in?)
Index: r300_cmdbuf.c
===================================================================
RCS file: /cvs/dri/drm/shared-core/r300_cmdbuf.c,v
retrieving revision 1.1
diff -u -b -B -u -r1.1 r300_cmdbuf.c
--- r300_cmdbuf.c       20 Jul 2005 21:17:47 -0000      1.1
+++ r300_cmdbuf.c       27 Jul 2005 20:43:50 -0000
@@ -623,7 +623,7 @@
        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;
 }
@@ -788,8 +788,6 @@
        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);

-- 
Aapo Tahkola


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to