diff options
author | Dave Airlie <airlied@redhat.com> | 2008-05-28 15:55:44 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-06-04 14:08:27 +1000 |
commit | 0b734bd7cf921592eee441f759687e10f48a2cbc (patch) | |
tree | 3659fe5f86b0a1285ae5a6de592994ba8084074c /src/mesa/drivers/dri/intel/intel_bufmgr_ttm.h | |
parent | f688827ebdc7fa8ef1160086565f9e109768a250 (diff) |
mesa/drm/ttm: allow build against non-TTM aware libdrm
I'll release a libdrm 2.3.1 without TTM apis included from a special
drm branch that should allow mesa 7.1 to build against it.
I've had to turn off DRI2 stuff.
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_bufmgr_ttm.h')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_bufmgr_ttm.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_bufmgr_ttm.h b/src/mesa/drivers/dri/intel/intel_bufmgr_ttm.h index d267a168cd..f5bd64c90f 100644 --- a/src/mesa/drivers/dri/intel/intel_bufmgr_ttm.h +++ b/src/mesa/drivers/dri/intel/intel_bufmgr_ttm.h @@ -7,8 +7,10 @@ extern dri_bo *intel_ttm_bo_create_from_handle(dri_bufmgr *bufmgr, const char *name, unsigned int handle); +#ifdef TTM_API dri_fence *intel_ttm_fence_create_from_arg(dri_bufmgr *bufmgr, const char *name, drm_fence_arg_t *arg); +#endif dri_bufmgr *intel_bufmgr_ttm_init(int fd, unsigned int fence_type, @@ -17,4 +19,10 @@ dri_bufmgr *intel_bufmgr_ttm_init(int fd, unsigned int fence_type, void intel_ttm_enable_bo_reuse(dri_bufmgr *bufmgr); +#ifndef TTM_API +#define DRM_I915_FENCE_CLASS_ACCEL 0 +#define DRM_I915_FENCE_TYPE_RW 2 +#define DRM_I915_FENCE_FLAG_FLUSHED 0x01000000 +#endif + #endif |