[Intel-gfx] [PATCH 09/11] drm/i915/context: add params

Chris Wilson chris at chris-wilson.co.uk
Wed Feb 15 20:41:49 CET 2012


On Tue, 14 Feb 2012 22:09:16 +0100, Ben Widawsky <ben at bwidawsk.net> wrote:
> From: Ben Widawsky <bwidawsk at gmail.com>
> 
> Parameters tell user space if contexts are available.
> 
> Signed-off-by: Ben Widawsky <ben at bwidawsk.net>
> ---
>  drivers/gpu/drm/i915/i915_dma.c |    2 ++
>  include/drm/i915_drm.h          |    1 +
>  2 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
> index 43acac3..c5aa84c 100644
> --- a/drivers/gpu/drm/i915/i915_dma.c
> +++ b/drivers/gpu/drm/i915/i915_dma.c
> @@ -780,6 +780,8 @@ static int i915_getparam(struct drm_device *dev, void *data,
>  		break;
>  	case I915_PARAM_HAS_RELAXED_DELTA:
>  		value = 1;
> +	case I915_PARAM_HAS_CONTEXTS:
> +		value = dev_priv->contexts_disabled ? 0 : 1;
Since I don't think you meant /* fallthrough */, I guess you have a
missing break ;-)
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list