From da6b44849763fac5ccb7d7511128454c6c2a92c7 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 30 Aug 2004 11:34:51 +0000 Subject: implement drm_core_check_feature and use it .. looks lots nicer --- linux-core/drmP.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'linux-core/drmP.h') diff --git a/linux-core/drmP.h b/linux-core/drmP.h index 384390de..495277f6 100644 --- a/linux-core/drmP.h +++ b/linux-core/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); /******************************************************************/ -- cgit v1.2.3