From: Daniel Vetter <daniel@ffwll.ch>
To: Matt Roper <matthew.d.roper@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Intel-specific primary plane handling (v2)
Date: Fri, 11 Apr 2014 16:23:56 +0200 [thread overview]
Message-ID: <20140411142356.GJ9262@phenom.ffwll.local> (raw)
In-Reply-To: <20140411141741.GE1063@intel.com>
On Fri, Apr 11, 2014 at 07:17:41AM -0700, Matt Roper wrote:
> On Fri, Apr 11, 2014 at 11:34:36AM +0200, Daniel Vetter wrote:
> > On Thu, Apr 10, 2014 at 05:24:36PM -0700, Matt Roper wrote:
> ...
> > > + /* setplane API takes shifted source rectangle values; unshift them */
> > > + src_x >>= 16;
> > > + src_y >>= 16;
> > > + src_w >>= 16;
> > > + src_h >>= 16;
> > > +
> > > + /*
> > > + * Current hardware can't reposition the primary plane or scale it
> > > + * (although this could change in the future).
> > > + */
> > > + drm_rect_intersect(&dest, &clip);
> > > + if (dest.x1 != 0 || dest.y1 != 0 ||
> > > + dest.x2 != crtc->mode.hdisplay || dest.y2 != crtc->mode.vdisplay) {
> > > + DRM_DEBUG_KMS("Primary plane must cover entire CRTC\n");
> > > + return -EINVAL;
> > > + }
> > > +
> > > + if (crtc_w != src_w || crtc_h != src_h) {
> > > + DRM_DEBUG_KMS("Can't scale primary plane\n");
> > > + return -EINVAL;
> > > + }
> >
> > Subpixel check seems to be missing. And can't we extract all these checks
> > both here and from the primary plane helper? I guess there'll be other hw
> > which doesn't have scaling primary planes, but which wants to allow
> > primary plane enable/disable.
>
> I was a bit unsure about this. At first I thought I needed to check the
> subpixel part, but the DocBook reference indicates
>
> Devices that don't support subpixel plane coordinates can ignore
> the fractional part.
>
> which sounds to me like we're supposed to just silently ignore the
> subpixel bits on i915 and other devices that don't support it. Which
> would probably also mean that I should remove the (subpixel bits == 0)
> test from the primary helper...
Hm ... yeah I guess you're right. For now it probably won't matter too
much.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
next prev parent reply other threads:[~2014-04-11 14:23 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-11 0:24 [PATCH] drm/i915: Intel-specific primary plane handling (v2) Matt Roper
2014-04-11 0:26 ` [PATCH i-g-t 0/3] Universal plane testing Matt Roper
2014-04-11 0:26 ` [PATCH i-g-t 1/3] kms: Add universal plane support Matt Roper
2014-04-11 0:26 ` [PATCH i-g-t 2/3] kms_plane: Update for universal plane changes Matt Roper
2014-04-11 0:26 ` [PATCH i-g-t 3/3] kms_universal_plane: Universal plane testing Matt Roper
2014-04-11 9:22 ` Daniel Vetter
2014-04-11 11:57 ` Daniel Vetter
2014-04-11 9:34 ` [PATCH] drm/i915: Intel-specific primary plane handling (v2) Daniel Vetter
2014-04-11 14:17 ` Matt Roper
2014-04-11 14:23 ` Daniel Vetter [this message]
2014-04-11 17:41 ` Matt Roper
2014-04-11 18:27 ` Daniel Vetter
2014-04-11 20:44 ` [PATCH] drm/i915: Intel-specific primary plane handling (v3) Matt Roper
2014-04-11 21:13 ` [PATCH] drm/i915: Intel-specific primary plane handling (v4) Matt Roper
2014-04-22 12:47 ` Ville Syrjälä
2014-04-22 15:18 ` Matt Roper
2014-04-22 17:14 ` Daniel Vetter
2014-04-22 17:32 ` Matt Roper
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=20140411142356.GJ9262@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=matthew.d.roper@intel.com \
/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