diff options
author | Michel Dänzer <[email protected]> | 2007-03-10 16:06:38 +0100 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2007-03-10 16:08:11 +0100 |
commit | 97775f9904c34f72e6e5a56a6fb8975b1834e5f4 (patch) | |
tree | f362ed6e9010c4d9ac922458d4e2f70baa5e3bea /src/mesa/drivers | |
parent | ced8870a6accbc1f5af876e81e20606bf5a4663e (diff) |
i915tex: Fix build against released version of libdrm.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i915tex/intel_buffers.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915tex/intel_buffers.c b/src/mesa/drivers/dri/i915tex/intel_buffers.c index 164395719cd..53064c72317 100644 --- a/src/mesa/drivers/dri/i915tex/intel_buffers.c +++ b/src/mesa/drivers/dri/i915tex/intel_buffers.c @@ -43,6 +43,23 @@ #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. */ |