From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com>
Cc: nd@arm.com, airlied@linux.ie, liviu.dudau@arm.com,
dri-devel@lists.freedesktop.org, daniel.vetter@ffwll.ch,
seanpaul@chromium.org, ayan.halder@arm.com
Subject: Re: [PATCH v2] drm: Clarify DRM_MODE_REFLECT_X/Y documentation
Date: Tue, 11 Sep 2018 15:27:09 +0300 [thread overview]
Message-ID: <20180911122709.GY5565@intel.com> (raw)
In-Reply-To: <20180910172946.18539-1-alexandru-cosmin.gheorghe@arm.com>
On Mon, Sep 10, 2018 at 06:29:46PM +0100, Alexandru Gheorghe wrote:
> DRM_MODE_REFLECT_X and DRM_MODE_REFLECT_Y meaning seems a bit unclear
> to me, so try to clarify that with a bit of ascii graphics.
>
> Changes since v1:
> - Move the ascii graphics in the kerneldoc where all plane
> properties are already documented and make sure it's properly
> rendered, suggestested by Daniel Vetter.
>
> Signed-off-by: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com>
> ---
> drivers/gpu/drm/drm_blend.c | 22 ++++++++++++++++++++++
> include/uapi/drm/drm_mode.h | 3 ++-
> 2 files changed, 24 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/drm_blend.c b/drivers/gpu/drm/drm_blend.c
> index 402b62d3f072..92f75c5c93ac 100644
> --- a/drivers/gpu/drm/drm_blend.c
> +++ b/drivers/gpu/drm/drm_blend.c
> @@ -101,6 +101,28 @@
> * Without this property the rectangle is only scaled, but not rotated or
> * reflected.
> *
> + * Possbile values:
> + *
> + * "rotate-<degrees>":
> + * Signals that a drm plane is rotated <degrees> degrees in counter
> + * clockwise direction.
> + *
> + * "reflect-<axis>":
> + * Signals that the contents of a drm plane is reflected along the
> + * <axis> axis, in the same way as mirroring.
What does "mirroring" mean? Feels like a circular definition here.
Also the relationship between rotate and reflect is missing from these
docs. The order matters, and I do believe we have it specified in some
comment somewhere. Would be good to include it here as well.
> + *
> + * reflect-x::
> + *
> + * |o | | o|
> + * | | -> | |
> + * | v| |v |
> + *
> + * reflect-y::
> + *
> + * |o | | ^|
> + * | | -> | |
> + * | v| |o |
> + *
> * zpos:
> * Z position is set up with drm_plane_create_zpos_immutable_property() and
> * drm_plane_create_zpos_property(). It controls the visibility of overlapping
> diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm/drm_mode.h
> index 8d67243952f4..d3e0fe31efc5 100644
> --- a/include/uapi/drm/drm_mode.h
> +++ b/include/uapi/drm/drm_mode.h
> @@ -186,8 +186,9 @@ extern "C" {
> /*
> * DRM_MODE_REFLECT_<axis>
> *
> - * Signals that the contents of a drm plane is reflected in the <axis> axis,
> + * Signals that the contents of a drm plane is reflected along the <axis> axis,
> * in the same way as mirroring.
> + * See kerneldoc chapter "Plane Composition Properties" for more details.
> *
> * This define is provided as a convenience, looking up the property id
> * using the name->prop id lookup is the preferred method.
> --
> 2.18.0
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
--
Ville Syrjälä
Intel
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2018-09-11 12:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-10 17:29 [PATCH v2] drm: Clarify DRM_MODE_REFLECT_X/Y documentation Alexandru Gheorghe
2018-09-10 20:33 ` Daniel Vetter
2018-09-11 12:27 ` Ville Syrjälä [this message]
2018-09-11 13:20 ` Alexandru-Cosmin Gheorghe
2018-09-11 13:45 ` Ville Syrjälä
2018-09-11 15:48 ` Alexandru-Cosmin Gheorghe
2018-09-11 16:18 ` 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=20180911122709.GY5565@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=airlied@linux.ie \
--cc=alexandru-cosmin.gheorghe@arm.com \
--cc=ayan.halder@arm.com \
--cc=daniel.vetter@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=liviu.dudau@arm.com \
--cc=nd@arm.com \
--cc=seanpaul@chromium.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