summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOwain G. Ainsworth <oga@openbsd.org>2009-01-13 18:42:44 +0000
committerZhenyu Wang <zhenyu.z.wang@intel.com>2009-01-15 09:46:47 +0800
commitff67517db91a572a640e7a0ba247b8b71bfa2335 (patch)
treeec086f0c77598225afd8e39fc1dc12195791416e /src
parente84f21db824b2e9e7fe660927ecfbbf04b068f7a (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. (cherry picked from commit 9f306193c4b128ec72c5b4db16d07302cee50ab5)
Diffstat (limited to 'src')
-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));