drm/i915: add HAS_BSD check to i915_getparam
This will let userland only try to use the new media decode functionality when the appropriate kernel is present. Signed-off-by: Zou Nan hai <nanhai.zou@intel.com> Signed-off-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
@@ -744,6 +744,9 @@ static int i915_getparam(struct drm_device *dev, void *data,
|
||||
/* depends on GEM */
|
||||
value = dev_priv->has_gem;
|
||||
break;
|
||||
case I915_PARAM_HAS_BSD:
|
||||
value = HAS_BSD(dev);
|
||||
break;
|
||||
default:
|
||||
DRM_DEBUG_DRIVER("Unknown parameter %d\n",
|
||||
param->param);
|
||||
|
Reference in New Issue
Block a user