From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH v2] drm/i915: Error out when trying to set a y-tiled as a sprite Date: Mon, 29 Oct 2012 21:29:10 +0100 Message-ID: <20121029202910.GS5691@phenom.ffwll.local> References: <1351523691-21106-1-git-send-email-damien.lespiau@gmail.com> <20121029093324.06063a91@jbarnes-desktop> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ea0-f177.google.com (mail-ea0-f177.google.com [209.85.215.177]) by gabe.freedesktop.org (Postfix) with ESMTP id D93F7A02DC for ; Mon, 29 Oct 2012 13:28:05 -0700 (PDT) Received: by mail-ea0-f177.google.com with SMTP id n13so1913421eaa.36 for ; Mon, 29 Oct 2012 13:28:05 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20121029093324.06063a91@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 Mon, Oct 29, 2012 at 09:33:24AM -0700, Jesse Barnes wrote: > On Mon, 29 Oct 2012 15:14:51 +0000 > Damien Lespiau wrote: > > > From: Damien Lespiau > > > > v2: Use a switch for consistency (Chris Wilson) > > > > Signed-off-by: Damien Lespiau > > --- > > drivers/gpu/drm/i915/intel_sprite.c | 9 +++++++++ > > 1 files changed, 9 insertions(+), 0 deletions(-) > > > > diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915/intel_sprite.c > > index 87c8f1b..03307be 100644 > > --- a/drivers/gpu/drm/i915/intel_sprite.c > > +++ b/drivers/gpu/drm/i915/intel_sprite.c > > @@ -466,6 +466,15 @@ intel_update_plane(struct drm_plane *plane, struct drm_crtc *crtc, > > if (intel_plane->pipe != intel_crtc->pipe) > > return -EINVAL; > > > > + /* Sprite planes can be linear or x-tiled surfaces */ > > + switch (obj->tiling_mode) { > > + case I915_TILING_NONE: > > + case I915_TILING_X: > > + break; > > + default: > > + return -EINVAL; > > + } > > + > > /* > > * Clamp the width & height into the visible area. Note we don't > > * try to scale the source if part of the visible region is offscreen. > > Reviewed-by: Jesse Barnes Queued for -next, thanks for the patch. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch