From patchwork Tue Jun 5 18:06:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Clark X-Patchwork-Id: 9120 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id C1C9323E1B for ; Tue, 5 Jun 2012 18:07:03 +0000 (UTC) Received: from mail-gh0-f180.google.com (mail-gh0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id 90AE1A18357 for ; Tue, 5 Jun 2012 18:07:03 +0000 (UTC) Received: by mail-gh0-f180.google.com with SMTP id z12so4822633ghb.11 for ; Tue, 05 Jun 2012 11:07:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :dkim-signature:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=Fol0kWxG88B+KqElKIzqo/L1J6fgdNUMx65ZD8cTTyc=; b=CD2dD0qldb5LuS6/DoCXVG8n+/51pdugTZYGkcRGTVlH72MRDw4sT3LZ9ZiTwugvyc R0kiBvH7MtMeQ6OtqBE5MDlTaioObHpZ+azMmNCaOZdwXo3dEIY5eJvcnXdks3xucvsi dcBiZ1BoxgjXnA6sqqpe2cK+VN9qzVETm3Md++scSM+MU8g2y+cbnOYQdv7HA+2rOyUS wEcOZyBVIXUCBYBL6N1hEM1nir/awRpPZxUiG/2xh415GBrV4Tpt8LVWVaKmQmBNgh0z Pp8YollBcbQ9T0ky4AuTuyiN1Bv4Ug9Jil6oEqVASjALx5hZ0NIF/5w496KnIzHaW0lB MJbA== Received: by 10.50.87.227 with SMTP id bb3mr3772948igb.57.1338919623019; Tue, 05 Jun 2012 11:07:03 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp39701ibb; Tue, 5 Jun 2012 11:07:02 -0700 (PDT) Received: by 10.236.186.74 with SMTP id v50mr13034897yhm.1.1338919622398; Tue, 05 Jun 2012 11:07:02 -0700 (PDT) Received: from mail-gh0-f178.google.com (mail-gh0-f178.google.com [209.85.160.178]) by mx.google.com with ESMTPS id l12si900166anm.53.2012.06.05.11.07.02 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 05 Jun 2012 11:07:02 -0700 (PDT) Received-SPF: pass (google.com: domain of robdclark@gmail.com designates 209.85.160.178 as permitted sender) client-ip=209.85.160.178; Authentication-Results: mx.google.com; spf=pass (google.com: domain of robdclark@gmail.com designates 209.85.160.178 as permitted sender) smtp.mail=robdclark@gmail.com; dkim=pass header.i=@gmail.com Received: by mail-gh0-f178.google.com with SMTP id f1so5116173ghb.37 for ; Tue, 05 Jun 2012 11:07:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=Fol0kWxG88B+KqElKIzqo/L1J6fgdNUMx65ZD8cTTyc=; b=0ol31mzNiICkh5hw1WMxS73BlQR5Pg6l1uMw9iPBF9Z/A4SR12S7oeVoMjicUbZ8zi v39OgYALKAQWAzq3KCae9WnjuwEzfIsk5gTdrKDYiQRXC/M1tY+haiBTNuDFo1DOkL+T gR2yRBUW95UMkNXzGmrPVJWMteLrtD63mUElNVNZhPPG7bmVCI5wz05EAjJ57LEk7H1W qz5yYIG9xsJWIKq3Q32vd45j5sJ2KVeah/P7q/oCDoqhSWcX4GP1awD4nKxEtsyF9ji8 lNMGahulKVSWtacP7RKFg8GY8aF23XSozTiVdWOWBCfp5Wf5mW5BdlTpqyg32lQ3ciMz iXcw== Received: by 10.60.19.42 with SMTP id b10mr9069961oee.12.1338919621821; Tue, 05 Jun 2012 11:07:01 -0700 (PDT) Received: from localhost (ppp-70-253-38-6.dsl.rcsntx.swbell.net. [70.253.38.6]) by mx.google.com with ESMTPS id k8sm1384110oeh.9.2012.06.05.11.07.00 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 05 Jun 2012 11:07:01 -0700 (PDT) Sender: Rob Clark From: Rob Clark To: dri-devel@lists.freedesktop.org Cc: patches@linaro.org, Paulo Zanoni , Rob Clark Subject: [PATCH libdrm 6/8] modetest: support plane properties Date: Tue, 5 Jun 2012 13:06:32 -0500 Message-Id: <1338919594-25392-7-git-send-email-rob.clark@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1338919594-25392-1-git-send-email-rob.clark@linaro.org> References: <1338919594-25392-1-git-send-email-rob.clark@linaro.org> X-Gm-Message-State: ALoCoQmFUC9rsJCX0rwnNBa+9JHN8VvUTjNScIrZQ5UUUSgt2p6w8VFp6G6mivn3GNjM7OUFaJj9 From: Rob Clark Add support to display plane properties. Signed-off-by: Rob Clark Reviewed-by: Paulo Zanoni --- tests/modetest/modetest.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c index dea271a..dc84cf3 100644 --- a/tests/modetest/modetest.c +++ b/tests/modetest/modetest.c @@ -369,6 +369,7 @@ void dump_framebuffers(void) static void dump_planes(void) { + drmModeObjectPropertiesPtr props; drmModePlaneRes *plane_resources; drmModePlane *ovr; unsigned int i, j; @@ -403,6 +404,19 @@ static void dump_planes(void) printf(" %4.4s", (char *)&ovr->formats[j]); printf("\n"); + printf(" props:\n"); + props = drmModeObjectGetProperties(fd, ovr->plane_id, + DRM_MODE_OBJECT_PLANE); + if (props) { + for (j = 0; j < props->count_props; j++) + dump_prop(props->props[j], + props->prop_values[j]); + drmModeFreeObjectProperties(props); + } else { + printf("\tcould not get plane properties: %s\n", + strerror(errno)); + } + drmModeFreePlane(ovr); } printf("\n");