aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_dma.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-05-11 09:29:32 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-05-19 16:39:54 -0400
commitedc912f58eaec20fd3372d9b1dab33fc28b3b3fd (patch)
treeb6c4f176d53a779862a9a4176190dc2ee8589886 /drivers/gpu/drm/i915/i915_dma.c
parenta15817cf16081b140e105736c9a6a50af38540b3 (diff)
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: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_dma.c')
-rw-r--r--drivers/gpu/drm/i915/i915_dma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index 006ea473b57d..b0df2949c1b7 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,
980 value = 1; 980 value = 1;
981 break; 981 break;
982 case I915_PARAM_HAS_BSD: 982 case I915_PARAM_HAS_BSD:
983 value = HAS_BSD(dev); 983 value = intel_ring_initialized(&dev_priv->ring[VCS]);
984 break; 984 break;
985 case I915_PARAM_HAS_BLT: 985 case I915_PARAM_HAS_BLT:
986 value = HAS_BLT(dev); 986 value = intel_ring_initialized(&dev_priv->ring[BCS]);
987 break; 987 break;
988 case I915_PARAM_HAS_RELAXED_FENCING: 988 case I915_PARAM_HAS_RELAXED_FENCING:
989 value = 1; 989 value = 1;