Commit edc912f5 authored by Chris Wilson's avatar Chris Wilson Committed by Daniel Vetter
Browse files

drm/i915: Replace the feature tests for BLT/BSD with ring init checks

When userspace asks whether the driver supports the BLT or BSD rings for
this chip, simply report whether those particular rings are initialised

v2: Use intel_ring_initialized()

Signed-off-by: default avatarChris Wilson <>
Signed-off-by: default avatarDaniel Vetter <>
parent a15817cf
......@@ -980,10 +980,10 @@ static int i915_getparam(struct drm_device *dev, void *data,
value = 1;
case I915_PARAM_HAS_BSD:
value = HAS_BSD(dev);
value = intel_ring_initialized(&dev_priv->ring[VCS]);
case I915_PARAM_HAS_BLT:
value = HAS_BLT(dev);
value = intel_ring_initialized(&dev_priv->ring[BCS]);
value = 1;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment