summaryrefslogtreecommitdiff
path: root/src/i830_accel.c
diff options
context:
space:
mode:
authorOwain G. Ainsworth <oga@openbsd.org>2009-01-13 18:42:44 +0000
committerEric Anholt <eric@anholt.net>2009-01-14 17:12:33 -0800
commit9f306193c4b128ec72c5b4db16d07302cee50ab5 (patch)
tree2567ed2991b742fcc8a01a1dc4d16c6403586dc2 /src/i830_accel.c
parent1e8588ad5087c69eb77399cfaab8e4ec15eb4da9 (diff)
Fix ioctl type.
I915_EMIT_IRQ is a read/write ioctl, not a write only. Found by OpenBSd's kernel code which checks these things a long more strongly than Linux.
Diffstat (limited to 'src/i830_accel.c')
-rw-r--r--src/i830_accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_accel.c b/src/i830_accel.c
index 7dff714f..5ee53bb1 100644
--- a/src/i830_accel.c
+++ b/src/i830_accel.c
@@ -205,7 +205,7 @@ I830Sync(ScrnInfoPtr pScrn)
* register reads for idle.
*/
emit.irq_seq = &wait.irq_seq;
- ret = drmCommandWrite(pI830->drmSubFD, DRM_I830_IRQ_EMIT, &emit,
+ ret = drmCommandWriteRead(pI830->drmSubFD, DRM_I830_IRQ_EMIT, &emit,
sizeof(emit));
if (ret != 0)
FatalError("Failure to emit IRQ: %s\n", strerror(-ret));