Fix to use GEM execbuf instead of TTM.
authorEric Anholt <eric@anholt.net>
Sat, 3 May 2008 00:13:45 +0000 (17:13 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 3 May 2008 00:13:45 +0000 (17:13 -0700)
src/mesa/drivers/dri/intel/intel_ioctl.c

index ec1dec0b1e35c0f63a8e0651c990ca9562043577..b84cb64633cf5ce7e835755759878cca4d46ec2f 100644 (file)
@@ -170,12 +170,12 @@ intel_exec_ioctl(struct intel_context *intel,
                   (((GLuint) intel->drawY) << 16));
 
    do {
-      ret = drmCommandWriteRead(intel->driFd, DRM_I915_EXECBUFFER, &execbuf,
+      ret = drmCommandWriteRead(intel->driFd, DRM_I915_GEM_EXECBUFFER, &execbuf,
                                sizeof(execbuf));
    } while (ret == -EAGAIN);
 
    if (ret != 0) {
-      fprintf(stderr, "DRM_I915_EXECBUFFER: %d\n", -errno);
+      fprintf(stderr, "DRM_I915_GEM_EXECBUFFER: %d\n", -errno);
       UNLOCK_HARDWARE(intel);
       exit(1);
    }