From patchwork Mon Feb 23 14:56:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 5865771 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4C2539F169 for ; Mon, 23 Feb 2015 14:53:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 805EE2062D for ; Mon, 23 Feb 2015 14:53:48 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id A125020567 for ; Mon, 23 Feb 2015 14:53:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CB4066E41E; Mon, 23 Feb 2015 06:53:46 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-we0-f174.google.com (mail-we0-f174.google.com [74.125.82.174]) by gabe.freedesktop.org (Postfix) with ESMTP id 86A996E41C for ; Mon, 23 Feb 2015 06:53:43 -0800 (PST) Received: by wesw55 with SMTP id w55so18820230wes.5 for ; Mon, 23 Feb 2015 06:53:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VpskZL1fP2zSwlPAajQqf0DvrZN3mGhPeELee7WTjU8=; b=OIZE0K7yqwutGoHv4PvEFG/7D0xs6/9kYfc75crTQdugxFF51FC4JLSHcMvJK3le3k fFMtTQAZbx75Qa/RJ3gLFfmaQT6Ef52C8ORvn7GcpqdS6UXnJkrQcxgt3B5QXCVo6oox T95SngdCz8zGq11e30UGhI3twcNsc/+5GFewZimQEAbpjZyRRrj1BWljaQbdHuJFaxOP 4a2h7gLRnTmt7rAvKeFfEfCooQyALJ/ZgXH44Xc2sJzLEwi1GTRNMe4yrRpOkPVJCbSv SagqT4DyFuzYqMqvmT82IMOXMLibN/fxADOMwXyQpBZmCCS8EGOF2SXTQqWoKtWL3jMk N+iA== X-Received: by 10.180.90.197 with SMTP id by5mr21536631wib.70.1424703222636; Mon, 23 Feb 2015 06:53:42 -0800 (PST) Received: from arch-x220.localdomain (cpc12-croy20-2-0-cust52.croy.cable.virginm.net. [82.44.54.53]) by mx.google.com with ESMTPSA id jg3sm16240799wid.0.2015.02.23.06.53.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Feb 2015 06:53:41 -0800 (PST) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 3/4] exynos_fimg2d_test: remove unused function connector_find_plane() Date: Mon, 23 Feb 2015 14:56:34 +0000 Message-Id: <1424703395-7596-4-git-send-email-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.3.0 In-Reply-To: <1424703395-7596-1-git-send-email-emil.l.velikov@gmail.com> References: <1424703395-7596-1-git-send-email-emil.l.velikov@gmail.com> Cc: Kyungmin Park , emil.l.velikov@gmail.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Cc: Inki Dae Cc: Kyungmin Park Signed-off-by: Emil Velikov --- tests/exynos/exynos_fimg2d_test.c | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/tests/exynos/exynos_fimg2d_test.c b/tests/exynos/exynos_fimg2d_test.c index 17e8e53..dc7c5cb 100644 --- a/tests/exynos/exynos_fimg2d_test.c +++ b/tests/exynos/exynos_fimg2d_test.c @@ -142,37 +142,6 @@ static void connector_find_mode(int fd, struct connector *c, c->crtc = c->encoder->crtc_id; } -static int connector_find_plane(int fd, unsigned int *plane_id) -{ - drmModePlaneRes *plane_resources; - drmModePlane *ovr; - int i; - - plane_resources = drmModeGetPlaneResources(fd); - if (!plane_resources) { - fprintf(stderr, "drmModeGetPlaneResources failed: %s\n", - strerror(errno)); - return -1; - } - - for (i = 0; i < plane_resources->count_planes; i++) { - plane_id[i] = 0; - - ovr = drmModeGetPlane(fd, plane_resources->planes[i]); - if (!ovr) { - fprintf(stderr, "drmModeGetPlane failed: %s\n", - strerror(errno)); - continue; - } - - if (ovr->possible_crtcs & (1 << 0)) - plane_id[i] = ovr->plane_id; - drmModeFreePlane(ovr); - } - - return 0; -} - static int drm_set_crtc(struct exynos_device *dev, struct connector *c, unsigned int fb_id) {