From: Daniel Vetter <daniel@ffwll.ch>
To: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: intel-gfx@lists.freedesktop.org
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 [thread overview]
Message-ID: <20121029202910.GS5691@phenom.ffwll.local> (raw)
In-Reply-To: <20121029093324.06063a91@jbarnes-desktop>
On Mon, Oct 29, 2012 at 09:33:24AM -0700, Jesse Barnes wrote:
> On Mon, 29 Oct 2012 15:14:51 +0000
> Damien Lespiau <damien.lespiau@gmail.com> wrote:
>
> > From: Damien Lespiau <damien.lespiau@intel.com>
> >
> > v2: Use a switch for consistency (Chris Wilson)
> >
> > Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
> > ---
> > 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 <jbarnes@virtuousgeek.org>
Queued for -next, thanks for the patch.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
next prev parent reply other threads:[~2012-10-29 20:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-29 15:14 [PATCH v2] drm/i915: Error out when trying to set a y-tiled as a sprite Damien Lespiau
2012-10-29 16:33 ` Jesse Barnes
2012-10-29 20:29 ` Daniel Vetter [this message]
2012-10-31 17:28 ` Ville Syrjälä
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121029202910.GS5691@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jbarnes@virtuousgeek.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox