[965] Remove AUB file support.
[mesa.git] / src / mesa / drivers / dri / i965 / intel_ioctl.c
index 4da31277ea2b1feb1d499dda5db08a3959e73202..e7e736079f4b49c60493eb9136b25cc5a0cdfb7a 100644 (file)
@@ -108,16 +108,13 @@ void intelWaitIrq( struct intel_context *intel, int seq )
 
         /* This seems quite often to return before it should!?! 
          */
-      } while (ret == -EAGAIN || ret == -EINTR || (ret == -EBUSY && lastdispatch != intel->sarea->last_dispatch) || (ret == 0 && seq > intel->sarea->last_dispatch));
+      } while (ret == -EAGAIN || ret == -EINTR || (ret == -EBUSY && lastdispatch != intel->sarea->last_dispatch) || (ret == 0 && seq > intel->sarea->last_dispatch)
+              || (ret == 0 && intel->sarea->last_dispatch - seq >= (1 << 24)));
       
 
       if ( ret ) {
         fprintf( stderr, "%s: drmI830IrqWait: %d\n", __FUNCTION__, ret );
 
-        if (intel->aub_file) {
-           intel->vtbl.aub_dump_bmp( intel, intel->ctx.Visual.doubleBufferMode ? 1 : 0 );
-        }
-
         exit(1);
       }
    }