提交 edc912f5 编写于 作者: C Chris Wilson 提交者: Daniel Vetter

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: NChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 a15817cf
...@@ -980,10 +980,10 @@ static int i915_getparam(struct drm_device *dev, void *data, ...@@ -980,10 +980,10 @@ static int i915_getparam(struct drm_device *dev, void *data,
value = 1; value = 1;
break; break;
case I915_PARAM_HAS_BSD: case I915_PARAM_HAS_BSD:
value = HAS_BSD(dev); value = intel_ring_initialized(&dev_priv->ring[VCS]);
break; break;
case I915_PARAM_HAS_BLT: case I915_PARAM_HAS_BLT:
value = HAS_BLT(dev); value = intel_ring_initialized(&dev_priv->ring[BCS]);
break; break;
case I915_PARAM_HAS_RELAXED_FENCING: case I915_PARAM_HAS_RELAXED_FENCING:
value = 1; value = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册