From: Eric Anholt Date: Sat, 3 May 2008 01:24:13 +0000 (-0700) Subject: Fix GEM execbuf ioctl argument. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d19a095cda30ac8abdbe26cd3b664a4b97c899b;p=mesa.git Fix GEM execbuf ioctl argument. --- 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 #include #include +#include +#include #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) {