diff mbox

drm/i915: VLV does not have a sprite scaler

Message ID 1351184779-15336-1-git-send-email-damien.lespiau@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Damien Lespiau Oct. 25, 2012, 5:06 p.m. UTC
From: Damien Lespiau <damien.lespiau@intel.com>

Just like HSW, VLV does not have a sprite scale. Set
intel_plane->can_scale accordingly.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
---
 drivers/gpu/drm/i915/intel_sprite.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Jesse Barnes Oct. 26, 2012, 4:25 p.m. UTC | #1
On Thu, 25 Oct 2012 18:06:19 +0100
Damien Lespiau <damien.lespiau@gmail.com> wrote:

> From: Damien Lespiau <damien.lespiau@intel.com>
> 
> Just like HSW, VLV does not have a sprite scale. Set
> intel_plane->can_scale accordingly.
> 
> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
> ---
>  drivers/gpu/drm/i915/intel_sprite.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915/intel_sprite.c
> index 24b8231..9c378f5 100644
> --- a/drivers/gpu/drm/i915/intel_sprite.c
> +++ b/drivers/gpu/drm/i915/intel_sprite.c
> @@ -700,7 +700,7 @@ intel_plane_init(struct drm_device *dev, enum pipe pipe)
>  		break;
>  
>  	case 7:
> -		if (IS_HASWELL(dev))
> +		if (IS_HASWELL(dev) || IS_VALLEYVIEW(dev))
>  			intel_plane->can_scale = false;
>  		else
>  			intel_plane->can_scale = true;

Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>

We could also set it to true if the gen >= 7 and leave it as false
otherwise.  Either way though is fine.
Jesse Barnes Oct. 26, 2012, 4:36 p.m. UTC | #2
On Fri, 26 Oct 2012 09:25:21 -0700
Jesse Barnes <jbarnes@virtuousgeek.org> wrote:

> On Thu, 25 Oct 2012 18:06:19 +0100
> Damien Lespiau <damien.lespiau@gmail.com> wrote:
> 
> > From: Damien Lespiau <damien.lespiau@intel.com>
> > 
> > Just like HSW, VLV does not have a sprite scale. Set
> > intel_plane->can_scale accordingly.
> > 
> > Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
> > ---
> >  drivers/gpu/drm/i915/intel_sprite.c |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> > 
> > diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915/intel_sprite.c
> > index 24b8231..9c378f5 100644
> > --- a/drivers/gpu/drm/i915/intel_sprite.c
> > +++ b/drivers/gpu/drm/i915/intel_sprite.c
> > @@ -700,7 +700,7 @@ intel_plane_init(struct drm_device *dev, enum pipe pipe)
> >  		break;
> >  
> >  	case 7:
> > -		if (IS_HASWELL(dev))
> > +		if (IS_HASWELL(dev) || IS_VALLEYVIEW(dev))
> >  			intel_plane->can_scale = false;
> >  		else
> >  			intel_plane->can_scale = true;
> 
> Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
> 
> We could also set it to true if the gen >= 7 and leave it as false
> otherwise.  Either way though is fine.
> 

Nevermind.  Was trying to catch future platforms here, but both VLV and
HSW are listed as gen 7 so we can't do it that way...
Daniel Vetter Oct. 26, 2012, 4:39 p.m. UTC | #3
On Fri, Oct 26, 2012 at 09:25:21AM -0700, Jesse Barnes wrote:
> On Thu, 25 Oct 2012 18:06:19 +0100
> Damien Lespiau <damien.lespiau@gmail.com> wrote:
> 
> > From: Damien Lespiau <damien.lespiau@intel.com>
> > 
> > Just like HSW, VLV does not have a sprite scale. Set
> > intel_plane->can_scale accordingly.
> > 
> > Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
> > ---
> >  drivers/gpu/drm/i915/intel_sprite.c |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> > 
> > diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915/intel_sprite.c
> > index 24b8231..9c378f5 100644
> > --- a/drivers/gpu/drm/i915/intel_sprite.c
> > +++ b/drivers/gpu/drm/i915/intel_sprite.c
> > @@ -700,7 +700,7 @@ intel_plane_init(struct drm_device *dev, enum pipe pipe)
> >  		break;
> >  
> >  	case 7:
> > -		if (IS_HASWELL(dev))
> > +		if (IS_HASWELL(dev) || IS_VALLEYVIEW(dev))
> >  			intel_plane->can_scale = false;
> >  		else
> >  			intel_plane->can_scale = true;
> 
> Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
> 
> We could also set it to true if the gen >= 7 and leave it as false
> otherwise.  Either way though is fine.
Queued for -next, thanks for the patch.
-Daniel
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915/intel_sprite.c
index 24b8231..9c378f5 100644
--- a/drivers/gpu/drm/i915/intel_sprite.c
+++ b/drivers/gpu/drm/i915/intel_sprite.c
@@ -700,7 +700,7 @@  intel_plane_init(struct drm_device *dev, enum pipe pipe)
 		break;
 
 	case 7:
-		if (IS_HASWELL(dev))
+		if (IS_HASWELL(dev) || IS_VALLEYVIEW(dev))
 			intel_plane->can_scale = false;
 		else
 			intel_plane->can_scale = true;