remove unused irq functions
authorkeithw <keithw@keithw-laptop.(none)>
Fri, 10 Aug 2007 23:13:40 +0000 (00:13 +0100)
committerkeithw <keithw@keithw-laptop.(none)>
Fri, 10 Aug 2007 23:13:40 +0000 (00:13 +0100)
src/mesa/drivers/dri/intel_winsys/intel_ioctl.c
src/mesa/drivers/dri/intel_winsys/intel_ioctl.h

index 6e4d134b801a26912f83c09024626bf257fed2be..cf6806b2454b35f33424321564901a3405b36629 100644 (file)
 #include "intel_context.h"
 #include "intel_ioctl.h"
 #include "intel_batchbuffer.h"
-#include "intel_blit.h"
 #include "drm.h"
 
 
-int
-intelEmitIrqLocked(struct intel_context *intel)
-{
-   drmI830IrqEmit ie;
-   int ret, seq;
-
-   assert(((*(int *) intel->driHwLock) & ~DRM_LOCK_CONT) ==
-          (DRM_LOCK_HELD | intel->hHWContext));
-
-   ie.irq_seq = &seq;
-
-   ret = drmCommandWriteRead(intel->driFd, DRM_I830_IRQ_EMIT,
-                             &ie, sizeof(ie));
-   if (ret) {
-      fprintf(stderr, "%s: drmI830IrqEmit: %d\n", __FUNCTION__, ret);
-      exit(1);
-   }
-
-   DBG(IOCTL, "%s -->  %d\n", __FUNCTION__, seq);
-
-   return seq;
-}
-
-void
-intelWaitIrq(struct intel_context *intel, int seq)
-{
-   int ret;
-
-   DBG(IOCTL, "%s %d\n", __FUNCTION__, seq);
-
-   intel->iw.irq_seq = seq;
-
-   do {
-      ret =
-         drmCommandWrite(intel->driFd, DRM_I830_IRQ_WAIT, &intel->iw,
-                         sizeof(intel->iw));
-   } while (ret == -EAGAIN || ret == -EINTR);
-
-   if (ret) {
-      fprintf(stderr, "%s: drmI830IrqWait: %d\n", __FUNCTION__, ret);
-      exit(1);
-   }
-}
 
 
 void
index e8d07de893e2f108778249010bf2910a6f356834..10b811d7f3a8f2145790d94728ecb756381f2598 100644 (file)
@@ -30,8 +30,6 @@
 
 #include "intel_context.h"
 
-void intelWaitIrq(struct intel_context *intel, int seq);
-int intelEmitIrqLocked(struct intel_context *intel);
 
 void intel_batch_ioctl(struct intel_context *intel,
                        GLuint start_offset,