Keith,

you got the condition for waiting for an interrupt wrong.

r200_ioctl.c, line 330
      ...
      /* if there was a previous frame, wait for its IRQ */
-     if (iw->irq_seq != -1 && sarea->last_frame < r200GetLastFrame( rmesa ) ) {
+     if (iw->irq_seq != -1 && r200GetLastFrame( rmesa ) < sarea->last_frame ) {
         UNLOCK_HARDWARE( rmesa ); 
         ret = drmCommandWrite( fd, DRM_RADEON_IRQ_WAIT, iw, sizeof(*iw) );
         ...

Compare with my original patch.

Felix

On Tue, 01 Oct 2002 03:58:03 -0700
Keith Whitwell <[EMAIL PROTECTED]> wrote:

> CVSROOT:      /cvsroot/dri
> Module name:  xc
> Repository:   xc/xc/lib/GL/mesa/src/drv/r200/
> Changes by:   keithw@usw-pr-cvs1.     02/10/01 03:58:03
> 
> Log message:
>   A version of Felix's irq-wait patch
> 
> Modified files:
>       xc/xc/lib/GL/mesa/src/drv/r200/:
>         r200_context.c r200_context.h r200_ioctl.c 
>   
>   Revision      Changes    Path
>   1.8           +1 -0      xc/xc/lib/GL/mesa/src/drv/r200/r200_context.c
>   1.5           +1 -0      xc/xc/lib/GL/mesa/src/drv/r200/r200_context.h
>   1.6           +43 -49    xc/xc/lib/GL/mesa/src/drv/r200/r200_ioctl.c
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by: DEDICATED SERVERS only $89!
> Linux or FreeBSD, FREE setup, FAST network. Get your own server 
> today at http://www.ServePath.com/indexfm.htm
> _______________________________________________
> Dri-patches mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dri-patches
> 
> 

               __\|/__    ___     ___     ___
__Tschüß_______\_6 6_/___/__ \___/__ \___/___\___You can do anything,___
_____Felix_______\Ä/\ \_____\ \_____\ \______U___just not everything____
  [EMAIL PROTECTED]    >o<__/   \___/   \___/        at the same time!


-------------------------------------------------------
This sf.net email is sponsored by: DEDICATED SERVERS only $89!
Linux or FreeBSD, FREE setup, FAST network. Get your own server 
today at http://www.ServePath.com/indexfm.htm
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to