i915tex: Fix build against released version of libdrm.
authorMichel Dänzer <michel@tungstengraphics.com>
Sat, 10 Mar 2007 15:06:38 +0000 (16:06 +0100)
committerMichel Dänzer <michel@tungstengraphics.com>
Sat, 10 Mar 2007 15:08:11 +0000 (16:08 +0100)
src/mesa/drivers/dri/i915tex/intel_buffers.c

index 164395719cd4f2c0276c75cbdcad4e1940243902..53064c72317655f33508ce4eb3c638ff521e8bce 100644 (file)
 #include "vblank.h"
 
 
+/* This block can be removed when libdrm > 2.3.0 is required */
+
+#ifndef DRM_VBLANK_FLIP
+
+#define DRM_VBLANK_FLIP 0x8000000
+
+typedef struct drm_i915_flip {
+   int pipes;
+} drm_i915_flip_t;
+
+#undef DRM_IOCTL_I915_FLIP
+#define DRM_IOCTL_I915_FLIP DRM_IOW(DRM_COMMAND_BASE + DRM_I915_FLIP, \
+                                   drm_i915_flip_t)
+
+#endif
+
+
 /**
  * XXX move this into a new dri/common/cliprects.c file.
  */