From patchwork Fri Dec 14 06:48:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joonyoung Shim X-Patchwork-Id: 1877441 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id A90C53FC64 for ; Fri, 14 Dec 2012 06:48:38 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 25440E5F49 for ; Thu, 13 Dec 2012 22:48:38 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 80DE7E5F2C for ; Thu, 13 Dec 2012 22:48:17 -0800 (PST) Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MF000H63DIDQBP0@mailout1.samsung.com> for dri-devel@lists.freedesktop.org; Fri, 14 Dec 2012 15:48:16 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.42]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 9E.F4.12699.0BBCAC05; Fri, 14 Dec 2012 15:48:16 +0900 (KST) X-AuditID: cbfee61b-b7f616d00000319b-fb-50cacbb0086f Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 2D.F4.12699.0BBCAC05; Fri, 14 Dec 2012 15:48:16 +0900 (KST) Received: from localhost.localdomain ([10.90.51.60]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MF000FDIDKFVVD2@mmp2.samsung.com> for dri-devel@lists.freedesktop.org; Fri, 14 Dec 2012 15:48:15 +0900 (KST) From: Joonyoung Shim To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/4] drm/exynos: fix fb offset calculation for plane Date: Fri, 14 Dec 2012 15:48:22 +0900 Message-id: <1355467705-12264-2-git-send-email-jy0922.shim@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1355467705-12264-1-git-send-email-jy0922.shim@samsung.com> References: <1355467705-12264-1-git-send-email-jy0922.shim@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrDLMWRmVeSWpSXmKPExsVy+t8zLd0Np08FGPTu4ba48vU9mwOjx/3u 40wBjFFcNimpOZllqUX6dglcGVuv7mUrWMJZcXjZa9YGxs9sXYycHBICJhK3jj5lhbDFJC7c Ww8U5+IQEljGKHF7yilmmKKlfy8zQySmM0rcffWIFcJZwSSxesNGJpAqNgE9iTvbjoPZIgLK En8nrmIEsZkFjCU65n8BWyEs4CIxad9ddhCbRUBV4s2btWD1vALuEgfWfwSq4QDapiAxZ5IN SJhTwENiX8MpsBIhoJKG9V+YIFoFJL5NPsQCUS4rsekA2G0SApfZJO7P/wf1jaTEwRU3WCYw Ci9gZFjFKJpakFxQnJSea6RXnJhbXJqXrpecn7uJERKE0jsYVzVYHGIU4GBU4uH9IHQqQIg1 say4MvcQowQHs5IIr+QRoBBvSmJlVWpRfnxRaU5q8SFGH6BLJjJLiSbnAyMkryTe0NjA2NDQ 0tDM1NLUAIewkjhvs0dKgJBAemJJanZqakFqEcw4Jg5OqQZGu7jC3BwWln3ndY/Y+ZkFiR19 Mo219PD8zv9MwT2v5C50H7HZvItlr+FJyYXbfkzKzD3Lb9+Toqy+ub1HnWX61T6lsHyzvptu G+7/4ZFa+PLOJ/0Lx/ue5Wg9mfjB41FI6qPW/A/Mi88nvLgSUqGcI9ra7i275sLCC318s67O PHO3bvmKgAUiSizFGYmGWsxFxYkAEADy828CAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupmkeLIzCtJLcpLzFFi42I5/e+xoO6G06cCDE6dY7O48vU9mwOjx/3u 40wBjFENjDYZqYkpqUUKqXnJ+SmZeem2St7B8c7xpmYGhrqGlhbmSgp5ibmptkouPgG6bpk5 QGOVFMoSc0qBQgGJxcVK+naYJoSGuOlawDRG6PqGBMH1GBmggYR1jBlbr+5lK1jCWXF42WvW BsbPbF2MnBwSAiYSS/9eZoawxSQu3FsPFOfiEBKYzihx99UjVghnBZPE6g0bmUCq2AT0JO5s Ow5miwgoS/yduIoRxGYWMJbomP+FFcQWFnCRmLTvLjuIzSKgKvHmzVqwel4Bd4kD6z8C1XAA bVOQmDPJBiTMKeAhsa/hFFiJEFBJw/ovTBMYeRcwMqxiFE0tSC4oTkrPNdIrTswtLs1L10vO z93ECA7xZ9I7GFc1WBxiFOBgVOLh/SB0KkCINbGsuDL3EKMEB7OSCK/kEaAQb0piZVVqUX58 UWlOavEhRh+goyYyS4km5wPjL68k3tDYxMzI0sjM2MTc2BiHsJI4b7NHSoCQQHpiSWp2ampB ahHMOCYOTqkGxtb3XzlmKry5F3BAaOX53+oi+zr36zHM3+x/YrYdD4/MptMmOhtfcNTV7Obg YT/B2bThXb5I8cpjVY2lhnurwsWW33LJUFHYcUf96jwhyeyVjMt8q5I6vdT2eQWbVB29V3nD UGU5t3R22T7G+W+5D9wsmbx3QmVpzqO6ApalHDPvc9tMYdh+TImlOCPRUIu5qDgRAHHhyVue AgAA X-CFilter-Loop: Reflected Cc: kyungmin.park@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 There is no any reason to change fb offset when CRTC is out of screen. Also, this fixes a typing error. Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_plane.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_plane.c b/drivers/gpu/drm/exynos/exynos_drm_plane.c index 399b026..83efc66 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_plane.c +++ b/drivers/gpu/drm/exynos/exynos_drm_plane.c @@ -40,7 +40,7 @@ static const uint32_t formats[] = { * CRTC ---------------- * ^ start ^ end * - * There are six cases from a to b. + * There are six cases from a to f. * * <----- SCREEN -----> * 0 last @@ -104,16 +104,12 @@ int exynos_plane_mode_set(struct drm_plane *plane, struct drm_crtc *crtc, if (crtc_x < 0) { if (actual_w) src_x -= crtc_x; - else - src_x += crtc_w; crtc_x = 0; } if (crtc_y < 0) { if (actual_h) src_y -= crtc_y; - else - src_y += crtc_h; crtc_y = 0; }