diff options
author | Hyungwon Hwang <human.hwang@samsung.com> | 2015-07-01 19:09:24 +0900 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2015-08-11 17:21:34 +0900 |
commit | f2d016011c04fc36580a3efeeee9217fd80298f8 (patch) | |
tree | 49c08cde055b4d3045141282cb0852fb610ee79d | |
parent | bdce3e7c729907e303396690b2b23b972c6717be (diff) | |
download | linux-stable-f2d016011c04fc36580a3efeeee9217fd80298f8.tar.gz linux-stable-f2d016011c04fc36580a3efeeee9217fd80298f8.tar.bz2 linux-stable-f2d016011c04fc36580a3efeeee9217fd80298f8.zip |
drm/exynos: gsc: fix wrong bitwise operation for swap detection
The bits for rotation are not used as exclusively. So GSC_IN_ROT_270 can
not be used for swap detection. The definition of it is same with
GSC_IN_ROT_MASK. It is enough to check GSC_IN_ROT_90 bit is set or not to
check whether width / height size swapping is needed.
Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_gsc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_gsc.c b/drivers/gpu/drm/exynos/exynos_drm_gsc.c index 8040ed2a831f..f1c6b76c127f 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gsc.c +++ b/drivers/gpu/drm/exynos/exynos_drm_gsc.c @@ -593,8 +593,7 @@ static int gsc_src_set_transf(struct device *dev, gsc_write(cfg, GSC_IN_CON); - ctx->rotation = cfg & - (GSC_IN_ROT_90 | GSC_IN_ROT_270) ? 1 : 0; + ctx->rotation = (cfg & GSC_IN_ROT_90) ? 1 : 0; *swap = ctx->rotation; return 0; @@ -857,8 +856,7 @@ static int gsc_dst_set_transf(struct device *dev, gsc_write(cfg, GSC_IN_CON); - ctx->rotation = cfg & - (GSC_IN_ROT_90 | GSC_IN_ROT_270) ? 1 : 0; + ctx->rotation = (cfg & GSC_IN_ROT_90) ? 1 : 0; *swap = ctx->rotation; return 0; |