summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_dma.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-05-04 14:25:36 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-05-05 08:40:02 +0100
commit1ca3712ca3429a617ed6c5f87718e4f6fe4ae0c6 (patch)
tree3fa0b1567219c80d2c71b09e02ee4293a5766b7b /drivers/gpu/drm/i915/i915_dma.c
parentf58a1acc7e4a1f37d26124ce4c875c647fbcc61f (diff)
downloadlinux-0-day-1ca3712ca3429a617ed6c5f87718e4f6fe4ae0c6.tar.gz
linux-0-day-1ca3712ca3429a617ed6c5f87718e4f6fe4ae0c6.tar.xz
drm/i915: Report command parser version 0 if disabled
If the command parser is not active, then it is appropriate to report it as operating at version 0 as no higher mode is supported. This greatly simplifies userspace querying for the command parser as we then do not need to second guess when it will be active (a mixture of module parameters and generational support, which may change over time). v2: s/comand/command/ misspelling in comment Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: http://patchwork.freedesktop.org/patch/msgid/1462368336-21230-1-git-send-email-chris@chris-wilson.co.uk Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_dma.c')
-rw-r--r--drivers/gpu/drm/i915/i915_dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index c91387f1aedd1..ad7abe5177006 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@ -204,7 +204,7 @@ static int i915_getparam(struct drm_device *dev, void *data,
value = 1;
break;
case I915_PARAM_CMD_PARSER_VERSION:
- value = i915_cmd_parser_get_version();
+ value = i915_cmd_parser_get_version(dev_priv);
break;
case I915_PARAM_HAS_COHERENT_PHYS_GTT:
value = 1;