From: Inki Dae <inki.dae@samsung.com>
To: 'Eunchul Kim' <chulspro.kim@samsung.com>,
dri-devel@lists.freedesktop.org
Cc: jy0.jeon@samsung.com, sw0312.kim@samsung.com,
jaejoon.seo@samsung.com, kyungmin.park@samsung.com,
jmock.shin@samsung.com, lsmin.lee@samsung.com,
th908.kim@samsung.com
Subject: RE: [PATCH 3/8] drm/exynos: fixed vflip, hflip case at the same time.
Date: Thu, 20 Dec 2012 18:48:43 +0900 [thread overview]
Message-ID: <03e201cdde97$32dc0380$98940a80$%dae@samsung.com> (raw)
In-Reply-To: <1355995895-16355-4-git-send-email-chulspro.kim@samsung.com>
> -----Original Message-----
> From: Eunchul Kim [mailto:chulspro.kim@samsung.com]
> Sent: Thursday, December 20, 2012 6:32 PM
> To: dri-devel@lists.freedesktop.org; inki.dae@samsung.com
> Cc: jy0.jeon@samsung.com; yj44.cho@samsung.com; jmock.shin@samsung.com;
> jaejoon.seo@samsung.com; kyungmin.park@samsung.com;
> jy0922.shim@samsung.com; sw0312.kim@samsung.com; th908.kim@samsung.com;
> lsmin.lee@samsung.com; chulspro.kim@samsung.com
> Subject: [PATCH 3/8] drm/exynos: fixed vflip, hflip case at the same time.
>
> This patch fixed vflip, hflip at the same time. If we want to change 180
> degree about buffer,
> then we can use h,vflip or 180 degree. we supports 180 degree using
> h,vflip.
> but we make error handling in this case. so, fixed it.
>
> Signed-off-by: Eunchul Kim <chulspro.kim@samsung.com>
> ---
> drivers/gpu/drm/exynos/exynos_drm_fimc.c | 1 +
> drivers/gpu/drm/exynos/exynos_drm_rotator.c | 1 +
> 2 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimc.c
> b/drivers/gpu/drm/exynos/exynos_drm_fimc.c
> index 5dc0251..4c4078c 100644
> --- a/drivers/gpu/drm/exynos/exynos_drm_fimc.c
> +++ b/drivers/gpu/drm/exynos/exynos_drm_fimc.c
> @@ -1387,6 +1387,7 @@ static inline bool fimc_check_drm_flip(enum
> drm_exynos_flip flip)
> case EXYNOS_DRM_FLIP_NONE:
> case EXYNOS_DRM_FLIP_VERTICAL:
> case EXYNOS_DRM_FLIP_HORIZONTAL:
> + case EXYNOS_DRM_FLIP_VERTICAL | EXYNOS_DRM_FLIP_HORIZONTAL:
This code induces build warning because the value of 'VERTICAL | HORIZONTAL'
is out of range. Add a new enumeration value to enum drm_exynos_flip. i.e.
EXYNOS_DRM_FLIP_BOTH = EXYNOS_DRM_FLIP_VERTICAL | EXYNOS_DRM_FLIP_HORIZONTAL
and use it.
> return true;
> default:
> DRM_DEBUG_KMS("%s:invalid flip\n", __func__);
> diff --git a/drivers/gpu/drm/exynos/exynos_drm_rotator.c
> b/drivers/gpu/drm/exynos/exynos_drm_rotator.c
> index 17e4474..09830ad 100644
> --- a/drivers/gpu/drm/exynos/exynos_drm_rotator.c
> +++ b/drivers/gpu/drm/exynos/exynos_drm_rotator.c
> @@ -513,6 +513,7 @@ static inline bool rotator_check_drm_flip(enum
> drm_exynos_flip flip)
> case EXYNOS_DRM_FLIP_NONE:
> case EXYNOS_DRM_FLIP_VERTICAL:
> case EXYNOS_DRM_FLIP_HORIZONTAL:
> + case EXYNOS_DRM_FLIP_VERTICAL | EXYNOS_DRM_FLIP_HORIZONTAL:
Ditto.
> return true;
> default:
> DRM_DEBUG_KMS("%s:invalid flip\n", __func__);
> --
> 1.7.0.4
next prev parent reply other threads:[~2012-12-20 9:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-20 9:31 [PATCH 0/8] drm/exynos: fixed and cleanup ipp subsystem drivers Eunchul Kim
2012-12-20 9:31 ` [PATCH 1/8] drm/exynos: cleanup current command name Eunchul Kim
2012-12-20 9:31 ` [PATCH 2/8] drm/exynos: removed needless error handling about property Eunchul Kim
2012-12-20 9:31 ` [PATCH 3/8] drm/exynos: fixed vflip, hflip case at the same time Eunchul Kim
2012-12-20 9:48 ` Inki Dae [this message]
2012-12-20 10:15 ` Eunchul Kim
2012-12-20 9:31 ` [PATCH 4/8] drm/exynos: fixed warnning in GSC build Eunchul Kim
2012-12-20 9:31 ` [PATCH 5/8] drm/exynos: cleanup comment of abbreviation Eunchul Kim
2012-12-20 9:31 ` [PATCH 6/8] drm/exynos: removed color bar pattern display Eunchul Kim
2012-12-20 9:31 ` [PATCH 7/8] drm/exynos: fixed unnormal interrupt in m2m operation Eunchul Kim
2012-12-20 9:31 ` [PATCH 8/8] drm/exynos: cleanup needless parenthesis Eunchul Kim
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='03e201cdde97$32dc0380$98940a80$%dae@samsung.com' \
--to=inki.dae@samsung.com \
--cc=chulspro.kim@samsung.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jaejoon.seo@samsung.com \
--cc=jmock.shin@samsung.com \
--cc=jy0.jeon@samsung.com \
--cc=kyungmin.park@samsung.com \
--cc=lsmin.lee@samsung.com \
--cc=sw0312.kim@samsung.com \
--cc=th908.kim@samsung.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