summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2008-05-02 18:24:13 -0700
committerEric Anholt <[email protected]>2008-05-02 18:24:13 -0700
commit3d19a095cda30ac8abdbe26cd3b664a4b97c899b (patch)
tree60ba77c0b1748faf855e077aea6f436ed3076cf1 /src/mesa/drivers
parent7349f218b47b21595a13103aaa45ddbfdc14dd13 (diff)
Fix GEM execbuf ioctl argument.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/intel/intel_ioctl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_ioctl.c b/src/mesa/drivers/dri/intel/intel_ioctl.c
index b84cb64633c..317ff2c440f 100644
--- a/src/mesa/drivers/dri/intel/intel_ioctl.c
+++ b/src/mesa/drivers/dri/intel/intel_ioctl.c
@@ -30,6 +30,8 @@
#include <unistd.h>
#include <errno.h>
#include <sched.h>
+#include <sys/types.h>
+#include <sys/ioctl.h>
#include "mtypes.h"
#include "context.h"
@@ -170,8 +172,7 @@ intel_exec_ioctl(struct intel_context *intel,
(((GLuint) intel->drawY) << 16));
do {
- ret = drmCommandWriteRead(intel->driFd, DRM_I915_GEM_EXECBUFFER, &execbuf,
- sizeof(execbuf));
+ ret = ioctl(intel->driFd, DRM_IOCTL_I915_GEM_EXECBUFFER, execbuf);
} while (ret == -EAGAIN);
if (ret != 0) {