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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 15 Feb 2012 19:41:49 +0000
Chris Wilson <chris at chris-wilson.co.uk> wrote:

> 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
> 

Thanks, this will be fixed.


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux