drm/i915: Report command parser version 0 if disabled
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 4 May 2016 13:25:36 +0000 (14:25 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 5 May 2016 07:40:02 +0000 (08:40 +0100)
commit1ca3712ca3429a617ed6c5f87718e4f6fe4ae0c6
tree3fa0b1567219c80d2c71b09e02ee4293a5766b7b
parentf58a1acc7e4a1f37d26124ce4c875c647fbcc61f
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>
drivers/gpu/drm/i915/i915_cmd_parser.c
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.h
This page took 0.025366 seconds and 5 git commands to generate.