summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorkeithw <keithw@keithw-laptop.(none)>2007-08-11 00:13:40 +0100
committerkeithw <keithw@keithw-laptop.(none)>2007-08-11 00:13:40 +0100
commit20995b74c9bc12a157f9ab13e70dd22ab39c8bbf (patch)
tree5f767f16e7142484fb0ad7afa571b12ca776981c /src/mesa/drivers
parentacff996c447cf3502bf5f287d661d15b22325304 (diff)
remove unused irq functions
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/intel_winsys/intel_ioctl.c44
-rw-r--r--src/mesa/drivers/dri/intel_winsys/intel_ioctl.h2
2 files changed, 0 insertions, 46 deletions
diff --git a/src/mesa/drivers/dri/intel_winsys/intel_ioctl.c b/src/mesa/drivers/dri/intel_winsys/intel_ioctl.c
index 6e4d134b801..cf6806b2454 100644
--- a/src/mesa/drivers/dri/intel_winsys/intel_ioctl.c
+++ b/src/mesa/drivers/dri/intel_winsys/intel_ioctl.c
@@ -37,53 +37,9 @@
#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
diff --git a/src/mesa/drivers/dri/intel_winsys/intel_ioctl.h b/src/mesa/drivers/dri/intel_winsys/intel_ioctl.h
index e8d07de893e..10b811d7f3a 100644
--- a/src/mesa/drivers/dri/intel_winsys/intel_ioctl.h
+++ b/src/mesa/drivers/dri/intel_winsys/intel_ioctl.h
@@ -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,