From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH] drm/i915: VLV does not have a sprite scaler Date: Fri, 26 Oct 2012 18:39:19 +0200 Message-ID: <20121026163919.GL5691@phenom.ffwll.local> References: <1351184779-15336-1-git-send-email-damien.lespiau@gmail.com> <20121026092521.0ea7b946@jbarnes-desktop> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f49.google.com (mail-ee0-f49.google.com [74.125.83.49]) by gabe.freedesktop.org (Postfix) with ESMTP id BB6819E802 for ; Fri, 26 Oct 2012 09:38:17 -0700 (PDT) Received: by mail-ee0-f49.google.com with SMTP id c1so1182727eek.36 for ; Fri, 26 Oct 2012 09:38:16 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20121026092521.0ea7b946@jbarnes-desktop> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Jesse Barnes Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Fri, Oct 26, 2012 at 09:25:21AM -0700, Jesse Barnes wrote: > On Thu, 25 Oct 2012 18:06:19 +0100 > Damien Lespiau wrote: > > > From: Damien Lespiau > > > > Just like HSW, VLV does not have a sprite scale. Set > > intel_plane->can_scale accordingly. > > > > Signed-off-by: Damien Lespiau > > --- > > 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 > > 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 -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch