From patchwork Thu Dec 20 09:31:30 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eunchul Kim X-Patchwork-Id: 1898971 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 165FADF23A for ; Thu, 20 Dec 2012 09:34:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0C4E9E5FED for ; Thu, 20 Dec 2012 01:34:42 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by gabe.freedesktop.org (Postfix) with ESMTP id 46868E5C6C for ; Thu, 20 Dec 2012 01:31:35 -0800 (PST) Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MFB001CBP3OJCT0@mailout2.samsung.com> for dri-devel@lists.freedesktop.org; Thu, 20 Dec 2012 18:31:27 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.43]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 3F.F6.01231.FEAD2D05; Thu, 20 Dec 2012 18:31:27 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-a5-50d2daefb1c0 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 3D.F6.01231.FEAD2D05; Thu, 20 Dec 2012 18:31:27 +0900 (KST) Received: from localhost.localdomain ([10.90.54.32]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MFB0040GP41LE10@mmp2.samsung.com> for dri-devel@lists.freedesktop.org; Thu, 20 Dec 2012 18:31:26 +0900 (KST) From: Eunchul Kim To: dri-devel@lists.freedesktop.org, inki.dae@samsung.com Subject: [PATCH 3/8] drm/exynos: fixed vflip, hflip case at the same time. Date: Thu, 20 Dec 2012 18:31:30 +0900 Message-id: <1355995895-16355-4-git-send-email-chulspro.kim@samsung.com> X-Mailer: git-send-email 1.7.0.4 In-reply-to: <1355995895-16355-1-git-send-email-chulspro.kim@samsung.com> References: <1355995895-16355-1-git-send-email-chulspro.kim@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrDLMWRmVeSWpSXmKPExsVy+t8zbd33ty4FGDzcw2dx5et7NgdGj/vd x5kCGKO4bFJSczLLUov07RK4Mpo72hkLdvNU/D00ka2B8S5XFyMnh4SAicSSlresELaYxIV7 69m6GLk4hASWMUrcXrGIFaZo8fsTjBCJ6YwSez59AEsICaxgkjjXoAxiswnoSBy51cwMYosI WEo82PqbGaSBWeAno8S6J2fBGoQFvCQuT1oBVsQioCqx4tdmRhCbV8BDYl3/dnaIbQoSrcsO gdmcAp4SSyY2MHUxcgAt85C42MMD0Sog8W3yIRaQsISArMSmA2CrJARus0ls3PiJBWKMpMTB FTdYJjAKL2BkWMUomlqQXFCclJ5rqFecmFtcmpeul5yfu4kREoRSOxhXNlgcYhTgYFTi4V00 7VKAEGtiWXFl7iFGCQ5mJRHehbcuBgjxpiRWVqUW5ccXleakFh9i9AG6ZCKzlGhyPjBC8kri DY0NjA0NLQ3NTC1NDXAIK4nzNnukBAgJpCeWpGanphakFsGMY+LglGpgTFlUtfGK2/UPv2qP ZQd8sDI25XG4s7hHNKCB7eqU1xq9L4TnlpfvPzQhsb/llhDv2rALuZtWb9/kZNQrxyWu5rTn rinDV89cqwZ+X4HQsx2reV1Wflp+Rbs1x3jvi1VbX7HZl27JP7LceZHgepsPB5I5/23ZocVX bM7GtTu11/aOnav68nA5JZbijERDLeai4kQAh2JS9G8CAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupmkeLIzCtJLcpLzFFi42I5/e+xoO77W5cCDP4e5rS48vU9mwOjx/3u 40wBjFENjDYZqYkpqUUKqXnJ+SmZeem2St7B8c7xpmYGhrqGlhbmSgp5ibmptkouPgG6bpk5 QGOVFMoSc0qBQgGJxcVK+naYJoSGuOlawDRG6PqGBMH1GBmggYR1jBnNHe2MBbt5Kv4emsjW wHiXq4uRk0NCwERi8fsTjBC2mMSFe+vZuhi5OIQEpjNK7Pn0gRUkISSwgkniXIMyiM0moCNx 5FYzM4gtImAp8WDrb2aQBmaBn4wS656cBWsQFvCSuDxpBVgRi4CqxIpfm8E28Ap4SKzr384O sU1BonXZITCbU8BTYsnEBqYuRg6gZR4SF3t4JjDyLmBkWMUomlqQXFCclJ5rqFecmFtcmpeu l5yfu4kRHOLPpHYwrmywOMQowMGoxMO7aNqlACHWxLLiytxDjBIczEoivAtvXQwQ4k1JrKxK LcqPLyrNSS0+xOgDdNREZinR5Hxg/OWVxBsam5gZWRqZGZuYGxvjEFYS5232SAkQEkhPLEnN Tk0tSC2CGcfEwSnVwOg4a87X5ZM7G7n2v/BLCOK9+3PRrMzzjgvd6+tbsz0C51ac5pZeU3Hc 1fNc+qOi4y+1zglqTam/9aLyVWnTxOpOlc0X5bdkv2X07/v873mkU7ibtI7BPhfXj69atfXC 993//5D50Do/Qa1rza4LNrK7P/4qerej19r/K2eHy+QvO/3Mzsz0ylViKc5INNRiLipOBADs VZvRngIAAA== X-CFilter-Loop: Reflected 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 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org 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 --- 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: 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: return true; default: DRM_DEBUG_KMS("%s:invalid flip\n", __func__);