diff options
author | Dave Airlie <airlied@linux.ie> | 2004-08-30 11:34:51 +0000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2004-08-30 11:34:51 +0000 |
commit | da6b44849763fac5ccb7d7511128454c6c2a92c7 (patch) | |
tree | eeacf7b240241350c040dc4751f4a4c3d9d52502 /linux/drmP.h | |
parent | 7809efc8c32520e6b25c143ee3276edbf534ed14 (diff) |
implement drm_core_check_feature and use it .. looks lots nicer
Diffstat (limited to 'linux/drmP.h')
-rw-r--r-- | linux/drmP.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/drmP.h b/linux/drmP.h index 384390de..495277f6 100644 --- a/linux/drmP.h +++ b/linux/drmP.h @@ -683,6 +683,11 @@ typedef struct drm_device { u32 driver_features; } drm_device_t; +static __inline__ int drm_core_check_feature(struct drm_device *dev, int feature) +{ + return ((dev->driver_features & feature) ? 1 : 0); +} + extern void DRM(driver_register_fns)(struct drm_device *dev); /******************************************************************/ |