[Intel-gfx] [PATCH 2/2] drm/i915: Replace the feature tests for BLT/BSD with ring init checks
Chris Wilson
chris at chris-wilson.co.uk
Fri May 11 00:21:26 CEST 2012
When userspace asks whether the driver supports the BLT or BSD rings for
this chip, simply report whether those particular rings are initialised
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
drivers/gpu/drm/i915/i915_dma.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index 006ea47..e05a45f 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@ -980,10 +980,10 @@ static int i915_getparam(struct drm_device *dev, void *data,
value = 1;
break;
case I915_PARAM_HAS_BSD:
- value = HAS_BSD(dev);
+ value = dev_priv->ring[VCS].obj != NULL;
break;
case I915_PARAM_HAS_BLT:
- value = HAS_BLT(dev);
+ value = dev_priv->ring[BCS].obj != NULL;
break;
case I915_PARAM_HAS_RELAXED_FENCING:
value = 1;
--
1.7.10
More information about the Intel-gfx
mailing list