From: Daniel Vetter <daniel@ffwll.ch>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 3/3] drm/i915/skl: Support for 90/270 rotation
Date: Fri, 6 Mar 2015 18:03:31 +0100 [thread overview]
Message-ID: <20150306170331.GE18775@phenom.ffwll.local> (raw)
In-Reply-To: <20150305155623.GG11371@intel.com>
On Thu, Mar 05, 2015 at 05:56:23PM +0200, Ville Syrjälä wrote:
> On Thu, Mar 05, 2015 at 04:29:30PM +0100, Daniel Vetter wrote:
> > On Thu, Mar 05, 2015 at 03:08:17PM +0200, Ville Syrjälä wrote:
> > > On Thu, Mar 05, 2015 at 01:56:53PM +0100, Daniel Vetter wrote:
> > > > On Thu, Mar 05, 2015 at 02:51:28PM +0530, Sonika Jindal wrote:
> > > > > @@ -1519,16 +1550,7 @@ intel_plane_init(struct drm_device *dev, enum pipe pipe, int plane)
> > > > > goto out;
> > > > > }
> > > > >
> > > > > - if (!dev->mode_config.rotation_property)
> > > > > - dev->mode_config.rotation_property =
> > > > > - drm_mode_create_rotation_property(dev,
> > > > > - BIT(DRM_ROTATE_0) |
> > > > > - BIT(DRM_ROTATE_180));
> > > > > -
> > > > > - if (dev->mode_config.rotation_property)
> > > > > - drm_object_attach_property(&intel_plane->base.base,
> > > > > - dev->mode_config.rotation_property,
> > > > > - state->base.rotation);
> > > > > + intel_create_rotation_property(dev, intel_plane);
> > > >
> > > > I think back from the original rotation work we've had the leftover task
> > > > to move this into common code so that we do create the property just once
> > > > without this check.
> > > >
> > > > I think this should be done now.
> > >
> > > Someone should also make it so we can again have different supported
> > > rotation bits on different planes. I'll have need for it on CHV I think.
> >
> > plane->atomic_check just needs to reject them. Tbh I'm not sold on the
> > value of trying to tell userspace which rotation works and which doesnt -
> > generic userspace won't learn about y-tiling requirements either so this
> > feels a bit pointless tbh. And rejecting stuff in atomic_check is what
> > it's for.
>
> By that logic we shouldn't expose pixel formats or any other useful
> infromation either then.
Well to be able to fix this we need to restrict the value-set of
properties per-attachment. Since I very much want core atomic to decodd
standardized properties, and if we create rotation per-plane then that's
going to be fairly painful.
That's quite a bit of work, and I'm not sure it's all that useful. And
yeah that argument does extend somewhat to pixel formats too since without
clueful userspace you can't really allocate a suitable buffer with just
the list of pixel formats. They are useful though for a bit of shared
input validation in the core (since most planes don't change the support
pixel formats at runtime).
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2015-03-06 17:01 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-05 9:21 [PATCH 1/3] drm/i915/skl: Allow universal planes to position Sonika Jindal
2015-03-05 9:21 ` [PATCH 2/3] drm/i915: Using plane state parameters instead of pipe's Sonika Jindal
2015-03-05 13:01 ` Daniel Vetter
2015-03-05 9:21 ` [PATCH 3/3] drm/i915/skl: Support for 90/270 rotation Sonika Jindal
2015-03-05 12:56 ` Daniel Vetter
2015-03-05 13:08 ` Ville Syrjälä
2015-03-05 15:29 ` Daniel Vetter
2015-03-05 15:56 ` Ville Syrjälä
2015-03-06 17:03 ` Daniel Vetter [this message]
2015-03-06 17:22 ` Ville Syrjälä
2015-03-06 17:38 ` Daniel Vetter
2015-03-05 12:54 ` [PATCH 1/3] drm/i915/skl: Allow universal planes to position Daniel Vetter
2015-03-09 3:03 ` sonika
2015-03-09 8:46 ` Daniel Vetter
2015-03-09 15:20 ` Ville Syrjälä
2015-03-09 15:31 ` Daniel Vetter
2015-03-10 3:53 ` sonika
2015-03-10 10:10 ` Daniel Vetter
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=20150306170331.GE18775@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=ville.syrjala@linux.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