* [PATCH hwc] drm_hwcomposer: use upstream DRM_MODE_{ROTATE, REFLECT} defines
@ 2017-10-06 21:46 Rob Herring
2017-10-06 23:29 ` Thierry Reding
2017-10-09 11:20 ` [PATCH hwc] drm_hwcomposer: use upstream DRM_MODE_{ROTATE,REFLECT} defines Robert Foss
0 siblings, 2 replies; 4+ messages in thread
From: Rob Herring @ 2017-10-06 21:46 UTC (permalink / raw)
To: dri-devel; +Cc: Robert Foss
The DRM_REFLECT_* and DRM_ROTATE_* defines were not upstream, but now
they are. Convert to using the upstream version which are defined as a
bit mask rather than a bit position.
Signed-off-by: Rob Herring <robh@kernel.org>
---
drmdisplaycompositor.cpp | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drmdisplaycompositor.cpp b/drmdisplaycompositor.cpp
index a07d3588d1f5..036a45e8b88b 100644
--- a/drmdisplaycompositor.cpp
+++ b/drmdisplaycompositor.cpp
@@ -572,15 +572,15 @@ int DrmDisplayCompositor::CommitFrame(DrmDisplayComposition *display_comp,
rotation = 0;
if (layer.transform & DrmHwcTransform::kFlipH)
- rotation |= 1 << DRM_REFLECT_X;
+ rotation |= DRM_MODE_REFLECT_X;
if (layer.transform & DrmHwcTransform::kFlipV)
- rotation |= 1 << DRM_REFLECT_Y;
+ rotation |= DRM_MODE_REFLECT_Y;
if (layer.transform & DrmHwcTransform::kRotate90)
- rotation |= 1 << DRM_ROTATE_90;
+ rotation |= DRM_MODE_ROTATE_90;
else if (layer.transform & DrmHwcTransform::kRotate180)
- rotation |= 1 << DRM_ROTATE_180;
+ rotation |= DRM_MODE_ROTATE_180;
else if (layer.transform & DrmHwcTransform::kRotate270)
- rotation |= 1 << DRM_ROTATE_270;
+ rotation |= DRM_MODE_ROTATE_270;
if (fence_fd < 0) {
int prop_id = plane->in_fence_fd_property().id();
--
2.11.0
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH hwc] drm_hwcomposer: use upstream DRM_MODE_{ROTATE, REFLECT} defines
2017-10-06 21:46 [PATCH hwc] drm_hwcomposer: use upstream DRM_MODE_{ROTATE, REFLECT} defines Rob Herring
@ 2017-10-06 23:29 ` Thierry Reding
2017-10-09 14:04 ` Robert Foss
2017-10-09 11:20 ` [PATCH hwc] drm_hwcomposer: use upstream DRM_MODE_{ROTATE,REFLECT} defines Robert Foss
1 sibling, 1 reply; 4+ messages in thread
From: Thierry Reding @ 2017-10-06 23:29 UTC (permalink / raw)
To: Rob Herring; +Cc: Robert Foss, dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 457 bytes --]
On Fri, Oct 06, 2017 at 04:46:48PM -0500, Rob Herring wrote:
> The DRM_REFLECT_* and DRM_ROTATE_* defines were not upstream, but now
> they are. Convert to using the upstream version which are defined as a
> bit mask rather than a bit position.
>
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
> drmdisplaycompositor.cpp | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
Reviewed-by: Thierry Reding <treding@nvidia.com>
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH hwc] drm_hwcomposer: use upstream DRM_MODE_{ROTATE, REFLECT} defines
2017-10-06 23:29 ` Thierry Reding
@ 2017-10-09 14:04 ` Robert Foss
0 siblings, 0 replies; 4+ messages in thread
From: Robert Foss @ 2017-10-09 14:04 UTC (permalink / raw)
To: Thierry Reding, Rob Herring; +Cc: dri-devel
Hey Thierry,
On Sat, 2017-10-07 at 01:29 +0200, Thierry Reding wrote:
> On Fri, Oct 06, 2017 at 04:46:48PM -0500, Rob Herring wrote:
> > The DRM_REFLECT_* and DRM_ROTATE_* defines were not upstream, but
> > now
> > they are. Convert to using the upstream version which are defined
> > as a
> > bit mask rather than a bit position.
> >
> > Signed-off-by: Rob Herring <robh@kernel.org>
> > ---
> > drmdisplaycompositor.cpp | 10 +++++-----
> > 1 file changed, 5 insertions(+), 5 deletions(-)
>
> Reviewed-by: Thierry Reding <treding@nvidia.com>
I pushed this patch, but I slightly bungled it, and missed appending
your r-b to the commit message. Sorry about that.
Rob.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH hwc] drm_hwcomposer: use upstream DRM_MODE_{ROTATE,REFLECT} defines
2017-10-06 21:46 [PATCH hwc] drm_hwcomposer: use upstream DRM_MODE_{ROTATE, REFLECT} defines Rob Herring
2017-10-06 23:29 ` Thierry Reding
@ 2017-10-09 11:20 ` Robert Foss
1 sibling, 0 replies; 4+ messages in thread
From: Robert Foss @ 2017-10-09 11:20 UTC (permalink / raw)
To: Rob Herring, dri-devel
Hey Rob,
This looks good to me, added r-b and pushed.
Rob.
On Fri, 2017-10-06 at 16:46 -0500, Rob Herring wrote:
> The DRM_REFLECT_* and DRM_ROTATE_* defines were not upstream, but now
> they are. Convert to using the upstream version which are defined as
> a
> bit mask rather than a bit position.
>
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
> drmdisplaycompositor.cpp | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drmdisplaycompositor.cpp b/drmdisplaycompositor.cpp
> index a07d3588d1f5..036a45e8b88b 100644
> --- a/drmdisplaycompositor.cpp
> +++ b/drmdisplaycompositor.cpp
> @@ -572,15 +572,15 @@ int
> DrmDisplayCompositor::CommitFrame(DrmDisplayComposition
> *display_comp,
>
> rotation = 0;
> if (layer.transform & DrmHwcTransform::kFlipH)
> - rotation |= 1 << DRM_REFLECT_X;
> + rotation |= DRM_MODE_REFLECT_X;
> if (layer.transform & DrmHwcTransform::kFlipV)
> - rotation |= 1 << DRM_REFLECT_Y;
> + rotation |= DRM_MODE_REFLECT_Y;
> if (layer.transform & DrmHwcTransform::kRotate90)
> - rotation |= 1 << DRM_ROTATE_90;
> + rotation |= DRM_MODE_ROTATE_90;
> else if (layer.transform & DrmHwcTransform::kRotate180)
> - rotation |= 1 << DRM_ROTATE_180;
> + rotation |= DRM_MODE_ROTATE_180;
> else if (layer.transform & DrmHwcTransform::kRotate270)
> - rotation |= 1 << DRM_ROTATE_270;
> + rotation |= DRM_MODE_ROTATE_270;
>
> if (fence_fd < 0) {
> int prop_id = plane->in_fence_fd_property().id();
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-10-09 14:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-06 21:46 [PATCH hwc] drm_hwcomposer: use upstream DRM_MODE_{ROTATE, REFLECT} defines Rob Herring
2017-10-06 23:29 ` Thierry Reding
2017-10-09 14:04 ` Robert Foss
2017-10-09 11:20 ` [PATCH hwc] drm_hwcomposer: use upstream DRM_MODE_{ROTATE,REFLECT} defines Robert Foss
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.