summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoegeun Kwon <hoegeun.kwon@samsung.com>2016-11-23 20:20:42 +0900
committerJoonyoung Shim <jy0922.shim@samsung.com>2017-02-15 13:37:34 +0900
commitdaf26c66afd7e878340171e8eb901994b5cb41f0 (patch)
treebb2ec19dfe5dfa5d133c6bf4a78c1ca798858e96
parent8e071b0f93165ecb8d6b35edcedba40e489e3d97 (diff)
downloadlibdrm-daf26c66afd7e878340171e8eb901994b5cb41f0.tar.gz
libdrm-daf26c66afd7e878340171e8eb901994b5cb41f0.tar.bz2
libdrm-daf26c66afd7e878340171e8eb901994b5cb41f0.zip
ipptest: fix the 270 degree rotation angle
There was a size error when rotated 270 degrees. Added when rotated 270 degree. Change-Id: I744676e1af7e6f2916fc5f6a18ec1f1ccc6fbbe9 Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
-rw-r--r--tests/ipptest/fimc.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/tests/ipptest/fimc.c b/tests/ipptest/fimc.c
index 9e809280..22fa1d9f 100644
--- a/tests/ipptest/fimc.c
+++ b/tests/ipptest/fimc.c
@@ -448,7 +448,10 @@ static int exynos_drm_ipp_set_property(int fd,
property->config[EXYNOS_DRM_OPS_DST].flip = EXYNOS_DRM_FLIP_NONE;
property->config[EXYNOS_DRM_OPS_DST].degree = degree;
property->config[EXYNOS_DRM_OPS_DST].fmt = DRM_FORMAT_XRGB8888;
- if (property->config[EXYNOS_DRM_OPS_DST].degree == EXYNOS_DRM_DEGREE_90) {
+ if (property->config[EXYNOS_DRM_OPS_DST].degree ==
+ EXYNOS_DRM_DEGREE_90 ||
+ property->config[EXYNOS_DRM_OPS_DST].degree ==
+ EXYNOS_DRM_DEGREE_270) {
dst_sz.hsize = def_sz->vsize;
dst_sz.vsize = def_sz->hsize;
@@ -464,7 +467,10 @@ static int exynos_drm_ipp_set_property(int fd,
property->config[EXYNOS_DRM_OPS_SRC].flip = EXYNOS_DRM_FLIP_NONE;
property->config[EXYNOS_DRM_OPS_SRC].degree = EXYNOS_DRM_DEGREE_0;
property->config[EXYNOS_DRM_OPS_SRC].fmt = DRM_FORMAT_YUV444;
- if (property->config[EXYNOS_DRM_OPS_SRC].degree == EXYNOS_DRM_DEGREE_90) {
+ if (property->config[EXYNOS_DRM_OPS_SRC].degree ==
+ EXYNOS_DRM_DEGREE_90 ||
+ property->config[EXYNOS_DRM_OPS_SRC].degree ==
+ EXYNOS_DRM_DEGREE_270) {
src_sz.hsize = def_sz->vsize;
src_sz.vsize = def_sz->hsize;
@@ -478,7 +484,10 @@ static int exynos_drm_ipp_set_property(int fd,
property->config[EXYNOS_DRM_OPS_DST].flip = EXYNOS_DRM_FLIP_NONE;
property->config[EXYNOS_DRM_OPS_DST].degree = degree;
property->config[EXYNOS_DRM_OPS_DST].fmt = DRM_FORMAT_XRGB8888;
- if (property->config[EXYNOS_DRM_OPS_DST].degree == EXYNOS_DRM_DEGREE_90) {
+ if (property->config[EXYNOS_DRM_OPS_DST].degree ==
+ EXYNOS_DRM_DEGREE_90 ||
+ property->config[EXYNOS_DRM_OPS_DST].degree ==
+ EXYNOS_DRM_DEGREE_270) {
dst_sz.hsize = def_sz->vsize;
dst_sz.vsize = def_sz->hsize;